- All playbooks
- Release obsolete PR cache space after merge
Release obsolete PR cache space after merge
Delete a merged PR's caches so the space goes back to live branches.
Company examples
How OpenAI used this technique
Read what OpenAI changed and follow the original sources.
Release obsolete PR cache space after merge
Codex Security added a workflow that runs when a PR merges into main and deletes only that PR's merge-ref caches, returning their space to live branches. It runs base-owned code with no checkout and a job-level Actions write permission.
Inventory: 33 entries, 5.11 GB across five merged PRs Source
- Use it when
- A cache inventory shows merged PR caches taking space during bursts.
- Before applying it
- The cleanup is one more job, and a manual rerun of the merged PR starts cold.
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