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
{{ message }}
Repository navigation
Windows: full test suite fails with default 5s timeouts under parallel execution
#3947
Running pnpm test on Windows (win32 x64, Node.js v22) causes multiple test files to fail with Vitest timeout errors. All of these tests pass individually (npx vitest run <file>), but fail when run as part of the full parallel suite due to the 5-second default testTimeout.
Affected test files
scripts/oxlint-contract.spec.ts — 7 failures, all timeout-related
scripts/translation-pairing-merge.spec.ts — 1 failure at 15s timeout
packages/client/ui-primitives/tests/code-block.client.spec.tsx — 1 failure at 5s timeout
Observe ~9 timeout-related failures across 4-5 test files.
Run any affected file individually (e.g., npx vitest run scripts/oxlint-contract.spec.ts) and confirm it passes.
Expected behavior
The full test suite should pass on Windows, or tests that spawn subprocesses should have a longer or configurable timeout to account for slower I/O and process startup on Windows.
Actual behavior
Tests involving spawnSync, file I/O, or lazy dynamic imports exceed the 5s (or 15s for the translation merge test) timeout when CPU is contended by parallel workers. The same tests pass in isolation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Summary
Running
pnpm teston Windows (win32 x64, Node.js v22) causes multiple test files to fail with Vitest timeout errors. All of these tests pass individually (npx vitest run <file>), but fail when run as part of the full parallel suite due to the 5-second defaulttestTimeout.Affected test files
scripts/oxlint-contract.spec.ts— 7 failures, all timeout-relatedscripts/translation-pairing-merge.spec.ts— 1 failure at 15s timeoutpackages/client/ui-primitives/tests/code-block.client.spec.tsx— 1 failure at 5s timeoutpackages/subagent/subagent-codex/tests/real-product.spec.ts— intermittent failureReproduction steps
pnpm installandpnpm run build.pnpm test.npx vitest run scripts/oxlint-contract.spec.ts) and confirm it passes.Expected behavior
The full test suite should pass on Windows, or tests that spawn subprocesses should have a longer or configurable timeout to account for slower I/O and process startup on Windows.
Actual behavior
Tests involving
spawnSync, file I/O, or lazy dynamic imports exceed the 5s (or 15s for the translation merge test) timeout when CPU is contended by parallel workers. The same tests pass in isolation.Environment
All reactions