Title: perf(ci): disable the Turbopack persistent build cache (3.2x faster builds) by waleedlatif1 · Pull Request #6080 · simstudioai/sim · GitHub
Open Graph Title: perf(ci): disable the Turbopack persistent build cache (3.2x faster builds) by waleedlatif1 · Pull Request #6080 · simstudioai/sim
X Title: perf(ci): disable the Turbopack persistent build cache (3.2x faster builds) by waleedlatif1 · Pull Request #6080 · simstudioai/sim
Description: Summary The Turbopack persistent build cache is a net loss at this app's size. Turning it off cuts the Build App check from 8–20 min to under 3. Measured, not inferred — a controlled A/B in #6078: three runs on one branch, every commit touching only .github/**, so the Next module graph was byte-identical across all three and only cache state varied. run flag pre-build disk compile Build App job C — cache OFF ⨯ 5.1G (ignored) 113s 2m53s A — cache ON, cold ✓ 4.0K 162s 3m54s B — cache ON, warm ✓ 5.1G 360s 8m18s A warm cache made the identical build 3.2× slower than no cache. Why it degrades: the cache grows, it doesn't converge Run B started from 5.1 GB and committed 12 GB — on a tree where nothing changed. That's the mechanism behind the progressive slowdown on longer-lived disks (observed up to 11.7 min): every run adds to what the next must read and revalidate, so a disk gets worse the more it's used. This also corrects an earlier theory of mine that cache mismatch was the variable — accumulated size matters more. Validity controls Flag manipulation confirmed in the logs — cache-on runs print ✓ turbopackFileSystemCacheForBuild; the cache-off run omits it entirely. Every run used turbo --force. Without it, a .github-only commit leaves Turbo's task inputs unchanged, so Turbo replays a cached log and reprints a stale compile time — fabricating the number being measured. Five such phantom runs had to be discarded from the observational data first. No cancelled siblings. cancel-in-progress means an early push cancels a run, and a cancelled run still commits its partial cache. Each run here reached completed before the next push. This mattered: an earlier conclusion of mine ("a brand-new sticky key is not cold") was wrong precisely because the "first" run had a cancelled sibling that had already written 5.1 GB. What this removes, and what it doesn't #5869 enabled the cache on locally-measured numbers (105s cold → 22s warm) that never reproduced in CI and are inverted here. #6072 then branch-scoped the disk to stop PRs restoring each other's caches — that fixed a real problem, but with the cache off the disk serves nothing, so the mount, the size reporting, and the env gate go with it. turbopackFileSystemCacheForBuild: false is pinned explicitly rather than left to the Next default, because upstream already flips that default to true in canary/preview builds (#94616) — relying on the default would let a version bump silently re-enable a config we measured as harmful. ci-cache-cleanup.yml is kept, re-scoped. PRs opened while the per-branch key was live still hold 5–12 GB volumes and nothing else reclaims them; deleting the workflow now would orphan that storage. It's a no-op for new PRs and can be removed once drained. Caveat n=1 per cell. The 3.2× effect size and its agreement with ~15 prior observations make this convincing, but it is three runs, not a distribution. The change is a one-line revert if staging disagrees. Cross-commit restore is separately undocumented-as-supported (#87283 reports stale HTML from a cache built at another commit), so turning it off also removes a correctness risk. Type of Change Performance Improvement Testing tsc --noEmit exit 0, biome clean, actionlint clean on both changed workflows. No dangling references to NEXT_TURBOPACK_BUILD_CACHE or the nextjs-cache key remain. This PR's own Build App run is the confirmation — expect ~2–3 min.
Open Graph Description: Summary The Turbopack persistent build cache is a net loss at this app's size. Turning it off cuts the Build App check from 8–20 min to under 3. Measured, not inferred — a controlled A/B in #60...
X Description: Summary The Turbopack persistent build cache is a net loss at this app's size. Turning it off cuts the Build App check from 8–20 min to under 3. Measured, not inferred — a controlled A/B in...
Opengraph URL: https://github.com/simstudioai/sim/pull/6080
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6da106d5-a1e1-3ea9-22b7-81ebb8b12740 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C124:361541:4D4B8D:6F607F:6AFB3B81 |
| html-safe-nonce | 29cb25c5454794fc88a7ba1818d617effe16052a1f6b755befae129528d58f60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTI0OjM2MTU0MTo0RDRCOEQ6NkY2MDdGOjZBRkIzQjgxIiwidmlzaXRvcl9pZCI6IjY0Nzk1MDQ5MDQyNjI3Mjg1NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4dd945ab3238ab2b94c1b90fcd21dd899f040d17b3f128030cc86577d986276f |
| hovercard-subject-tag | pull_request:4165419542 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6080/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary The Turbopack persistent build cache is a net loss at this app's size. Turning it off cuts the Build App check from 8–20 min to under 3. Measured, not inferred — a controlled A/B in #60... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2169b0dfbef67ed6b128074a5ed45bb7d5d1859783b10178b09a7765ad5f3693 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b4fc8df5ef1c6757e733a23e6b81b6725021823 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width