How long before somebody files a ticket?
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.
