How to measure Change failure rate?
Tags: performance, datascience, management
Published: 2022-04-14 15:02:46

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Change failure rate is one of the most interesting metrics you should use to evaluate your team’s quality and overall efficiency of your Engineering performance.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">There are four key <a href="https://blog.codacy.com/a-tale-of-four-metrics/" target="_blank" rel="noreferrer noopener">Accelerate metrics</a> that we will cover in detail:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><a href="https://blog.codacy.com/how-to-measure-lead-time-for-changes/" target="_blank" rel="noreferrer noopener">Lead time for changes</a>;</li><li><a href="https://blog.codacy.com/how-to-measure-deployment-frequency/" target="_blank" rel="noreferrer noopener">Deployment frequency</a>;</li><li><a href="https://blog.codacy.com/how-to-measure-time-to-recover/" target="_blank" rel="noreferrer noopener">Time to recover</a>; and</li><li><strong>Change failure rate</strong>.</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">In this article, we are focusing on <strong>Change failure rate</strong>. So keep on reading to know what Change failure rate is, how we measure it in <a href="https://www.pulse.codacy.com/?utm_source=blog&amp;utm_medium=post&amp;utm_campaign=change-failure-rate" target="_blank" rel="noreferrer noopener">Pulse</a>, and how your team can start using it to achieve elite engineering performance.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":1} -->
<h1 id="h-what-is-change-failure-rate"><strong>What is Change failure rate?</strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">In a nutshell, Change failure time measures the percentage of deployments causing a failure in production requiring remediation (e.g., hotfix, rollback, patch).</p>
<!-- /wp:paragraph -->

<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>“<em><em>A key metric when making changes to systems is what percentage of changes to production (including, for example, software releases and infrastructure configuration changes) fail. In the context of Lean, this is the same as percent complete and accurate for the product delivery process, and is a key quality metric</em></em>.”</p><cite>Accelerate: The science of lean software and DevOps: Building and scaling high performing technology organizations</cite></blockquote>
<!-- /wp:quote -->

<!-- wp:heading -->
<h2><strong>What does <strong>Change failure rate</strong> measure?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Change failure rate is a good indicator of the teams’ capabilities and overall development process efficiency. It is one of the most interesting quality metrics for an organization to work on to ensure their software's stability and correct functioning.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">This metric is inspired by the Lean principles and analyzes how your team guarantees the security of code changes and how deployments are being managed.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>How to read <strong>Change failure rate</strong>?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">On the one hand, a Change failure rate that is too high indicates there may be broader issues, like manual or inefficient deployment processes and lack of testing before deployment. On the other hand, a low Change failure rate shows that your team was able to shift left enough verifications to identify infrastructure errors and application bugs before deployment.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Your team’s goal should be to continuously reduce your Change failure rate because it means that your code is being extensively tested to avoid a disruption in your software. As a result, you are not compromising your software's availability and correct functioning.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":1} -->
<h1><strong><strong><strong><strong>Change failure rate</strong></strong></strong> in Pulse</strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Products like Pulse make it easy for your team to know what your Change failure rate looks like. Pulse connects seamlessly with your GitHub, Jira, and PagerDuty to give you Change failure rate and other Engineering metrics out-of-the-box. Your team only needs to focus on making informed decisions to improve your results.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>How is Pulse measuring <strong>Change failure rate</strong>?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Pulse measures Change failure rate by calculating the percentage of deployments causing a failure in production (e.g., service impairment or unplanned outage). It’s computed with the following formula:</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><code>number of deployments that caused incidents / total number of deployments</code></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Pulse calculates the metrics per repository or service, and, when displaying them, they are aggregated, using an average, by time interval.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"center","id":5475,"sizeSlug":"large","linkDestination":"none","tdCaptionAlign":"https://blog.codacy.com/wp-content/uploads/2022/04/Change-failure-rate-in-Pulse.png"} -->
<figure class="wp-block-image aligncenter size-large td-caption-align-https://blog.codacy.com/wp-content/uploads/2022/04/Change-failure-rate-in-Pulse.png"><img src="https://blog.codacy.com/wp-content/uploads/2022/04/Change-failure-rate-in-Pulse-1024x580.png" alt="Change failure rate in Pulse" class="wp-image-5475"/><figcaption>Change failure rate in Pulse</figcaption></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Pulse takes care of all the details to ensure your metrics are accurate and reliable. Pulse can automatically detect your deployments by picking signals from GitHub and then associate incidents with the failed deployments, simplifying the integration and enabling you to explore the metrics by repository, service, and each of your GitHub teams.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>What Change failure rate should a team have?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">The best practice performance level for this metric, published every year on the <a href="https://services.google.com/fh/files/misc/state-of-devops-2021.pdf" target="_blank" rel="noreferrer noopener">Accelerate State of DevOps 2021 report</a>:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>Elite:</strong> 0-15%</li><li><strong>High:</strong> 15-30%</li><li><strong>Medium: </strong>N/A*</li><li><strong>Low:</strong> 30-100%</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify"><em>* The Accelerate State of DevOps 2021 report defines the same range of values for both Medium and Low performance levels, so we’ve opted to skip the Medium level in Pulse.</em></p>
<!-- /wp:paragraph -->

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"style":{"color":{}},"className":"pulse-brand__button"} -->
<div class="wp-block-button pulse-brand__button"><a class="wp-block-button__link" href="https://www.pulse.codacy.com/?utm_source=blog&amp;utm_medium=website&amp;utm_campaign=change-failure-rate" target="_blank" rel="noreferrer noopener">See what's your Change failure rate</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->

