Commit 23abb3d
fix(ci): pass --shard to vitest in the windows e2e matrix [RED-738] (#1415)
The `e2e - checkly - windows` job declares a 4-way shard matrix, but all
four shards ran the entire 27-file e2e suite.
pnpm forwards a literal `--` verbatim into the script (npm strips it),
where vitest's parser collects everything after it into an argument list
it never reads — silently discarding --shard. Dropping the separator is
sufficient: pnpm appends trailing args to the script command as-is, so
--shard reaches vitest without one.
The compound `test:e2e` script is not the cause. Args appended to `A && B`
land at the end of B, and B is the vitest invocation.
Verified locally that the four shards now partition the suite 7/7/7/6 into
27 unique files. A green run is not evidence on its own — the broken form
passed too, running the full suite four times over.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b16528a commit 23abb3d
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
| |||
0 commit comments