ci: split build job into parallel per-package jobs#95
Merged
Conversation
Split the monolithic build matrix job into independent lint, forge-test, coc-test, deep-wiki-test, and extension-test jobs that run in parallel. Add a ci aggregator job (single status check for branch protection) and keep package as the VSIX builder gated on all checks. Co-authored-by: Cursor <cursoragent@cursor.com>
The coc package has ~1190 vitest test files and dominates CI wall-clock. Split each coc-test matrix entry into 3 shards via vitest --shard so each runner only executes ~400 files. Linux shards still collect coverage (now into per-shard coverage-final.json artifacts) and a new coc-coverage merge job uses `nyc report --temp-dir` to combine them back into a single lcov.info / cobertura / html report. - packages/coc/vitest.config.ts: add 'json' to the coverage reporter list so each shard emits coverage-final.json (required by nyc merge). - scripts/coverage-diff.sh: support SKIP_TESTS=1 so the diff filter can reuse an already-aggregated lcov.info instead of re-running tests. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split the monolithic build matrix job into independent lint, forge-test, coc-test, deep-wiki-test, and extension-test jobs that run in parallel. Add a ci aggregator job (single status check for branch protection) and keep package as the VSIX builder gated on all checks.