How we cut our build times in half
Maya Chen · 4 min read
Our builds used to take eleven minutes. Every pull request waited in line, and people stopped running the full suite before merging.
We started by measuring. Half the time went to installing packages that had not changed since the last run.
Caching the package store cut four minutes on its own. Splitting the tests across four machines cut two more.
The last win was the smallest change: we stopped rebuilding images that only the release job needs.
Builds now finish in under five minutes, and the full suite runs on every pull request again.
Next, we want to run only the tests that a change can affect.