Core monolith CI: p95 from 45 minutes to 18
p95 build time for the Shopify Core monolith cut from 45 minutes to 18 minutes, on Buildkite.
- ●More than 170,000 tests in Shopify Core, growing 20-30% a year; more than 41 hours to run them all on one machine
- ●Docker start-up p95 cut from 90 seconds to 25 seconds
- ●Builds using test selection (only tests related to the change) rose from 45% to over 60%
- ●Test stability rose from 88% to 97%
WHAT YOU CAN COPY
Measure before you optimise. Shopify broke each build into agent start-up, dependency build and test time, fixed the start-up path first, then widened test selection so most pull requests run only the tests their change touches.
HONEST COUNTERPOINT
The post reports wall-clock time, not money. It does not publish a CI bill or a saving in dollars, so any cost figure attached to this project elsewhere is not from Shopify.