vitest-dev / vitest-dev/vitest

Concurrency controls for projects

Open
#9,696 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feat: browser p3-minor-bug
Dominant language
TypeScript
Stars
17.1k
Forks
2k
Avg merge
1d 21h
Merged PRs (30d)
92

Description

Clear and concise description of the problem

With over 20 projects using browser mode, it seems our CI is running into some resource exhaustion issues. It looks like vitest starts a dev server for each project and a browser tab for each project. We already reduce concurrency per project, but it does seem to start all projects simultaneously. Causing a lot more concurrency than we intend. We already optimized by using a single browser instance.

Suggested solution

Hard to say with my limited knowledge of vitest architecture. But if we could have a single pool across all projects and control concurrency globally, that would be ideal. Otherwise a way to specify concurrency for running the projects. e.g. only 4 projects may run simultaneously.

Alternative

Wrapping vitest with an orchestrator that runs only X projects simultaneously, but it complicates things around test output, coverage, projects filtering...

Additional context

No response

Validations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked CircleCI run and how Vitest launches browser-mode projects, dev servers, and tabs. Define a global project concurrency control that preserves test output, coverage, and project filtering; the work is done when projects share the intended limit without resource exhaustion.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
performance, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.