vitest-dev / vitest

Next generation testing framework powered by Vite.
https://vitest.dev
MIT License
13.13k stars 1.18k forks source link

perf: limit workspace project concurrency to available cores #6869

Closed sheremet-va closed 2 weeks ago

sheremet-va commented 2 weeks ago

Description

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

Tests

Documentation

Changesets

sheremet-va commented 2 weeks ago

Hold on, what concurrency is this? Workspace projects are always run sequentially, right?

No. It was running sequentially when we had to do the process.chdir. Before that, it was running in parallel so I reverted to the same behaviour when we removed the process.chdir hack. At the time I also added the concurrency limit of 5 just in case.