- All playbooks
- Slow tests
- Use a small byte fixture where a test only hashes or archives a file's bytes
Use a small byte fixture where a test only hashes or archives a file's bytes
Archive tests compress a 28-byte file in place of the whole linked test binary.
Company examples
How OpenClaw used this technique
Read what OpenClaw changed and follow the original sources.
Use a small byte fixture where a test only hashes or archives a file's bytes
Archive tests compress a 28-byte file in place of the whole linked test binary.
In single cross-run observations, the package's race lane went from 256.401 s to 61.720 s. Source
In the same observations, runner time in the race Go core job fell from 16m45s to 11m04s, while the whole CI run took 17m37s and 17m39s. Source
- Use it when
- Tests archive, compress, upload or hash a large real artifact, often the test binary itself, when the contract under test depends only on the file's bytes and hash.
- Before applying it
- Companion executables stay real builds wherever the test checks executable behavior.
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