Repository navigation
Commit 21556a2
committed
chore(gates): give freerange a reference-free tsconfig view of the root program
Repo Guards -> 'Check numeric ranges' OOMed (exit 134, ~4 GB) on both
pushed heads. Cause (#3289 CI diagnosis): freerange's loader walks the
resolved tsconfig's projectReferences recursively and keeps every
project's ts.Program alive simultaneously. On main the root config had
no references, so fr loaded one program (~87s, green). With the #3279
references graph it loads 26 programs / 13,461 file slots and ~2.8 GB
heap BEFORE analysis begins; Node's default 4 GB heap dies. Removing
only the root references array makes the gate pass (112s); upstream
0.0.5 bundles the same loader, so this is not a version to pin away.
Fix at the config, not the heap: scripts/freerange/tsconfig.json extends
the root tsconfig — and 'extends' does not inherit references (planted
with --showConfig) — so 'fr' gets exactly the single root program it
analyzed on main (verified: byte-identical findings and coverage,
971/13495 fully analyzed). tsc -b keeps using the real graph.
check:freerange now runs fr from that directory; the reference-free and
extends-to-root properties are pinned by a guard test with the OOM as
its mutation.1 parent 48e0f67 commit 21556a2
3 files changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
69 | 84 | | |
70 | 85 | | |
71 | 86 | | |
| |||
0 commit comments