- All playbooks
- Slow tests
- Shard a slow coverage run across parallel jobs and merge the profiles before the gate
Shard a slow coverage run across parallel jobs and merge the profiles before the gate
Parallel coverage shards shorten the coverage gate's critical path while one merged profile still faces the same threshold.
Company examples
How OpenClaw used this technique
Read what OpenClaw changed and follow the original sources.
Shard a slow coverage run across parallel jobs and merge the profiles before the gate
Parallel coverage shards shorten the coverage gate's critical path while one merged profile still faces the same threshold.
On different source revisions and uncontrolled runner samples, coverage job start to gate ready went from 20m06s to 10m13s. Source
Summed coverage runner wall time rose from 20m06s to 29m27s, about 46.5% more. Source
- Use it when
- A single coverage job reruns the whole test suite in one process and is the slowest job in the workflow.
- Before applying it
- Summed coverage runner time rose about 46.5% in exchange for the shorter gate; each shard writes an atomic profile and the gate validates and merges all of them before applying the unchanged threshold.
Company Playbooks
- Read Anthropic’s playbookRun only affected tests
- Read DoorDash’s playbookRun build and test in parallel, sharded across CI agents
- Read Linear’s playbookBenchmark the same job on faster hardware
- Read Mastra’s playbookStarSling runners for the slowest test workflow
- Read OpenAI’s playbookRank CI fixes by the minutes they save
- Read Ramp’s playbookType-check with a native checker
- Read Shopify’s playbookLet an agent iterate against one CI metric
- Read Spotify’s playbookBuild arm64 on native arm64 runners
- Read Stripe’s playbookRun only the tests a change can reach
- Read Uber’s playbookBuild the merge-queue speculations most likely to be needed
- Read OpenClaw’s playbookSelect only the tests and proofs a change can affect