Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Raise the typecheck heap ceiling from 6144 MB to 8192 MB
garrytan08a2d917ef8d
diff --git a/docs/operations/verify-and-nightly-e2e.md b/docs/operations/verify-and-nightly-e2e.mdindex 2ed85ab458..66eaf9d098 100644--- a/docs/operations/verify-and-nightly-e2e.md+++ b/docs/operations/verify-and-nightly-e2e.md@@ -26,14 +26,15 @@ so an overrun shows whether the check or its neighbours grew.## Typecheck heap-`bun run typecheck` runs `node --max-old-space-size=6144+`bun run typecheck` runs `node --max-old-space-size=8192node_modules/typescript/bin/tsc`. tsc needs about 3.5 GB of heap on this repo(`--extendedDiagnostics`: about 7,350 files, 1.3 M lines). Node's default heaplimit follows host memory, about 2 GB on an 8 GB host, so without the flagtypecheck aborts with `JavaScript heap out of memory` on 8 GB machines such as-a Ubicloud standard-2. The value is a ceiling, not a reservation: peak RSS is-about 3.7 GB with ceilings of 3,800, 4,096 or 6,144 MB, and wall time is the-same. If tsc reaches the ceiling, find what grew the program (the+a Ubicloud standard-2. The value is a ceiling, not a reservation. Peak RSS+from a cold cache was about 3.7 GB when the flag was added and about 6.5 GB by+v0.60.687.0, which reached the old 6,144 MB ceiling and aborted one CI run+(SIGABRT, exit 134), so the ceiling is now 8,192 MB. If tsc reaches the ceiling, find what grew the program (the`Files`/`Memory used` lines of `--extendedDiagnostics`) before raising it.## macOS typecheck capdiff --git a/package.json b/package.jsonindex 3a2b2f7f09..89f28dad77 100644--- a/package.json+++ b/package.json@@ -110,7 +110,7 @@"ci:ubicloud": "bun run scripts/ci-ubicloud.ts","ci:ubicloud:diff": "bun run scripts/ci-ubicloud.ts --diff","ci:select-e2e": "bun run scripts/select-e2e.ts",- "typecheck": "node --max-old-space-size=6144 node_modules/typescript/bin/tsc --noEmit --incremental --tsBuildInfoFile node_modules/.cache/gbrain-typecheck.tsbuildinfo",+ "typecheck": "node --max-old-space-size=8192 node_modules/typescript/bin/tsc --noEmit --incremental --tsBuildInfoFile node_modules/.cache/gbrain-typecheck.tsbuildinfo","check:jsonb": "bash scripts/check-jsonb-pattern.sh","check:jsonb-params": "node scripts/check-jsonb-params.mjs","check:search-path": "bash scripts/check-search-path.sh",