- All playbooks
- Move Windows build IO onto a Dev Drive
Move Windows build IO onto a Dev Drive
On Windows runners, put build output, caches and temp files on a Dev Drive.
Company examples
How OpenAI used this technique
Read what OpenAI changed and follow the original sources.
Move Windows build IO onto a Dev Drive
Codex routes its Cargo and Bazel build and cache directories through one CI build root. On Windows that root is a Dev Drive, and the Bazel output base moves there too.
The PR reports these timings from two refreshed shards whose tests failed, so it calls them directional. Traced Bazel test step on a cold cache: shard 1 16m22s to 12m05s, shard 3 16m48s to 11m08s, one sample each Source
- Use it when
- Windows build and test steps run much slower than the same steps on Linux and are heavy on file IO.
- Before applying it
- Creating the drive adds setup time to each job, and a single run is noisy; compare several runs on the same runner type.
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 playbookMove a CPU-bound test suite to a faster CPU
- 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