Skip to content

ci: shard checkly unit and e2e tests into 2 vitest shards#1343

Draft
sorccu wants to merge 1 commit into
mainfrom
simo/shard-windows-tests
Draft

ci: shard checkly unit and e2e tests into 2 vitest shards#1343
sorccu wants to merge 1 commit into
mainfrom
simo/shard-windows-tests

Conversation

@sorccu
Copy link
Copy Markdown
Member

@sorccu sorccu commented Jun 5, 2026

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 test job is now matrixed by package via a target dimension, so one definition covers both packages (sharded checkly + unsharded create-checkly).

Note for reviewer

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 — so the no--- form is load-bearing, not stylistic.

⚠️ Branch protection

Check names changed (e.g. test - ubuntu-latesttest - checkly - ubuntu-latest - 1/2, e2e - checkly - … - 1/2). If the old names are required status checks on main, the required-checks list needs updating or PRs will hang. No aggregation jobs were added.

🤖 Generated with Claude Code

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>
@sorccu sorccu marked this pull request as draft June 8, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant