How to boost your Engineering Speed & Quality with the right Metrics
Tags: codequality, performance, datascience
Published: 2022-03-31 16:08:31

<!-- wp:paragraph -->
<p>On March 24th we did a Webinar called <strong>How to boost your Engineering Speed &amp; Quality with the right Metrics. </strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In case you miss it live, don’t worry: you can (re)watch the recording of the webinar <a href="https://www.youtube.com/watch?v=EoRzatLI9UI" target="_blank" rel="noreferrer noopener">here</a> or below👇</p>
<!-- /wp:paragraph -->

<!-- wp:embed {"url":"https://www.youtube.com/watch?v=EoRzatLI9UI","type":"video","providerNameSlug":"youtube","responsive":true,"className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://www.youtube.com/watch?v=EoRzatLI9UI
</div></figure>
<!-- /wp:embed -->

<!-- wp:heading {"level":1} -->
<h1 id="h-how-much-value-are-you-really-creating-in-your-software-development-team"><strong>How much value are you really creating in your software development team?</strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">In our webinar, we’ve shared how our vision at Codacy has been influenced by the DORA research program and the subsequent state of DevOps reports. The research identified 4 key metrics, common traits in high-performing software teams.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Before diving into the metrics, we need to understand the problem tech teams typically face: their work was viewed as a cost center. Therefore, it was expected they would need to justify their costs and return on investment upfront.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">But it’s more apparent now that an elite performing tech team is a value driver and innovation engine. Companies that fail to leverage this competitive advantage risk being surpassed by others. When we view tech as a cost center, we measure our performance as such, and we begin to measure things like:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>How many lines of code do my engineers or engineering teams write per day?</li><li>How many commits or PRs do I make per day?</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">However, these are vanity metrics, and they have a poor correlation with the actual success of your business. Keep on reading to know which metrics you could use instead.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>The 4 Key Metrics</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">The 4 key metrics were proven to indicate engineering teams who deliver value to their users quickly and consistently. They can be split into two categories: Speed and Quality.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"wide","id":5379,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image alignwide size-full"><img src="https://blog.codacy.com/wp-content/uploads/2022/03/4-Key-Metrics.png" alt="4 Key Metrics" class="wp-image-5379"/></figure>
<!-- /wp:image -->

<!-- wp:list -->
<ul><li><strong>Deployment frequency <em>(speed)</em>:</strong> How often your organization completes a deployment to production or releases code to end-users.</li><li><strong>Lead time for changes <em>(speed)</em>:</strong> How long it takes a commit to get into production.</li><li><strong>Time to recover <em>(quality)</em>:</strong> How long it takes your organization to recover from a failure in production.</li><li><strong>Change failure rate <em>(quality)</em>:</strong> Percentage of deployments causing a failure in production.</li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2><strong>How do these metrics help you?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">There is a strong correlation between high performers and the percentage of time spent on rework or unplanned work such as break/fix work or emergency software deployment and patches.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">While there is always some unexpected work to be done, catching errors early and having fast feedback loops help to minimize this for high-performance teams.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"wide","id":5385,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image alignwide size-full"><img src="https://blog.codacy.com/wp-content/uploads/2022/03/Unnecessary-rework-avoided.png" alt="Unnecessary rework avoided" class="wp-image-5385"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">These high performers reported spending approximately 50% of their time on new work, such as design, new features, and new patch deployments, vs. 38% for low performers. So the benefits are clear: by avoiding unnecessary rework, your team can use their time to ship more value to your customers.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":1} -->
<h1><strong>How to track your metrics</strong></h1>
<!-- /wp:heading -->

<!-- wp:heading -->
<h2><strong>Four Keys project, by Google</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">One solution we would recommend is the <a href="https://github.com/googlecloudplatform/fourkeys" target="_blank" rel="noreferrer noopener">Four Keys project by Google</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"wide","id":5387,"sizeSlug":"full","linkDestination":"custom"} -->
<figure class="wp-block-image alignwide size-full"><a href="https://github.com/googlecloudplatform/fourkeys" target="_blank"><img src="https://blog.codacy.com/wp-content/uploads/2022/03/Four-Key-by-Google.png" alt="Four Key by Google" class="wp-image-5387"/></a></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">It is an open-source project with no cost to purchase. It’s a great way to get your foot into the door and measure the Accelerate key metrics. If approvals are an issue at your company, you should be able to integrate this yourself without requiring authorization to install GitHub or Jira apps.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">However, it will be up to you to instrument your workflow and decide where to capture each event. This quickly becomes a problem if you have hundreds or thousands of repos.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">You’re also not going to get historical data. If you need a 3-month snapshot, you need to wait 3 months. Plus, you’ll be limited to just the 4 key metrics, without any way to filter by team or time. Finally, you need to factor in the infrastructure and maintenance costs.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>Pulse, by Codacy</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>And this is where we come to <a href="https://www.pulse.codacy.com/?utm_source=blog&amp;utm_medium=website&amp;utm_campaign=webinar-Pulse" target="_blank" rel="noreferrer noopener">Pulse</a>, Codacy’s DevOps intelligence product.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"wide","id":5389,"sizeSlug":"full","linkDestination":"custom"} -->
<figure class="wp-block-image alignwide size-full"><a href="https://www.pulse.codacy.com/?utm_source=blog&amp;utm_medium=website&amp;utm_campaign=webinar-Pulse" target="_blank"><img src="https://blog.codacy.com/wp-content/uploads/2022/03/Pulse-by-Codacy.png" alt="Pulse by Codacy" class="wp-image-5389"/></a></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">We’ve been working with multiple customers to understand how best we could help them. It’s very common that we speak with people who are either trying to start measuring this for the first time; or are attempting to build an in-house solution but unable to find success with it.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"wide","id":5391,"sizeSlug":"large","linkDestination":"custom","tdCaptionAlign":"https://blog.codacy.com/wp-content/uploads/2022/03/How-Loft-uses-Pulse-to-measure-Engineering-health.png"} -->
<figure class="wp-block-image alignwide size-large td-caption-align-https://blog.codacy.com/wp-content/uploads/2022/03/How-Loft-uses-Pulse-to-measure-Engineering-health.png"><a href="https://blog.codacy.com/loft-pulse-engineering-health/" target="_blank"><img src="https://blog.codacy.com/wp-content/uploads/2022/03/How-Loft-uses-Pulse-to-measure-Engineering-health-1024x307.png" alt="How Loft uses Pulse to measure Engineering health" class="wp-image-5391"/></a></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">What you get with Pulse:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Peace of mind when collecting engineering metrics: we do the work for you, ensuring reliable metrics and continuous tracking.</li><li>No need to choose what to measure: no need to get caught in output or vanity metrics that are hurtful for your team in the long run; we research for you.</li><li>Historical data: immediately see your performance over the last 90 days - and up to 1 year;</li><li>Easily filter repositories, teams, and time periods.</li><li>More metrics beyond the Accelerate to explain how they are evolving;</li><li>Our team and <a href="https://community.codacy.com/" target="_blank" rel="noreferrer noopener">community</a> can help you on the journey of continuous improvement.</li></ul>
<!-- /wp:list -->

<div class="wp-block-buttons"><!-- wp:button {"align":"center","className":"is-style-round"} -->
<div class="wp-block-button aligncenter is-style-round"><a class="wp-block-button__link" href="https://www.youtube.com/watch?v=EoRzatLI9UI&amp;t=27m13s" target="_blank" rel="noreferrer noopener">See Pulse in action</a></div>
</div>

<!-- wp:heading {"level":1} -->
<h1><strong>Answering your questions</strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">After the presentation and the introduction to Pulse, we opened the floor to all the questions the audience might have. You can check the detailed answers on <a href="https://www.youtube.com/watch?v=EoRzatLI9UI" target="_blank" rel="noreferrer noopener">our video recording of the webinar</a> — we even give you the specific time frames! But we’ve summarized the answers for you to read 🤓</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>The list of teams comes from Jira or GitHub or both? <a href="https://www.youtube.com/watch?v=EoRzatLI9UI&amp;t=39m16s" target="_blank" rel="noreferrer noopener">(00:39:16)</a></strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">The list of teams you see on the Accelerate dashboard comes from GitHub. We don’t have a team filter on the Lead &amp; Cycle time dashboard yet, but we’re working on it! For now, you can filter by project or by Jira boards.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>Do you have SSO and integration with the existing Codacy platform, so I do not need to reconfigure these? <a href="https://www.youtube.com/watch?v=EoRzatLI9UI&amp;t=39m57s" target="_blank" rel="noreferrer noopener">(00:39:57)</a></strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Since we wanted to bring Pulse to market as soon as possible, we started it with a user base from scratch, so we currently don’t have integration between Codacy and Pulse. As such, user management and accounts are different from Codacy, but we’re working on this unification so that you only have one account, one integration. </p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>What integrations are available at this time? Which integrations are planned? <a href="https://www.youtube.com/watch?v=EoRzatLI9UI&amp;t=40m42s" target="_blank" rel="noreferrer noopener">(00:40:42)</a>; and Do you support BitBucket <a href="https://www.youtube.com/watch?v=EoRzatLI9UI&amp;t=43m37s" target="_blank" rel="noreferrer noopener">(00:43:37)</a>?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Currently, Pulse has integrations with:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>GitHub:</strong> data about changes and deployments, to calculate the metrics <a href="https://blog.codacy.com/how-to-measure-lead-time-for-changes/" target="_blank" rel="noreferrer noopener">Lead time for changes</a> and <a href="https://blog.codacy.com/how-to-measure-deployment-frequency/" target="_blank" rel="noreferrer noopener">Deployment frequency</a>.</li><li><strong>PageDuty:</strong> data about incidents, to calculate the metrics <a href="https://blog.codacy.com/how-to-measure-time-to-recover/" target="_blank" rel="noreferrer noopener">Time to recover</a> and Change failure rate.</li><li><strong>Jira:</strong> data about issues, to calculate the metrics <a href="https://blog.codacy.com/how-lead-time-can-improve-your-time-to-market/" target="_blank" rel="noreferrer noopener">Lead time and Cycle time</a>.</li><li><strong>CLI / API:</strong> enabling you to track the Accelerate metrics on your terms.</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">In terms of future integrations, we’re planning to expand the source code management tools to include BitBucket and GitLab. If you use anything different from PagerDuty, let us know so that we can prioritize that integration as well.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>Is a Git repo the only identifier for a project, or can another source of truth be used? <a href="https://www.youtube.com/watch?v=EoRzatLI9UI&amp;t=42m11s" target="_blank" rel="noreferrer noopener">(00:42:11)</a></strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">With the automatic GitHub integration, we associate the identifier with the repository. However, you can use our CLI to specify the identifier you want.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>Is there a plan to add group_by so I can compare projects/teams for the different metrics? <a href="https://www.youtube.com/watch?v=EoRzatLI9UI&amp;t=42m57s" target="_blank" rel="noreferrer noopener">(00:42:57)</a></strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Yes! It is one of the most requested features, and it should be coming out very soon! Our idea is to show you how the different teams compare to each other and which are the lowest-performing teams so that you can focus on helping them.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>I have a repo; how can I connect it with Pulse, and what changes do I need to do in my code so Codacy will give me profiling info? <a href="https://www.youtube.com/watch?v=EoRzatLI9UI&amp;t=43m57s" target="_blank" rel="noreferrer noopener">(00:43:57)</a></strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>We are still not using any information from Codacy, but that’s on our roadmap. About your repo, if you are using GitHub, you just need to <a href="https://www.pulse.codacy.com/?utm_source=blog&amp;utm_medium=website&amp;utm_campaign=webinar-Pulse" target="_blank" rel="noreferrer noopener">signup to Pulse</a>, click on <em>install Github,</em> and you are good to go! It’s a one-click integration.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"wide","id":5397,"sizeSlug":"large","linkDestination":"custom","tdCaptionAlign":"https://blog.codacy.com/wp-content/uploads/2022/03/Pulse-Get-started.png"} -->
<figure class="wp-block-image alignwide size-large td-caption-align-https://blog.codacy.com/wp-content/uploads/2022/03/Pulse-Get-started.png"><a href="https://www.pulse.codacy.com/?utm_source=blog&amp;utm_medium=website&amp;utm_campaign=webinar-Pulse" target="_blank"><img src="https://blog.codacy.com/wp-content/uploads/2022/03/Pulse-Get-started-1024x598.png" alt="Pulse Get started" class="wp-image-5397"/></a></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Check out <a href="https://docs.pulse.codacy.com/cli/examples/" target="_blank" rel="noreferrer noopener">our documentation</a> if you are not using GitHub but still want to try Pulse. You can add a script to your deployment pipeline that does everything for you 😉</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>How do you foresee access to these graphs and the underlying data? The examples shown are <strong>hard to analyze due to outliers. The ability to swap between median, mean average would be needed, as would be logarithmic axes <a href="https://www.youtube.com/watch?v=EoRzatLI9UI&amp;t=44m58s" target="_blank" rel="noreferrer noopener">(00:44:58)</a></strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">We’re looking into two options to deal with outliers in the data: one way is to add more complexity to the analysis with median, average, and other metrics. Another way is to automate the translation of data into actionable insights so that you don’t need to interpret the chart - we would give you a few sentences with all the information you need.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>How do you correlate the Lead time to the production Deployment date/time? It appears that you’re just measuring the pull request process. <a href="https://www.youtube.com/watch?v=EoRzatLI9UI&amp;t=46m02s" target="_blank" rel="noreferrer noopener">(00:46:02)</a></strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">We’ve different levels of granularity, depending on the precision you need. By default, the GitHub integration is connected to the PR process - this is the option with less effort. If you’re using semantic version tagging, Pulse also detects it and uses it for greater precision. Plus, if you’re willing to use the CLI / API, it works with the GitHub integration.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":1} -->
<h1><strong>References and further reading</strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">We selected a few interesting resources to help you continue on this Engineering performance journey.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><a href="https://services.google.com/fh/files/misc/dora_devops_roi_whitepaper.pdf" target="_blank" rel="noreferrer noopener">Forecasting The Value Of DevOps Transformations</a></li><li><a href="https://services.google.com/fh/files/misc/state-of-devops-2021.pdf" target="_blank" rel="noreferrer noopener">State of DevOps 2021</a></li></ul>
<!-- /wp:list -->

<!-- wp:list -->
<ul><li><a href="https://blog.codacy.com/loft-pulse-engineering-health/" target="_blank" rel="noreferrer noopener">How Loft uses Pulse to measure Engineering health | Codacy Blog</a></li><li><a href="https://blog.codacy.com/a-tale-of-four-metrics/" target="_blank" rel="noreferrer noopener">A tale of four metrics | Codacy Blog</a></li><li><a href="https://blog.codacy.com/how-to-measure-lead-time-for-changes/" target="_blank" rel="noreferrer noopener">How to measure Lead time for changes? | Codacy Blog</a></li><li>How to measure Change failure rate? | Codacy Blog<em> </em><strong><em>(soon)</em></strong></li></ul>
<!-- /wp:list -->

<!-- wp:list -->
<ul><li><a href="https://cloud.google.com/architecture/devops/devops-tech-code-maintainability" target="_blank" rel="noreferrer noopener">DevOps tech: Code maintainability | Google Cloud</a></li><li><a href="https://cloud.google.com/architecture/devops/devops-tech-test-automation" target="_blank" rel="noreferrer noopener">DevOps tech: Continuous testing | Google Cloud</a></li><li><a href="https://cloud.google.com/architecture/devops/devops-tech-trunk-based-development#common_pitfalls" target="_blank" rel="noreferrer noopener">DevOps tech: Trunk-based development | Google Cloud</a></li><li><a href="https://cloud.google.com/architecture/devops/devops-tech-shifting-left-on-security" target="_blank" rel="noreferrer noopener">DevOps tech: Shifting left on security | Google Cloud</a></li></ul>
<!-- /wp:list -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify"><strong>Thank you to everyone who joined live and those who watched the recording later on! Let’s keep the conversation going in </strong><a href="https://community.codacy.com/?utm_source=blog&amp;utm_medium=website&amp;utm_campaign=webinar-Pulse"><strong>our community</strong></a><strong>.</strong></p>
<!-- /wp:paragraph -->