Skip to content
publish99
All articlesPedro Lages

Issue 02

A month to find, a day to fix

How long does a bug go unnoticed? I traced two years of fixes from the code that reached users to the ticket and the release.

How long before somebody files a ticket?

One dot per fix

How long do users run a broken version before anyone files a ticket?

Every dot is something we fixed. I traced the lines we changed back to the version that first put them in users’ hands. Then I looked for the ticket that reported the problem.

Over two years I could start and stop that clock 1,148 times. How long would you guess the typical wait was?

About 34 days. A month goes by and we’ve only just filed the ticket. The fix comes after that.

Some get a ticket in hours. Some take years. The last column alone has 163 fixes where the code was live for over a year before the report.

I could measure this wait for 58% of the fixes to code that had reached users.

Only 9% got a report within a day. Give it a week and we’re up to 23%.

There’s a catch. I can tell you when the code became available. Did anyone try that particular combination of inputs in the first week? I have no idea.

Does it matter where the report comes from?

Anyone in the company can file a ticket on our engineering request board. The engineer on call picks it up and works out who can help. Engineers can also put work directly on their own team’s board.

The typical wait before a report on the shared board was 105 days. On team boards, 22 days.

One difference is who writes the ticket. On team boards, nine times out of ten, it’s the engineer who goes on to fix it. On the shared board, twice in ten.

Imagine finding a bug while working on something else. By the time you write the ticket, you might already be halfway through a fix.

The first pull request typically opens two hours after a team ticket and eight hours after a shared one. We didn’t match the tickets by severity.

So far we’ve started with a code change and worked backwards. Try it the other way around.

Here’s every ticket on our shared board labelled Bug and marked Done. Each square is one ticket.

Almost half have no link to a code change. What closed them?

We had an AI read the comments on those 645 tickets. In 266 of them somebody appears to have fixed the problem by hand, for example by correcting a record or changing a setting.

Another 88 pointed to code changes that never named the ticket. For 164, the comments gave us too little to go on.

These are estimates. Nobody independently checked the model’s classifications.

Back to the dots. Once we have a report, how fast do we fix it?

Same time bands. Watch how many dots fit into that first day. We can measure this clock for 1,178 fixes because we only need a ticket and a merge time.

Half merged within 12.5 hours. Two thirds within a day.

Of course, a merged change doesn’t do the person who filed the ticket much good until we ship it.

Run the clock all the way to the release and the median goes up to 21 hours. A month to find. A day to fix.

Where did the long waits come from? For 1,172 fixes we could split the clock into opening a pull request, merging it and getting it out.

For 263 of those, more than a day passed before the pull request even opened. Together they account for 77% of all the hours between report and release in that group.

I’d have missed the whole month at the beginning if I’d started with the ticket. Start with the pull request and I miss a big part of the last day too.

How we measured this, and where it’s shaky

Is every fix a bug?

We looked at changes merged between November 28, 2024 and November 28, 2026 whose titles started with fix:. An AI classified a random sample of 600 of them. It called 393 bugs and 136 changes to how something should work. Some of the rest only touched tests or tools. Even among 179 labelled Bug, the model classified 26 differently. The label gives us a way to find repairs, with some noise.

When did the clock start?

Git records who last changed a line. We checked when that version shipped and when users could access the feature. We counted the fix as live if most of the old lines it changed had reached users. Moving code can reset its apparent age. A fix that only adds lines gives us nothing to trace.

What does a dot represent?

The first clock needs a report filed after the code became available. The second needs a report we could match to a merged fix. We counted the first release containing that fix. Each view shows the distribution for its own group. The moving dots show changes in the counts across time bands. A single ticket can account for several fixes, so the squares count tickets separately.

Pedro Lages

Pedro works on Karat’s credit card and banking products, from onboarding new customers to tracking down bugs after release.

LinkedIn