ci: shard Vitest suite#1584
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
…g-116b # Conflicts: # pnpm-lock.yaml
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Coverage Report
File CoverageNo changed files found. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 043397e. Configure here.
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s CI pipeline to run the Vitest suite in parallel shards, collect per-shard blob reports with V8 coverage, and merge/post consolidated coverage results on pull requests while preserving a single aggregate test status check.
Changes:
- Shard the Vitest CI run into 4 parallel jobs and add an aggregate
testjob. - Enable V8 coverage and add
@vitest/coverage-v8, plus ignore generated.vitest-reports/. - Add a PR-only coverage merge step and post coverage results as a PR comment.
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/ci.yml |
Replace single test job with 4 sharded runs, upload blob artifacts, add aggregate test check, and merge/report coverage on PRs. |
vitest.config.ts |
Configure Vitest coverage provider/reporters for consolidated coverage output. |
package.json |
Add @vitest/coverage-v8 to devDependencies (catalog). |
pnpm-workspace.yaml |
Add @vitest/coverage-v8 to the workspace catalog. |
pnpm-lock.yaml |
Lockfile updates for @vitest/coverage-v8 and its transitive deps. |
.gitignore |
Ignore .vitest-reports generated by Vitest blob reporting. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…g-116b # Conflicts: # pnpm-lock.yaml

Summary
testcheck passesTesting
pnpm install --frozen-lockfilepnpm lintpnpm knippnpm build(Node 22.22.2)pnpm vitest run --merge-reports --coverage(167 files and 893 tests)actionlint .github/workflows/ci.ymlvitest_coverage_comment_validation.md
To show artifacts inline, enable in settings.