feat(ci): warm Next.js builds via Turbopack persistent cache on a sticky disk#5869
Conversation
…cky disk - enable experimental.turbopackFileSystemCacheForBuild behind NEXT_TURBOPACK_BUILD_CACHE so only the CI check build opts in; production image builds stay on the default cold path until the feature stabilizes - mount ./apps/sim/.next/cache as a Blacksmith sticky disk (cache-mount) instead of actions/cache: the turbopack cache is ~5 GB, which a sticky disk mounts in ~1s while an actions/cache round-trip would eat the win - measured locally: 105s cold compile vs 22s warm (4.8x)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview The Build App workflow now mounts Reviewed by Cursor Bugbot for commit 4790a49. Configure here. |
Greptile SummaryThis PR speeds up CI builds with Next.js Turbopack’s persistent filesystem cache. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "chore(ci): drop the superseded actions/c..." | Re-trigger Greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 4790a49. Configure here.
Summary
experimental.turbopackFileSystemCacheForBuild, beta) behind aNEXT_TURBOPACK_BUILD_CACHEenv gate — only the CI check build opts in; production image builds keep the default cold path until the feature stabilizes./apps/sim/.next/cacheas a Blacksmith sticky disk via the existingcache-mountaction (same event/fork namespacing as the other mounts) — the Turbopack cache is ~5 GB, which sticky disks mount in ~1s while anactions/cacheround-trip would eat the warm-build win; the GitHub-fallback path insidecache-mountstill worksBuild Appcheck is the merge gate (~3m40s, compile is ~80% of it), so this is direct merge-wait reduction; expect the effect from the second run onward as the disk warmsactions/cachekeying but revealed the cache carried almost nothing without the Turbopack flag)Type of Change
Testing
Local A/B: cold build 105s (cache written, 4.8 GB), immediate rebuild 22.1s, byte-identical route table. This PR's own
Build Apprun is cold (first sticky-disk fill); subsequent runs on the branch/staging show the warm number.Checklist