The pipeline
After today, you can explain how a change travels from pull request to users, why deploying and releasing are separate steps, and what a rollback can’t undo.
Dip your toes 1 min
The pipeline is the series of automatic checks every code change passes on its way to users. It builds the code, runs tests, and sends the change out in stages, so problems get caught while they’re small. In a 2020 post, Slack’s engineers described about twelve scheduled deploys a day, each reaching a small slice of traffic before everyone. A feature flag, an on-off switch in the code, lets a team put new code live while keeping it hidden. That splits the deploy, when code reaches production, from the release, when people can see it. So a new screen can sit in production for a week, unseen, until someone flips its switch on launch morning.
The full lesson 10 min
Why this exists
Software teams used to ship a few times a year. Months of changes piled up on a release branch. A release night meant a long checklist, a room full of tired engineers, and a lot of hope. Back then, deploying and releasing happened together. This lesson pulls them apart.
When something broke, nobody could tell which of hundreds of changes caused it. So teams shipped even less often, which made each release bigger and riskier still. The fix turned out to be the opposite instinct: ship smaller changes, far more often.
A small change is easy to review, easy to test, and easy to undo. If it breaks something, the cause is easy to find. But shipping dozens of times a day only works if the checking is automatic. Nobody can run a manual checklist forty times a day.
That automation is the pipeline, the sequence of automated steps every change passes through on its way to users. It builds the code, tests it, deploys it, and watches what happens. Each step is a gate that can stop a bad change. The goal is to make shipping so routine that it stops being an event.
The pipeline also changes who can ship. When the checks are automatic, any engineer can put a change in production without a release manager’s sign-off. That only works if the team trusts the gates. Most pipeline arguments, about flaky tests, slow builds, or skipped reviews, are really arguments about that trust.
What it is
The pipeline has two halves, split at the merge. Continuous integration covers the first half. It’s the practice of merging small changes into the main branch often, with an automated build and tests running on every change. When an engineer opens a pull request, a service like GitHub Actions builds the code and runs the tests within minutes. A red result blocks the merge until someone fixes it.
The point is to keep the main branch healthy. Main is shared by the whole team, so one broken merge can block everyone. Integrating continuously means each change is checked against everyone else’s work while it’s small. A test that fails on a twenty-line change is a quick fix. The same failure on a month of changes is an investigation.
Continuous delivery covers the second half. It’s the practice of keeping main ready to deploy at all times, so shipping to production is a routine step that can happen any day. Some teams go one step further, with continuous deployment, where every merge goes to production automatically. Either way, the result is the same. A deploy stops being a project and becomes a button, or no button at all.
In a 2020 post, Slack’s engineers described their version of the second half. They ran about twelve scheduled deploys a day, during North American business hours, when the team was fully staffed. Each deploy went to staging first, where an automated smoke test, a quick check that the basics still work, ran before extra manual testing. Then it reached servers used by some of Slack’s own internal workspaces.
Next it went to a canary, a small slice of about 2 percent of production traffic. If the charts stayed stable and no alerts fired, it widened to 10, 25, 50, 75, and finally 100 percent. Each step was a gate of its own. A problem caught at the canary touched a small slice of traffic instead of every user, and the rollout stopped there.
Day 4 promised a switch that lets small pieces of a redesign merge and stay hidden until launch. That switch is the feature flag. It’s a setting the code checks while it runs, and it turns a feature on or off for some or all users.
The new code ships to production with the flag off. Nobody sees it. Later, someone flips the flag, and the feature appears without any new deploy.
That splits shipping into two moments. The deploy puts code in production. The release is the moment a feature becomes available to users. With flags, a team can deploy on Monday, turn the feature on for employees on Tuesday, and release to everyone on Friday. Tools like LaunchDarkly, PostHog, and Vercel Flags manage flags for teams, and many companies build their own.
Flags come in a few kinds. Release flags hide unfinished work until launch. Experiment flags split users into groups for an A/B test, a comparison of two versions.
Kill switches let an operator turn off a misbehaving feature in seconds. Permission flags give some customers a feature that others don’t have. Pete Hodgson’s article on feature toggles is the standard reference if you want the long version.
The last safety net is the rollback, returning production to the previous working version of the code after a bad deploy. It’s fast because the previous build still exists, already tested and ready. Slack’s team described rolling back first and investigating second.
A broken product gets fixed in minutes that way, and the search for the cause happens without users waiting on it. Once the cause is found, the fix goes through the whole pipeline again like any other change. Skipping the gates in a hurry is how one incident turns into two.
How it shows up in your work
Launch planning gets a second date. “When does it ship?” now has two answers, and they can be days apart. The deploy date is an engineering milestone. The release date is usually owned by product management, with design and engineering input. Ask which one a date on the roadmap means, and who flips the flag.
Flags also change when you can review. A feature behind a flag can be turned on for your own account in production, with real data and real performance. That’s a better check on real data than staging, though it comes after the draft review. Many teams target flags at employees first, the way Slack described sending deploys to its own workspaces before anyone else’s.
Partial rollouts confuse anyone who doesn’t know about them. While a flag is at 10 percent, two versions of your product exist at once. Support teams get screenshots that don’t match what they see. Analytics compares the groups, which is how an A/B test works.
Design quality assurance (QA) has to cover both states, and so do help articles. When someone reports that it looks different for them, a flag is a good first guess. Flags also make experiments cheap, which means more of them. A designer who knows which flags are live can read the analytics with the right context.
Cleanup is the part teams forget. After a feature reaches everyone, the old path still sits in the code behind the flag. Hodgson calls flags inventory with a carrying cost, because every one doubles the states someone has to test. Good teams remove a flag soon after launch, and some add the removal task when they create the flag. If an old design keeps resurfacing in odd corners, ask whether a forgotten flag is still serving it.
The one thing people get wrong
“We can always roll back,” someone says, as if a rollback were an undo button for a bad deploy. It undoes the code. Production goes back to the previous version, and new requests behave the old way again. Everything the bad version did while it ran stays done.
Take a deploy that ran a database migration, changing how orders are stored. Rolling back the code doesn’t reverse the migration. The old code may now meet data in a shape it doesn’t understand, and break in a new way.
The same goes for anything that left the building. Emails, push notifications, and webhooks to partners can’t be unsent. Phone apps are another limit, because a version already installed on someone’s phone stays there until they update.
Sometimes the better move is to roll forward instead: ship a small fix through the pipeline rather than going back. That’s often the choice when the old code can no longer read the new data. Either way, the decision takes judgment, and it’s made under pressure.
That’s why careful teams split risky changes. They change the database in a separate, backward-compatible step first, so either version of the code can work with it. They put new behavior behind a flag, because turning a flag off is faster than any deploy and only touches the new path. Even a flag can’t unsend an email, though. For anything that reaches people directly, the safest plan is to release it to a small group first and watch.
For a designer, this matters most for features with side effects: anything that sends, charges, notifies, or deletes. Ask what the plan is if the launch goes wrong. A good answer covers both the code and the side effects. If the only plan is “we’ll roll back,” ask what a rollback leaves behind.
Ask an engineer this
“Which features are behind flags right now, and who decides when each one turns on for everyone?”
The right moment for this question is a week or two before a launch you’re involved in. A well-run team can name each flag, its owner, and its plan for turning up: employees first, then a percentage, then everyone. Notice whether product and design have a say in the release, or whether it happens whenever the code is ready. Find out, too, when the flag will be removed. By the end, you know who controls the moment your work reaches users, and how to get your review in before it does.
Terms from today
- Continuous integration
- The practice of merging small changes into the main branch often, with an automated build and tests running on every change to catch problems early.
- Continuous delivery
- The practice of keeping the main branch ready to deploy at all times, so shipping to production is a routine step that can happen any day.
- Feature flag
- A setting the code checks while it runs that turns a feature on or off for some or all users, without a new deploy.
- Rollback
- Returning production to the previous working version of the code after a bad deploy.
- Release
- The moment a feature becomes available to users, which can happen separately from the deploy that put its code in production.