You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: shard CLI snapshot tests across parallel jobs (#2657)
The CLI snapshot suite runs in one job per platform. Split each platform
into three parallel jobs to reduce test execution time.
Linux and macOS use `VP_SNAP_SHARD=INDEX/TOTAL` to distribute the
ordered trials across jobs. Local runs still execute the full suite by
default. Windows uses the existing `nextest` runner with `--partition
hash:INDEX/TOTAL` and shares the prebuilt archive across jobs.
Measured results compare the [original run on September
8](https://github.com/voidzero-dev/vite-plus/actions/runs/34229849906)
with the [sharded run on September
10](https://github.com/voidzero-dev/vite-plus/actions/runs/34494568955):
| Platform | Snapshot step before | Longest shard step after | Step time
reduction | Snapshot job span before → after |
| --- | --- | --- | --- | --- |
| Linux x64 | 7m39s | 3m12s | 58.2% | 17m59s → 5m59s |
| macOS ARM64 | 5m25s | 2m21s | 56.6% | 13m04s → 5m27s |
| Windows x64 | 6m48s | 2m48s | 58.8% | 9m21s → 6m06s |
Snapshot times measure the `Run PTY snapshot tests` step. Job span
measures the first job start to the last job completion per platform,
including setup and staggered starts.
All nine shards pass. These are single runs from different commits, with
different build-cache states. The total job gains therefore do not
measure sharding alone. Each shard repeats setup and uses a separate
runner.
0 commit comments