@@ -80,11 +80,15 @@ jobs:
8080 token : ${{ secrets.GITHUB_TOKEN }}
8181
8282 - name : Checkout influxdb3_plugins (sparse)
83- run : |
84- git clone --filter=blob:none --sparse https://github.com/influxdata/influxdb3_plugins.git .ext/influxdb3_plugins
85- cd .ext/influxdb3_plugins
86- git sparse-checkout set influxdata/ scripts/
87- git checkout ${{ steps.inputs.outputs.source_commit }}
83+ uses : actions/checkout@v4
84+ with :
85+ repository : influxdata/influxdb3_plugins
86+ token : ${{ secrets.PLUGINS_CONTENT_READ_TOKEN }}
87+ path : .ext/influxdb3_plugins
88+ sparse-checkout : |
89+ influxdata/
90+ scripts/
91+ ref : ${{ steps.inputs.outputs.source_commit }}
8892
8993 - name : Setup Node.js
9094 uses : actions/setup-node@v4
@@ -172,24 +176,109 @@ jobs:
172176
173177 core.setFailed('Plugin validation failed');
174178
179+ - name : Debug - Check file structure
180+ if : steps.validate.outputs.validation_passed == 'true'
181+ run : |
182+ echo "======================================"
183+ echo "DEBUG: Checking file structure"
184+ echo "======================================"
185+ echo ""
186+
187+ echo "1. Current working directory:"
188+ pwd
189+ echo ""
190+
191+ echo "2. List workspace root:"
192+ ls -la
193+ echo ""
194+
195+ echo "3. Check if .ext exists:"
196+ if [ -d ".ext" ]; then
197+ echo "✅ .ext directory exists"
198+ ls -la .ext/
199+ else
200+ echo "❌ .ext directory NOT found"
201+ fi
202+ echo ""
203+
204+ echo "4. Check if .ext/influxdb3_plugins exists:"
205+ if [ -d ".ext/influxdb3_plugins" ]; then
206+ echo "✅ .ext/influxdb3_plugins exists"
207+ ls -la .ext/influxdb3_plugins/
208+ else
209+ echo "❌ .ext/influxdb3_plugins NOT found"
210+ fi
211+ echo ""
212+
213+ echo "5. Check if influxdata directory exists:"
214+ if [ -d ".ext/influxdb3_plugins/influxdata" ]; then
215+ echo "✅ influxdata directory exists"
216+ ls -la .ext/influxdb3_plugins/influxdata/
217+ else
218+ echo "❌ influxdata directory NOT found"
219+ fi
220+ echo ""
221+
222+ echo "6. Check if basic_transformation exists:"
223+ if [ -d ".ext/influxdb3_plugins/influxdata/basic_transformation" ]; then
224+ echo "✅ basic_transformation directory exists"
225+ ls -la .ext/influxdb3_plugins/influxdata/basic_transformation/
226+ else
227+ echo "❌ basic_transformation directory NOT found"
228+ fi
229+ echo ""
230+
231+ echo "7. Now checking from script directory:"
232+ cd docs-v2/helper-scripts/influxdb3-plugins
233+ echo "Current directory:"
234+ pwd
235+ echo ""
236+
237+ echo "8. Trying to access with ../../../.ext/influxdb3_plugins:"
238+ if [ -d "../../../.ext/influxdb3_plugins" ]; then
239+ echo "✅ Can access via ../../../.ext/influxdb3_plugins"
240+ ls -la ../../../.ext/influxdb3_plugins/
241+ else
242+ echo "❌ Cannot access via ../../../.ext/influxdb3_plugins"
243+ fi
244+ echo ""
245+
246+ echo "9. Checking all possible paths from script dir:"
247+ echo "Checking ../.ext/influxdb3_plugins:"
248+ ls -la ../.ext/influxdb3_plugins/ 2>&1 || echo "❌ Not found"
249+ echo ""
250+ echo "Checking ../../.ext/influxdb3_plugins:"
251+ ls -la ../../.ext/influxdb3_plugins/ 2>&1 || echo "❌ Not found"
252+ echo ""
253+ echo "Checking ../../../.ext/influxdb3_plugins:"
254+ ls -la ../../../.ext/influxdb3_plugins/ 2>&1 || echo "❌ Not found"
255+ echo ""
256+ echo "Checking ../../../../.ext/influxdb3_plugins:"
257+ ls -la ../../../../.ext/influxdb3_plugins/ 2>&1 || echo "❌ Not found"
258+ echo ""
259+
260+ echo "======================================"
261+ echo "DEBUG: Complete"
262+ echo "======================================"
263+
175264 - name : Transform plugin documentation
176265 if : steps.validate.outputs.validation_passed == 'true'
177266 run : |
178- cd docs-v2
179-
180- # Set PLUGIN_DIR for the transformation script
181- export INFLUXDB3_PLUGINS_PATH=".ext/influxdb3_plugins"
182-
267+ cd docs-v2/helper-scripts/influxdb3-plugins
268+
269+ # Set path to plugins repo (relative from script directory)
270+ export INFLUXDB3_PLUGINS_PATH="../../../. ext/influxdb3_plugins"
271+
183272 # Run the transformation
184273 if [[ "${{ steps.inputs.outputs.plugins }}" == "all" ]]; then
185- node helper-scripts/influxdb3-plugins/ port_to_docs.js
274+ node port_to_docs.js # ← CHANGE: Script is in current dir now
186275 else
187276 # Transform specific plugins
188277 IFS=',' read -ra PLUGIN_ARRAY <<< "${{ steps.inputs.outputs.plugins }}"
189278 for plugin in "${PLUGIN_ARRAY[@]}"; do
190279 plugin=$(echo "$plugin" | xargs) # trim whitespace
191280 echo "Transforming plugin: $plugin"
192- node helper-scripts/influxdb3-plugins/ port_to_docs.js --plugin "$plugin"
281+ node port_to_docs.js --plugin "$plugin"
193282 done
194283 fi
195284
@@ -201,9 +290,11 @@ jobs:
201290 - name : Setup Playwright
202291 run : |
203292 cd docs-v2
293+ npm install playwright
204294 npx playwright install chromium
205295
206296 - name : Generate screenshots
297+ if : false # Disable screenshots for MVP
207298 id : screenshots
208299 run : |
209300 cd docs-v2
0 commit comments