40 Releases in One Year: Release Engineering on a Small Team

In early December, while digging through our git history for the annual review, I saw the number and counted it a second time: over the past twelve months we had shipped 40 releases to production. With a four-person development team, that's an average of 0.8 releases a week. Two years ago, our team, the same size, shipped 6 releases a year, and each one meant a two-day testing marathon beforehand, pizza boxes during the night, and a "what are we rolling back" meeting the next morning. As the number went from 6 to 40, the number of late nights dropped from 6 to 1. This post is a rundown of what changed over those two years.

The Real Source of Fear Isn't the Release, It's the Size

The first thing we noticed was psychological: we weren't actually afraid of releasing, we were afraid of big releases. When you ship 6 releases a year, every release carries two months of accumulated changes: 40-50 commits, three major features, two schema changes, and not a single corner left untouched. Because the answer to "what could break in a package like this?" is "everything," it's a nightmare to test, a nightmare to find the culprit when it breaks, and a nightmare to roll back. As our releases became more frequent, each package got smaller; today our typical release carries 3-6 commits. If something breaks, the suspect list has three items on it. Frequency didn't increase risk; it divided it. That's the first principle I learned in release engineering: if you're afraid, don't release less often. Release smaller.

Infrequent releases carry big packages of 40-50 commits; frequent releases carry 3-6 commits, dividing the risk and cutting down on late nights.
Frequency didn't increase risk; it divided it.

The Economics of a 14-Minute Pipeline

The mechanical backbone that made this possible is a CI/CD pipeline we guard closely. Two years ago, a build took 34 minutes, and because some of the tests were "occasionally red," nobody trusted the result. Today it takes 14 minutes to get from a commit to a production-ready image: compilation, unit tests, integration tests covering the critical paths, and the image build. The real investment here wasn't speed, it was trust. We hunted down flaky tests one by one and either fixed them or deleted them without mercy, because a test suite that's 95 percent reliable is, in practice, 0 percent reliable. The day people start waving off a red build with "it's probably acting up again," the suite is dead. For the rule "if the pipeline is green, it can go to production" to mean anything, green had to really mean green.

Our branching strategy was also part of this transformation. We moved from long-lived feature branches to a flow of small, frequent merges into the main branch. Code review is still mandatory, but because the unit of review got smaller, the average time a PR waits dropped to half a day. Nobody truly reviews a two-thousand-line PR; everybody reviews a two-hundred-line one. The quality impact of small batch sizes turned out to be even bigger than the speed impact. The deploy itself is a single command: every merged change goes through the pipeline and lands on staging automatically, while going to production takes a deliberate approval from one person. Who presses that approval button is also set by a rule: the person who wrote the change presses it, because if something goes wrong, they carry the freshest context.

Schema Changes: The Ball and Chain of Releases

The way we got the team to buy into this principle wasn't debate, it was measurement: we lined up six months of release records and put the number of commits each release carried next to the number of problems it caused. The curve convinced everyone without trying to convince anyone; big packages caused disproportionately more problems.

The most stubborn obstacle to releasing more often was database migrations. Code can be rolled back in two minutes, but an ALTER TABLE that has already run cannot. Our answer was the expand-contract discipline. Every schema change is spread over at least two releases: first the expansion, where a new column is added and the code ships writing to both the old one and the new one; then, once the new structure has run without issues for a few releases, a contraction release removes the old column. This way, every release stays compatible, schema-wise, with the previous version of the code as well, and rollback always stays on the table as a safe operation. It looks slow, but on a team shipping 40 releases a year, never once having to say "we can't roll back, we'll fix forward" more than pays for that slowness.

A schema change first expands with a new column, the code writes to both, and once the new structure is verified the old column is removed.
Every release stays compatible with the previous version of the code as well.

Our feature flag infrastructure works hand in hand with this pace. I wrote about it in detail in August, so here I'll only touch on it from the release perspective. Thanks to flags, the "code is ready but the feature isn't finished" situation doesn't block a release: a half-built feature ships to production behind a disabled flag, and integration conflicts get resolved while they're still small. That's how long-lived feature branches became a thing of the past; our oldest open branch is usually only a few days old. The hidden enemy of release frequency is a buildup of merge conflicts, and flags dry up that buildup at its source.

The Human Factor: Turning a Checklist into Reflexes

On the process side, two habits took root. Release time is 10:00 in the morning, because if something goes wrong, we have seven hours ahead of us with a full, wide-awake team. An 18:00 release gets told like a hero story, but you end up fixing the problem at midnight, alone. The second habit is an automatically generated one-page manifest for every release: which commits, which migrations and which feature flags are affected, and what the rollback step is. Back when we wrote it by hand, it got neglected; now the pipeline produces it, and the person doing the release just reads and approves it. We also run the rollback procedure as a drill twice a year, when there's no real need for it. A neatly folded parachute isn't enough; every now and then you need to see it open.

A morning release, an automatic manifest, rollback drills and approval by the author of the change keep release day uneventful.
Every now and then you need to see the parachute open.

The Number Itself Isn't the Goal

Customer-facing communication also became unexpectedly important. At 6 releases a year, every release came with an announcement email; at 40 releases a year, nobody reads 40 emails. So we split things up: user-visible changes are covered in a monthly roundup newsletter, while the technical release manifests accumulate on a changelog page that any customer who wants them can access. We also simplified version numbering. Semantic versioning lives on for APIs, but application versions are now date-based, because answering "which version fixed this bug?" with a calendar is easier for everyone.

Let me close with a confession and the next goal. The confession: 3 of the 40 releases needed a small fix release on the day they shipped, and all three had the same cause, a setting on the staging environment that had drifted from production. That's why building staging from the same images, with the same configuration mechanism, as production is the first item on next quarter's list. As for the goal, it isn't to push the number higher; 40 is enough. The goal is for release day to stop being a special day on the calendar altogether. The best release is the one nobody notices. We're getting close, but we're not there yet.

Don't get me wrong: we didn't chase the number 40; it was an outcome. What we were chasing was shrinking the wait between the moment "this change is ready" and the moment "the user is using it." Two years ago that averaged five weeks; today it's three days. Our change failure rate, meaning the share of releases that require a fix or a rollback, dropped from 18 percent to 5 percent over the same period. In other words, shipping more often didn't mean breaking more. Quite the opposite: thanks to small steps and a backbone that works, we got both faster and sturdier. The good news for small teams is that none of this required a platform team or expensive tools; discipline, automation and the courage to make things smaller were enough. If you want to pick up the release pace on your own team but don't know where to start, reach out through our contact page. The first step is almost always the same: split your next release in half.