Skip to main content

Change Failure Rate

Share of deployments that fail or need a corrective change — and where the failure signal comes from.

Change Failure Rate measures the share of deployments that fail or need a corrective change. It is the quality counterweight to the speed-focused DORA metrics.


​

What it measures


​

Of every deployment in the period, what share went wrong — either because the deployment itself failed, or because it had to be corrected right after.


​

Where the failure signal comes from


​

Like Deployment Frequency, this metric reads from one of three sources, and the same organization setting controls both:


​

  • Merged pull requests (default) — a merged PR counts as a failure when its title reads like a corrective change. Leanmote matches, case-insensitively and in English and Spanish: fix, bugfix, hotfix, bug, glitch, parche, correccion, incidente, incidencia. Note that patch is not on the list, and that matching is on any part of the title — a PR called "Add prefix handling" contains fix and counts as a corrective change. The denominator is every merged PR in the period.

  • GitHub deployments (opt-in) — a deployment counts as a failure when GitHub reports its state as failure or error. This is the more direct signal of the two: it's the pipeline's own verdict on the release, not an inference from what someone typed in a title. The denominator is every production deployment in the period. For teams measured through a deploy check run, a check that fails, times out, or ends in action required counts as a failure.

  • GitLab deployments (opt-in) — a deployment counts as a failure when a later one had to undo it: it went back to an earlier version (the first deployment it undid counts as failed), it reverted the merge request the deployment shipped, or it shipped a hotfix right after it (a merge request from a hotfix branch, or whose title starts with hotfix or revert, also after a prefix such as fix:). A pipeline that failed before reaching production is not a change failure: nothing changed in production. The denominator is every GitLab deployment to production in the period.

  • Bitbucket deployments (opt-in) — the same rule as GitLab's, on the Bitbucket Pipelines deployments that succeeded in a Production environment: a deployment counts as a failure when a later one went back to an earlier version (redeploying an earlier release from the deployments dashboard does that), reverted the pull request it shipped, or shipped a hotfix right after it. A deployment that failed or was stopped is not a change failure.

  • Datadog deployments (opt-in) — a failure is a production deployment that Datadog marks as failed, a deployment that gets rolled back (when a service goes back to an earlier version in the same environment, the first deployment it undid counts as failed), or an incident Datadog records in a production environment. The denominator is every production deployment in the period.


​

If the number looks higher or lower than you expect, open Show details and read what was counted before drawing conclusions.


​

How Leanmote calculates it


​

change_failure_rate = (failures / total) * 100


​

  • Default source: failures = merged PRs with a corrective-change title, total = all merged PRs.

  • GitHub deployments: failures = production deployments in a failed state, total = all production deployments. If your organization never marks an environment as production, all deployments are counted rather than none.

  • GitLab deployments: failures = production deployments a later one rolled back, reverted or hotfixed, total = all production deployments.

  • Bitbucket deployments: failures = production deployments a later one rolled back, reverted or hotfixed, total = all successful production deployments.

  • Datadog deployments: failures = failed or rolled-back production deployments plus the incidents Datadog records in production, total = all production deployments.

  • Tracked per team and per repository, so you can isolate hotspots instead of blaming the whole organization.

  • Show details lists the items behind the numerator — the corrective PRs, or the failed deployments with repository, environment, and deploy time. With Datadog, each failure with its type (deployment or incident). With GitLab, each failed deployment as its pipeline and commit, with its environment, repository and the merge request it shipped.


​

Switch to GitHub, GitLab or Bitbucket deployments


​

Go to Settings → Organization Settings → Tabs → Metrics and, under Where deployments are counted, choose GitHub deployments, GitLab deployments if you deploy with GitLab, or Bitbucket deployments if you deploy with Bitbucket Pipelines (organization owner only; each option appears when that provider is connected with at least one active repository). Deployment Frequency switches over at the same time. Lead Time for Changes stays merge-based; Time to Restore does too with GitHub, and switches over with GitLab and Bitbucket. Choosing it backfills up to a year of deployment history — see Deployment Frequency for the details of the backfill and its progress notice.


​

How to interpret it


​

  • Below 15% is generally considered healthy in DORA's elite-team benchmarks.

  • Trending up while frequency rises — you may be trading quality for speed. Investigate test coverage and release process.

  • Spikes after a process change are normal but should normalize within 2–3 cycles. If they don't, roll back the change.

  • A step change right after switching sources — expected. "PRs that look like fixes" and "deployments that failed" are different populations, so don't read the switch as a regression.


​

What to do about it


​

  • Strengthen pre-merge testing — unit, integration, and contract tests.

  • Add canary or progressive rollout so failures are caught before full exposure.

  • On the default source, keep PR titles honest: reserve fix/hotfix wording for actual corrective work so the metric stays meaningful.

  • On the deployment source, make sure your pipeline reports deployment status back to GitHub — a failed deploy that never updates its state is invisible to the metric. With GitLab deployments, make sure your deploy jobs name an environment in the production tier; with Bitbucket deployments, that your deployment steps name an environment of type Production.

  • Pair with Time to Restore — a higher failure rate is more tolerable when recovery is fast.


​

Related metrics


​

  • Deployment Frequency

  • Mean Time to Recovery

  • DORA metrics overview

Did this answer your question?