- All playbooks
- Caching and setup
- Touch the restored Go build cache so the job's first command cannot trim it
Touch the restored Go build cache so the job's first command cannot trim it
Marking restored entries as used lets a later plain build reuse them, so it stops recompiling every package.
Company examples
How OpenClaw used this technique
Read what OpenClaw changed and follow the original sources.
Touch the restored Go build cache so the job's first command cannot trim it
Marking restored entries as used lets a later plain build reuse them, so it stops recompiling every package.
In each race shard, the first test that builds the CLI went from a mean of 135 s to 30 s on CI, two runs each side on the same head and shard assignment. Source
Shard go test time fell by about 110 s. Source
- Use it when
- A Go job restores a build cache saved days ago and runs go commands with different flags, for example race tests and then a plain go build, and the later build recompiles most packages despite the cache hit.
- Before applying it
- The touch step took 0 to 1 seconds and runs right after setup-go restores the cache.
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