Repository navigation
test(vitest): run pool workers with the WASM runtime flags (#1779) - #2046
Merged
Merged
Conversation
A vitest pool worker is the one launch path that never received `--liftoff-only`, so the suite compiled tree-sitter grammars on the turboshaft tier. Once ~640 extraction tests have warmed a grammar function up, its background tier-up job (Turboshaft LoopUnrollingPhase, symbolized from the native stack) exhausts a compiler Zone and aborts the worker: `Fatal process out of memory: Zone`, which vitest reports only as "Worker exited unexpectedly" with the file's remaining tests unrun. Pass WASM_RUNTIME_FLAGS through poolOptions.forks.execArgv, so the test process matches the bundled launcher, the CLI re-exec and refresh-launcher. V8 flags are process-global, so parse worker threads are covered too. Linux x64, Node 24.15, `__tests__/extraction.test.ts` (655 tests): without the flag 3 of 4 runs died at the same test (639 passed); with it 2 of 2 passed, in 19–24s instead of 34–41s. Neither `--no-wasm-loop-unrolling` nor `--no-wasm-dynamic-tiering` prevents it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> (cherry picked from commit 565ec81)
This was referenced Sep 27, 2026
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.
Carries @danusha2345's #1883 onto current
main(their commits, authorship preserved; the CHANGELOG entry is collected separately to avoid conflicts between the fix PRs).Validation
mainand passes on this branch.npx tsc --noEmitis clean.Fixes #1779
🤖 Generated with Claude Code