Repository navigation
Conversation
… reports
CI's node test job has been dying without reporting: 50 minutes, no failing
step, no summary. It is not a hang. The vmForks pool retains memory across test
files, so unit-fast workers climb to the heap ceiling and V8 aborts with
"Ineffective mark-compacts near heap limit".
Measured on DevAgents with CI's own settings (CI=true, OPENCLAW_TEST_WORKERS=2,
6144 MB heap, Node 22.22.3 — CI pins 22.x, so the pool decision is identical).
Only the pool differed between runs:
vmForks on -> two workers reach ~5.96 GB and die at ~130 s; unit-fast never
reports. Host had 13-22 GB free throughout, so this is the
per-process V8 limit, not the machine.
vmForks off -> suite completes in 293 s, no OOM, 6614/6615 unit tests pass.
Verified again after this change with NO OPENCLAW_TEST_VM_FORKS override, so the
code path is what fixes it rather than the escape hatch: 0 OOM, exit 0.
The heap was already raised to 6144 MB for this ("V8 OOM near 4GB" in ci.yml).
That deferred the failure instead of fixing it and the growth has since outrun
the higher ceiling, so raising it again is not the answer. This applies the same
treatment the file already gives Windows and Node 24 — skip the pool where it
misbehaves — and leaves local runs untouched. Both escape hatches still work:
=0 opts out anywhere, =1 forces it back on in CI to re-measure.
The leak itself is not fixed here, only made non-fatal. Worth chasing separately:
it is why the heap was raised once already, and it will keep growing.
Co-Authored-By: Claude Opus 5 <[email protected]>
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Sep 6, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI's node test job dies without reporting
50 minutes, no failing step, no summary. It looks like a hang; it isn't. The
vmForkspool retains memory across test files, sounit-fastworkers climb to the heap ceiling and V8 aborts:Measured, not inferred
On DevAgents with CI's own settings —
CI=true,OPENCLAW_TEST_WORKERS=2, 6144 MB heap, Node 22.22.3 (CI pins22.x, so the pool decision is identical). Only the pool differed:unit-fastnever reportsThe host had 13–22 GB free throughout, so this is the per-process V8 limit, not the machine.
Then verified again after this change with no
OPENCLAW_TEST_VM_FORKSoverride, so the code path is what fixes it rather than the escape hatch: 0 OOM, exit 0.Why not just raise the heap again
Because that is what happened last time. The 6144 MB limit exists for this exact failure —
ci.ymlstill says "Default heap limits have been too low on Linux CI (V8 OOM near 4GB)". Raising the ceiling deferred the failure; the growth has since outrun the new ceiling too. A third bump buys a few more weeks.The change
One condition: skip
vmForkswhenisCI. This is the same treatment the file already gives Windows and Node 24 — the pool is disabled where it misbehaves. Local runs are untouched, and both escape hatches still work:=0opts out anywhere,=1forces it back on in CI to re-measure once the leak is fixed.It does not fix the leak — it stops the leak being fatal. The leak is why the heap was raised once already, and it will keep growing. Worth a tracked follow-up; I did not chase it here because it is open-ended and CI has been unable to complete a run for weeks.
That matters more than it sounds: a suite that never finishes reports nothing. That is how the persona breakage in #125 sat on main unnoticed.
Note on the remaining red
Two failures in my local runs are not regressions and are untouched:
src/plugins/discovery.test.ts"blocks suspicious ownership…" — fails only as root, because the check trusts root-owned files by design (discovery.ts:127-128). Passes on CI's non-root runner.extensions/*files missing optional deps (matrix-bot-sdk,google-auth-library) — an artifact of my symlinkednode_modules, not of CI.Review asks
vmForkstoo? The leak presumably exists there as well; local runs simply have no heap cap, so nobody has hit the wall yet.unit-fastin particular would retain memory under VM contexts — a known global, or a shared module-level cache?@codex review