Video in progress

Management says "there are too many incidents after deploys, we will limit deploys to once a week". How do you respond?

Fewer deploys usually do not reduce risk, they make each release bigger and riskier. I would show the current state with DORA metrics and propose reducing risk through small changes, automated tests, canaries and fast rollback.

📖 Answer

The intuition is understandable: "every deploy is a risk, so fewer deploys means less risk". But in a weekly release, five days of changes ship in one package. If something breaks, you hunt for the culprit among 40 commits, and a rollback reverts the good changes too. And under pressure, hasty merges of the "we have to make it this week" kind multiply.

I take the conversation to numbers, the four DORA metrics:

  • deploy frequency;
  • lead time (from commit to prod);
  • change failure rate: what percentage of deploys lead to an incident;
  • MTTR, the recovery time.

We go through last quarter's incidents: which ones were deploy-related and what could have caught them. The answers are often clear: the migration was not compatible, a configuration change went out untested, there was no canary, the rollback took 40 minutes.

The plan I propose:

  1. For every incident, ask "which gate would have caught it" and add that gate to the pipeline.
  2. Canaries and automatic rollback on the services that deploy most often.
  3. Get rollback time under 5 minutes, and practice it.
  4. Extra review for high-risk changes (payments, migrations), not for everything.

There is a compromise for management too: during periods such as a big promotion or year end, deploys are frozen. That is a fair request.

And I set a measurable goal: "change failure rate from 18% to 8% in 3 months". That is a better promise than "we will deploy less".