Skip to content

CI: whole-platform typecheck repeatedly exhausts the V8 heap #4005

Closed

Description

@yannickmonney

The required whole-platform Type check can exhaust V8's roughly 4 GiB heap after a successful frozen dependency install. Two executions of PR #4003 at the same platform task hash failed, and PR #4001 also failed with the same symptom. These are actual cache misses, not replayed failures; no TypeScript diagnostic was reported.

Observed normal CI:

Source Actual job Platform task hash Result
#4003 e6bdde0 109922523360 c0701803ac65c2d3 Heap OOM, exit 137
#4003 173fe35, identical source tree 109930949206 c0701803ac65c2d3 Heap OOM, exit 137
#4001 3ccb722, TS changes are comments 109925675190 8b995a9decae124c Heap OOM, exit 137
main 4d14c55 109919000350 4c7071b23208b065 Fresh execution passed
#4004 fc54249 109930514507 5e314c55ae5fd92d Fresh execution passed

The current job invokes bunx turbo run typecheck; the platform runs bunx tsc --noEmit over the full frontend/backend/test program. The frozen installation uses Bun 1.4.2 and TypeScript 6.0.2. The compiler's resolved Node/V8 version and heap limit are not printed, and the job has no explicit heap budget. The failing logs retain roughly 4,013–4,016 MB after garbage collection.

This establishes a fragile capacity boundary, not deterministic failure on every cold run or a demonstrated type-expansion regression in #4003. Its backend behavior tests pass separately and do not waive Type check. An unchanged retry already failed again.

Expected repair: record the actual Node/V8 and heap limit, measure the complete unchanged compiler program, and give this job a justified bounded memory budget (an initial 6 GiB control is reasonable on the public 16 GB Ubuntu runner) or fix a measured source expansion. Retain strict types, all files and all other gates. Obtain a fresh normal passing Type check and retain the failed attempts; do not narrow the program, bypass the gate or retry until green. Turbo 2.10.11 passes NODE_OPTIONS through strict mode, but passthrough values do not themselves change task hashes, so a cached success is not proof of the new setting.

Canonical CI follow-up for the active review; root is coordinating with the existing TALE-389 author. No production test was run.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions