Commit 9fac429
Cap Vitest worker concurrency to keep the suite deterministic
Vitest 4 defaults its worker count to roughly the host CPU count. On
high-core machines that are also running other work (e.g. several dev
stacks), that oversubscribes the cores and starves test event loops,
making timing-sensitive component tests (mount-then-query) flake
intermittently. Vitest 2 did not exhibit this under the same suite.
Cap maxWorkers so the run stays deterministic. CI runs on far fewer
cores than this binds, so it is not slowed there; the cap only takes
effect on big multi-core machines where the default oversubscribes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 9b8f9c7 commit 9fac429
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| |||
0 commit comments