How do you prove quality improved? What are DORA metrics?
Improvement is proved with a baseline counted by the same rules, a named change, a trend over several releases and a counter-metric. DORA metrics measure delivery performance: change lead time, deployment frequency, failed deployment recovery time, change fail rate and deployment rework rate. Real improvement is a lower failure rate and leakage without losing speed, and DORA is combined with defect metrics.
QA Fundamentals · Quality metrics
A manager asks: "Have we really become better?" Which number do you show and why is one not enough?
After a quarter of changes (new contract tests, a regression test for every production fix) the team expects quality to have improved. To the question "is it so?" you want to show a single number: leakage fell. But that number can be explained differently: fewer changes shipped this quarter, the counting rules changed, or the release was just lucky. This lesson is about proving an improvement so that the conclusion survives questions, and about the DORA metrics that help with it.
How it works and why. Proof of improvement has four parts. First a baseline: the numbers before the changes, calculated by the same rules. Then a change: what exactly you did (otherwise it is a correlation without a cause). Then a trend over several releases (one release is nothing: noise, seasonality, volume). And finally a counter-metric: a check that the improvement was not bought at a high price, for example by slowing releases down or by downtime.
Four steps of proof
DORA metrics are a set of software delivery performance indicators from the DORA research programme (DevOps Research and Assessment). Their idea is that speed and stability do not contradict each other: good teams have both. The current set consists of five metrics in two groups: in throughput they are lead time for changes (from commit to production), deployment frequency (how often we release) and failed deployment recovery time (earlier time to restore: how long we take to recover from a failed deployment); in instability they are change failure rate (the share of releases that caused an incident or a rollback; closest to QA) and deployment rework rate (the share of unplanned deployments made to fix a problem in production). The classic set of four did not have the last metric.
Two groups of DORA metrics
Throughput
Lead time for changes, deployment frequency, failed deployment recovery time. The question: how fast changes reach users and how fast we recover.
Instability
Change failure rate, deployment rework rate. The question: how often a release brings a problem and needs an unplanned fix.
Example: two quarters and what can be claimed from them.
Q1 Q2
leakage (Major+, 30-day window) 14% 8%
change failure rate 18% 9%
deployment frequency 2 / week 3 / week
lead time for changes (median) 6 days 4 days
failed deployment recovery time 5 hours 2 hours
What changed in Q2: contract tests for the payments API
and a regression test for every fixed production defect.
Releases in each quarter: 6.
What can be said here. Leakage and change failure rate fell roughly by half, while deployment frequency and lead time improved: so stability grew not at the cost of speed. There is a named process change (contract tests and regression tests for fixes), and it logically links to what improved: escaped contract defects and repeated regressions. What cannot be claimed categorically: with six releases per quarter the difference may partly be noise, so it is worth waiting for one more quarter and checking that the volume and the mix of changes were comparable. So the wording for an interview: "the improvement looks real and is explained by a change, the next two quarters will confirm the trend".
Limits and alternatives. DORA measures delivery performance, not product quality directly, so it is combined with defect metrics (leakage, escaped defects by severity) and user-facing indicators (bug complaints, the share of crash-free sessions). Change failure rate depends on the definition of a "failed" release (rollback, hotfix, incident): if it is changed, the trend breaks, so the definition is fixed. All these metrics belong to a team, not a person: using DORA as a ranking of teams or as a KPI causes the same gaming of numbers (see the lesson about harmful metrics). For small teams with rare releases, instead of percentages it is better to look at individual incidents and analyse each one. If an improvement is not visible in the numbers, that is also a result: either the change does not work or the metric does not measure it.
Common mistakes.
- Showing one number of one release as proof: it could be chance.
- Changing the way of counting and comparing with the previous quarter: a distorted trend.
- Ignoring the counter-metric: stability at the price of a two-month release freeze is not quality.
- Not naming the cause: "it got better because it got better" convinces nobody, while a link to a concrete change gives a chance to repeat the success.
- Making DORA a ranking of teams: numbers start to be bent to meet the bar.
Check yourself
Leakage fell from 14% to 8%, but deployment frequency fell from three a week to one. Is this an improvement?
Answer
Not necessarily. Stability was probably bought at the price of speed: rarer and larger releases have fewer chances of an error simply because there are fewer of them. I look at change failure rate and lead time, and at whether a queue of changes has built up. I count as a real improvement a fall in leakage with unchanged or higher release frequency.
You have data for one release after the changes and a good number. What do you tell the manager and what do you do next?
Answer
I say the result is encouraging but one release is not yet a trend. I fix the baseline by the same rules, name the change I believe is the cause and compare several next releases. I also check the counter-metric (frequency and lead time) to make sure the improvement did not appear because speed dropped.