chore(ci): Cache prebuild entries#1742
Conversation
✅ Deploy Preview for cedarjs canceled.
|
Greptile SummaryThis PR adds caching for
Confidence Score: 5/5Safe to merge — the cache steps are additive, wrapped with continue-on-error, and don't touch any existing functionality. The version extraction grep uses the correct Yarn v4 lockfile format, the cache key is version-aware preventing stale binary hits across upgrades, restore and save keys match, and both cache steps use continue-on-error so a cache miss or wrong path is a silent no-op rather than a CI failure. No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "fix grep syntax" | Re-trigger Greptile |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t build:pack --exclude create-ceda... |
✅ Succeeded | 2s | View ↗ |
nx run-many -t build |
✅ Succeeded | 3m 6s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-05-10 20:58:47 UTC
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t test --minWorkers=1 --maxWorkers=4 |
✅ Succeeded | 9s | View ↗ |
nx run-many -t test:types |
✅ Succeeded | 10s | View ↗ |
nx run-many -t build |
✅ Succeeded | 6s | View ↗ |
nx run-many -t build:pack --exclude create-ceda... |
✅ Succeeded | 6s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-05-10 18:56:43 UTC
Windows CI has been flaky. Analyzing the logs it sees it often fails to download better-sqlite3 native binaries. It then falls back to manually building them, which always fails on Windows. The download has been failing on Ubuntu too from time to time, but when it does and falls back to building it succeeds with the build, and CI for Ubuntu passes. But building is slow. Downloading prebuilt bins is faster. Caching the bins when we do succeed in downloading them works around flaky downloads, and hopefully makes it even faster than actual downloads even if they had been fully stable

Windows CI has been flaky. Analyzing the logs it sees it often fails to download better-sqlite3 native binaries. It then falls back to manually building them, which always fails on Windows.
The download has been failing on Ubuntu too from time to time, but when it does and falls back to building it succeeds with the build, and CI for Ubuntu passes. But building is slow. Downloading prebuilt bins is faster.
Caching the bins when we do succeed in downloading them works around flaky downloads, and hopefully makes it even faster than actual downloads even if they had been fully stable