Skip to content

Commit 5746314

Browse files
committed
exp(ci): run C — FS build cache OFF
NEXT_TURBOPACK_BUILD_CACHE '1' -> '0'. Module graph still byte-identical to runs A and B; the 12G on the sticky disk is now ignored by Turbopack. Records run B: warm was 2.2x SLOWER than cold and the cache grew 5.1G -> 12G.
1 parent cc30aff commit 5746314

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/test-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ jobs:
323323
# never reproduced in CI (compile has ranged 3.5-17.8 min) — local
324324
# numbers, not a CI target.
325325
# EXPERIMENT VARIABLE — flipped across runs on this branch.
326-
NEXT_TURBOPACK_BUILD_CACHE: '1'
326+
NEXT_TURBOPACK_BUILD_CACHE: '0'
327327
# EXPERIMENT ONLY, never merge: `--force` bypasses Turbo's task cache.
328328
# Without it a commit touching only .github/** leaves Turbo's task
329329
# inputs unchanged, so Turbo replays a cached log and reprints a STALE

EXPERIMENT.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,19 @@ Filled in as runs land.
5656
| run | pre-build | compile | post-build | job total | run id |
5757
|---|---|---|---|---|---|
5858
| A — cold, cache on | **4.0K** | **2.7 min** | 5.1G | 3m54s | 30504331243 |
59-
| B — warm, cache on | | | | | |
59+
| B — warm, cache on | **5.1G** | **6.0 min** | **12G** | 8m18s | 30504621611 |
6060
| C — cache off | | | | | |
6161

6262
Run A notes: single CI run on the branch, no cancelled sibling, `--force` confirmed in the
6363
log so this was a real build and not a Turbo replay. 4.0K pre-build settles a separate
6464
question — a brand-new sticky-disk key is **cold**; Blacksmith does not hydrate it. 2.7 min
6565
also lands exactly on the pre-#5869 no-FS-cache median (2.7 min), which is the first hint
6666
that the cache buys nothing on a cold run.
67+
68+
Run B notes: pre-build 5.1G written by run A, module graph byte-identical, `--force` again
69+
confirmed. Compile **2.2x slower than cold** (6.0 vs 2.7 min); job 8m18s vs 3m54s. The cache
70+
also **grew 5.1G -> 12G on an identical tree**, which is the likely mechanism behind the
71+
progressive degradation seen on older shared disks (up to 11.7 min): the more a disk is
72+
written, the more there is to read and revalidate. Run B's CI run shows `failure`, but Build
73+
App passed - the failing job was `Lint and Test` on a 1ms real-clock flake in
74+
`pi-lifetime.test.ts` (`expected 5399999 to be 5400000`), unrelated to this experiment.

0 commit comments

Comments
 (0)