Commit fbb2dd4
committed
fix(build): drain compilation events after shutdown, set TURBO_ENGINE_IGNORE_DIRTY in test
- After project.shutdown() resolves, yield to the event loop via
setTimeout so the JS async iterator drains all buffered
persistence/compaction TraceEvents before getTraceEvents() is called
in waitForShutdown.
- Set TURBO_ENGINE_IGNORE_DIRTY=1 in the trace-build test so persistent
caching works in dirty git repos (test directories are always dirty).
- Update the turbopack snapshot to expect turbopack-compaction and
turbopack-persistence spans.1 parent 53adb6c commit fbb2dd4
File tree
2 files changed
+17
-1
lines changed- packages/next/src/build/turbopack-build
- test/e2e/app-dir/trace-build-file
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
268 | 276 | | |
269 | 277 | | |
270 | 278 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| |||
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
| 143 | + | |
| 144 | + | |
137 | 145 | | |
138 | 146 | | |
139 | 147 | | |
| |||
0 commit comments