- All playbooks
- Slow tests
- Split the slowest compact test job along measured configuration boundaries
Split the slowest compact test job along measured configuration boundaries
Splitting the long pole reduces the completion time of the compact test matrix.
Company examples
How OpenClaw used this technique
Read what OpenClaw changed and follow the original sources.
Split the slowest compact test job along measured configuration boundaries
Splitting the long pole reduces the completion time of the compact test matrix.
In one exact-head run per side, the slowest compact job took 403 seconds before and 300 seconds after, 25.6% less time. Source
- Use it when
- One serial test config in a compact matrix finishes minutes after every other job and sets the wall-clock time for the pull request.
- Before applying it
- The matrix grows by two jobs and extra runner registrations; the split applies only to pull-request runs and keeps coverage invariants for the Docker and isolated configs.
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