Insights

The economics of time lost in a pipeline.

William Idoine on LinkedIn (opens in new tab)

A slow delivery pipeline is a cost the business pays every working day. How to measure it, where the time usually goes and what changed when Karbon fixed it.

The cost is paid in minutes, many times a day.

Every change an engineer makes has to travel through the delivery pipeline before it reaches the product. The pipeline builds the code, runs the tests and deploys the result. While it runs, the engineer waits, switches to something else or starts the next change without knowing whether the last one passed.

None of those outcomes is free. Waiting is lost time. Switching costs the time it takes to get back into the work. Starting the next change on top of an unverified one means rework when the first one fails.

The cost is easy to overlook because each run looks small. A single run seems tolerable until it is multiplied by every pull request, every retry and every engineer on the team, every working day.

How to put a number on it.

You do not need a new tool to estimate what the pipeline costs. Four figures from your own systems are enough.

  • Pipeline duration. The wall clock time from a change being pushed to the pipeline finishing, taken from your continuous integration system. Record the median as well as the mean, because a few very slow runs can hide what a typical run feels like.
  • Runs per day. How many times the pipeline runs across the team, including retries.
  • First pass success. The share of runs that pass without a retry or a fix. A failed run costs its own duration and the time taken to diagnose it.
  • Time to recover from a failed change. How long a broken build or a failed deployment keeps the team from moving.

Multiply duration by runs per day and you have the hours the pipeline consumes. Weigh that by how much of it engineers actually wait for, and by the failure rate, and you have a defensible estimate of the capacity lost to the delivery system rather than spent on product work.

Record those figures before any change is made. Without a baseline, an improvement is an impression rather than a result.

Where the time usually goes.

Inside a slow pipeline the time is rarely spread evenly. It usually sits in a few mechanisms that do more work than the change requires.

  • Redundant work. Builds that recompile everything on every run, when most of the code has not changed.
  • Serial steps. Test suites that run one after another on a single agent, so the slowest path sets the pace for everyone.
  • Deployments that fire whether or not they are needed. Steps triggered by any change, not by the change that affects them.

Karbon, a practice management software company, had all three. Every pull request triggered a full pipeline. The test suite ran sequentially on one agent and added roughly a quarter of the total pipeline time to every pull request, even when most tests were untouched by the change. A change to any one database redeployed every database on the same server, and nothing was cached.

What changed at Karbon, and what was measured.

During a six week phase of work, Vectorise engineers worked alongside Karbon’s team on the three mechanisms above.

  • Shared remote build caching, so unchanged projects are skipped rather than rebuilt. On a typical pull request the cache hit rate exceeded 95%.
  • Change fingerprinting for databases, so a database with no changes and no shared dependencies skips the deploy path. About 40% of database redeploys were eliminated.
  • Parallel test execution across multiple agents, which cut test wall time by roughly two thirds, a 2.7 times speedup over the serial run.

The measured result was a pipeline duration approximately 70% shorter than before the six week phase. From that measured change, Vectorise estimated that around 11% of engineering capacity was returned to product work.

The two figures are different kinds of claim. The first is a measurement of the pipeline. The second is an estimate of what the team can do with the time, and it is not booked revenue or a cash saving. The improvements were carried into an ongoing partnership, and the technical detail of each change is on the case study page.

Conclusion.

A pipeline is an engineering system with a cost the business can measure. Take the four figures from your own tooling, establish the baseline, and fix the mechanism that consumes the most time first. Then measure again.

A shorter pipeline does not make the whole company faster on its own. What it does is give engineers back the hours they were spending on waiting, retrying and recovering, and those hours are where roadmap capacity comes from.

Summarised (for your agent)

  • Problem: A slow pipeline costs time many times a day: engineers wait, switch context or build on a change that has not passed yet.
  • How to measure it: Four figures from your own systems estimate the cost: pipeline duration (median as well as mean), runs per day, first pass success and time to recover from a failed change.
  • Where the time goes: It usually sits in three mechanisms: redundant work, serial steps and deployments that fire whether or not they are needed.
  • Proof: At Karbon, build caching, selective database deployment and parallel tests made pipeline duration approximately 70% shorter over a six week phase, with an estimated 11% of engineering capacity returned to product work.

Keep reading

Talk to a Director.

Tell us what your team is trying to achieve and what is getting in the way. We will contact you during Sydney business hours to arrange a short conversation. If there is a fit, we will agree the next scoping step.

Prefer email? mailbox@vectoriselabs.com

We will use these details to respond to your enquiry.

Search pages

Jump to any page on the site.