You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds pool: "forks" to the gateway-server Vitest project config, switching from the default threads pool to a forks (child-process) pool. The createScopedVitestConfig helper already accepts and correctly propagates this option, so the change is a single-line, well-supported addition that measurably reduces peak RSS (~15%) with no regression in test count or elapsed time.
Confidence Score: 5/5
Safe to merge — purely a test-configuration change with no production code impact.
Single-line change to a Vitest config option that is already typed and handled in the shared config helper. No logic changes, no production code touched, and the PR provides benchmark evidence of the improvement.
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
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.
Summary
gateway-serverVitest project in the fork pool to reduce retained worker/module-graph memory.isolate: true.Evidence
pnpm test:gatewaypassed 257 files / 3003 tests, elapsed 57.92s, max RSS 4,429,864 KB.pnpm test:gatewaypassed 257 files / 3003 tests, elapsed 56.78s, max RSS 3,711,392 KB.OPENCLAW_TESTBOX=1 pnpm check:changedpassed.pnpm exec oxfmt --check --threads=1 test/vitest/vitest.gateway-server.config.tspassed after rebase.git diff --check origin/main...HEADpassed after rebase.Notes