ci: shard checkly unit and e2e tests into 2 vitest shards#1343
Draft
sorccu wants to merge 1 commit into
Draft
Conversation
Windows test runs (unit and e2e) had grown slow again. Split the checkly test suites into two vitest shards each, run in parallel across the os matrix, while leaving create-checkly unsharded. The test job is now matrixed by package via a `target` dimension so a single definition covers both packages. The `--shard` flag is forwarded without a `--` separator: pnpm inserts a `--` when forwarding args after one, which makes vitest treat `--shard` as a test-name filter and silently run the full suite on every shard. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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.
What
Windows test runs (unit and e2e) had grown slow again. This splits the checkly unit and e2e suites into two vitest shards each, run in parallel across the OS matrix. create-checkly stays unsharded.
The
testjob is now matrixed by package via atargetdimension, so one definition covers both packages (sharded checkly + unsharded create-checkly).Note for reviewer
The
--shardflag is forwarded without a--separator. pnpm inserts a--when forwarding args after one, which makes vitest treat--shardas a test-name filter and silently run the full suite on every shard — so the no---form is load-bearing, not stylistic.Check names changed (e.g.
test - ubuntu-latest→test - checkly - ubuntu-latest - 1/2,e2e - checkly - … - 1/2). If the old names are required status checks onmain, the required-checks list needs updating or PRs will hang. No aggregation jobs were added.🤖 Generated with Claude Code