Skip to content

ci(platform): give the Type check job a 6 GiB Node heap - #4007

Merged
yannickmonney merged 1 commit into
mainfrom
ci/typecheck-heap-budget
Sep 30, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
ci/typecheck-heap-budget

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Uncached platform typechecks in #4003 and #4001 reached V8's default heap limit near 4 GiB and exited 137. Other hosted runs, including #4004, completed, so this evidence establishes a fragile memory boundary without isolating every contributor to whole-program typechecking cost.

Give the existing Type check job a 6 GiB Node old-space budget. Log its resolved Node/V8 runtime, effective heap limit and runner resources; pass --extendedDiagnostics to the existing compiler tasks and report peak RSS through GNU time when available. Compiler programs, strictness, the job timeout and the other jobs remain unchanged. Document the budget and cache distinction in the repository contract.

Verification on the exact two-file patch:

  • Platform integration-scope and Turbo-input guards: 35 passed.
  • CLI candidate/workflow/deployment contract suites: 218 passed, 0 failed.
  • actionlint 1.7.12 with shellcheck 0.11.0, commitlint and git diff --check: passed.
  • The repository deliberately excludes Markdown/YAML from oxfmt; its explicit check found no eligible files. No formatter pass is claimed for these two files.

These local checks used retained dependencies, Bun 1.3.10 and Node 22.22.0; CI pins Bun 1.4.2. A complete local platform typecheck was not run. The author's parse/bind-only --noCheck measurement and scoped typechecks do not prove the absence of whole-program type expansion. The diagnostics argument changes Turbo's task inputs but does not guarantee a cold hosted result. Normal hosted validation must show the actual platform task execution/cache status, effective heap, diagnostics and result before this repair is accepted as demonstrated.

Closes #4005. Refs #4000.

Several uncached platform checks reached V8's default heap limit near
4 GiB. Set the Type check job's Node old-space budget to 6 GiB and
report its runtime, heap limit and available resources.

Pass extended diagnostics to the existing compiler tasks and capture
GNU time peak RSS when available. Keep compiler programs and strictness
unchanged. A hosted run must establish actual task execution and result;
the changed argument alone does not prove a cold cache.

Refs #4005, #4000
@yannickmonney
yannickmonney merged commit 219bdd1 into main Sep 30, 2026
19 checks passed
@yannickmonney
yannickmonney deleted the ci/typecheck-heap-budget branch September 30, 2026 16:06
@yannickmonney

Copy link
Copy Markdown
Contributor Author

Accepted the exact published tree and normally squash-merged as 219bdd17591309de102bc50f96801e0d6157b335. The entire merged tree equals reviewed 54b328c6 and the author patch.

  • All three applicable normal workflows passed: 16 successful contexts including the additional Opengrep result, with only three candidate-only receipt skips.
  • Type check actually executed all 17 tasks uncached using frozen Bun 1.4.2 and Node 22.23.3. The unchanged full platform program checked 9,506 files and 4,376,516 type instantiations under the reported 6,192 MiB heap limit. Native command peak RSS was 4,819,996 KiB; elapsed time 152.06 s.
  • Actual strict backend integration passed 1,219/1,219 checks across 206/206 lanes, with zero failures/skips and a verified source-bound artifact. Platform Unit also ran, passing 80,464 tests with two inherited unrelated skips retained.

The compiler's reported memory is a completion snapshot; native RSS is not aggregate concurrent job memory. This demonstrates the resource repair at this source, without claiming that partial historical measurements ruled out all type growth or that future cache hits prove execution. PRs #4003 and #4001 now have ordinary expected-head updates to this accepted main and still require their own fresh normal validation. Prior failed attempts remain preserved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: whole-platform typecheck repeatedly exhausts the V8 heap

1 participant