---
title: "The quest for the five minute deploy"
description: "incident.io cut CI/CD times by moving from a hosted provider, where a cold Go build cache made compiling 15,000+ tests across 350+ packages the bottleneck, to Buildkite running on three self-hosted 48-vCPU servers."
url: "https://swe.quest/articles/the-quest-for-the-five-minute-deploy-9b91763fbfd58020"
canonical: "https://incident.io/blog/the-quest-for-the-five-minute-deploy"
source: "incident.io"
published: "2025-07-22"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["ci-cd","go","build-systems","caching","developer-productivity"]
---

# The quest for the five minute deploy

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2025-07-22, 9 min read, Case study. Original: [https://incident.io/blog/the-quest-for-the-five-minute-deploy](https://incident.io/blog/the-quest-for-the-five-minute-deploy)

## Summary

incident.io cut CI/CD times by moving from a hosted provider, where a cold Go build cache made compiling 15,000+ tests across 350+ packages the bottleneck, to Buildkite running on three self-hosted 48-vCPU servers. Prebuilding Ginkgo test binaries and running them in batches on a single server, plus per-server Go build caches, per-yarn.lock Node module caches with pipeline fallback, and local Docker image caches, brought the test step to 2–4 minutes. Production deploys fell from 11.5 to 8.5 minutes, branch builds from 10 to 5.5, and hotfixes to 3.5. Remaining pain points include bin packing containers, under-provisioned disk IOPS, newly exposed flaky tests, cache poisoning, zombie containers, and a fast-growing cache that must be cleared wholesale.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Prerequisites

- CI/CD pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- Go build cache ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- Docker volumes ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

Buildkite, Ginkgo, Docker, Kubernetes, yarn, Google Cloud Storage

## Related posts

- [Deploying to production in \<5m with our hosted container builder](https://swe.quest/articles/deploying-to-production-in-5m-with-our-hosted-container-builder-ca80279668d29e71.md): incident.io · 2021-11-18 · Medium · 9 min read · CI/CD, Containers, Build systems, Developer productivity, Caching
  incident.io cut Docker image build times from an inconsistent 3–10+ minutes back to under 2 minutes by replacing CircleCI's remote Docker and Docker Layer Caching with a permanently running GCP c2-standard-8 builder with a 500GB SSD.
- [Counting to 3 with a new builder processing 50M+ monthly builds](https://swe.quest/articles/counting-to-3-with-a-new-builder-processing-50m-monthly-builds-47ae6a690cb417f7.md): Railway · 2026-05-14 · Medium · 8 min read · CI/CD, Virtualization, Build systems, Scaling, Linux
  Railway replaced its docker-buildx-on-GCP-VMs build system with Builder v3: 256-vCPU bare-metal hosts split into eight 32-vCPU microVM build cells running buildkitd, scheduled with a 1-of-3 ring to keep BuildKit caches warm, now peaking at 66,000 builds per hour.
- [AI coding has made CI a bottleneck, so we reworked ours to keep up](https://swe.quest/articles/ai-coding-has-made-ci-a-bottleneck-so-we-reworked-ours-to-keep-up-1594c74d280c863b.md): Linear · 2026-09-21 · Medium · 8 min read · CI/CD, Developer productivity, Cost optimization, TypeScript, Performance engineering
  Linear cut pull request CI wait time from over 6 minutes to about 5 and halved runner time per test, even as its test suites nearly quadrupled.
- [Optimizing Our E2E Pipeline](https://swe.quest/articles/optimizing-our-e2e-pipeline-880da9c129e2726b.md): Slack Engineering · 2025-04-14 · Medium · 5 min read · CI/CD, Build systems, Testing, Developer productivity, Cost optimization
  Slack cut redundant frontend builds in its monorepo E2E pipeline by using \`git diff\` three-dot notation against \`main\` to detect whether a PR touches frontend code, and when it doesn't, serving a recent production frontend build from S3 through an internal CDN instead of rebuilding.
- [Mobile Developer Experience at Slack](https://swe.quest/articles/mobile-developer-experience-at-slack-f2b2b79d74a881fd.md): Slack Engineering · 2022-10-12 · Medium · 14 min read · Developer productivity, Mobile, CI/CD, Testing, Build systems
  A dedicated mobile Developer Experience team grew from 3 to 8 engineers and cut CI feedback time and failure rates by targeting the pain points that surveys, NPS and metrics like time to merge showed hurt developers most. iOS test time fell from about 50 minutes to an average of 9 by moving from Xcodebuild to Bazel with disk caching and bazel-diff, so only affected targets are tested.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
