Skip to content

Commit 9173f2a

Browse files
committed
fix(ci): add detailed cache diagnostics to build-sea workflow
Added detailed logging to Yoga Layout cache verification to diagnose why WASM caches aren't being restored properly even after running build-wasm.yml workflow. Diagnostics show: - Cache restore result (hit/miss) - Exact cache key being used - Directory contents after restore - Whether files actually exist This will help identify if issue is: - Cache key mismatch between workflows - Cache not being saved properly - Cache restore failing silently - Files being deleted between steps
1 parent cc97510 commit 9173f2a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build-sea.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,20 @@ jobs:
229229
id: yoga-cache-valid
230230
shell: bash
231231
run: |
232+
echo "=== Yoga Layout Cache Verification ==="
233+
echo "Cache restore result: ${{ steps.yoga-cache.outputs.cache-hit }}"
234+
echo "Cache key used: yoga-wasm-${{ steps.wasm-cache-keys.outputs.yoga-hash }}"
235+
echo "Checking for files..."
236+
ls -lah packages/yoga-layout/build/wasm/ 2>&1 || echo "Directory does not exist"
237+
echo ""
238+
232239
if [ -f "packages/yoga-layout/build/wasm/yoga.wasm" ] && [ -f "packages/yoga-layout/build/wasm/yoga.js" ]; then
233240
echo "valid=true" >> $GITHUB_OUTPUT
234241
echo "✓ Yoga Layout cache valid"
235242
else
236243
echo "valid=false" >> $GITHUB_OUTPUT
237244
echo "✗ Yoga Layout cache invalid or missing"
245+
echo "Missing files - will trigger rebuild"
238246
fi
239247
240248
- name: Verify AI models cache

0 commit comments

Comments
 (0)