<!-- wp:heading {"level":1} -->
<h1><strong>How to use <strong><strong><strong>Change failure rate</strong></strong></strong> </strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Over time, Change failure rate should be getting smaller while your team is increasing in the performance level until reaching best practice levels.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Having a small Change failure rate allows your team to have a sound overall deployment process, and deliver high-quality software quickly.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>Causes of <strong>hig<strong>h Change failure rate</strong></strong></strong></h2>
<!-- /wp:heading -->

<!-- wp:list -->
<ul><li>Relying on manual deployment processes, prone to human error;</li><li>Perform infrastructure changes that are not reproducible;</li><li>Tests being carried out manually;</li><li>Poor code quality that difficult maintainability and introduction of new code, leading to more complex testing and unexpected application errors.</li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2><strong>How to reduce Change failure rate</strong></h2>
<!-- /wp:heading -->

<!-- wp:list -->
<ul><li>Work on small and self-contained changes: working with smaller versions of changes makes it easier to test them and less likely to break;</li><li>Leverage infrastructure and application configuration as code: guarantee that mission-critical configurations and services' infrastructure are visible and reproducible;</li><li>Use test automation: incorporating automated tests at every stage of the CI/CD pipeline can help you reduce delivery times since it helps catch issues earlier;</li><li>Automate code reviews: using <a href="https://www.codacy.com/?utm_source=blog&amp;utm_medium=post&amp;utm_campaign=change-failture-rate" target="_blank" rel="noreferrer noopener">automated code review tools like Codacy</a> can help you improve your code quality and save your team valuable time.</li></ul>
<!-- /wp:list -->

<!-- wp:heading {"level":1} -->
<h1><strong>Conclusion</strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Change failure rate is a fundamental metric to analyze and improve the efficiency of your Engineering team. It is a valuable metric to understand the capabilities of your team and how they learn from previous problems to improve later workflows.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Together with Lead time for changes, Deployment frequency, and Time to recover, this metric provides valuable insights for your team to achieve full engineering performance.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">With Pulse, you can easily measure and analyze the Change failure rate in your projects and make better decisions.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">We also suggest you (re)watch our webinar on <a href="https://blog.codacy.com/how-to-boost-your-engineering-speed-quality-with-the-right-metrics/" target="_blank" rel="noreferrer noopener">How to boost your Engineering Speed &amp; Quality with the right Metrics</a>. We talked about how your team can deploy faster and more efficiently without compromising code quality, and how you can make the most out of the engineering data already available to you. Don’t miss out!</p>
<!-- /wp:paragraph -->