- All playbooks
- Load a schema snapshot without abandoning migration tests
Load a schema snapshot without abandoning migration tests
Linear’s API containers load a generated schema snapshot and bootstrap file when a pull request leaves the schema unchanged.
Company examples
How Linear used this technique
Read what Linear changed and follow the original sources.
Load a schema snapshot without abandoning migration tests
Linear’s API containers load a generated schema snapshot and bootstrap file when a pull request leaves the schema unchanged, which cut database setup from roughly 12 seconds to 1-2 seconds per container.
- Use it when
- Database initialization repeats the same migration history and consumes a material setup share.
- Before applying it
- Keep a required end-to-end migration replay, regenerate snapshots at the migration head and detect stale schema or seed state.
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