Case Study
Learning From a Production Escape
The day after an evening release, our client forwarded a complaint from an educator. Drawings weren't saving. Educators were losing their work, and their students were opening worksheets with part of the picture missing.
I'd flagged a problem with the drawings the day before. I'd posted it in two places. It shipped anyway.
This is how a bug got past the tester who found it, and what our team changed so it wouldn't happen that way again.
Release day
Release days on our team were busy. Features were still coming in throughout the day, and regression testing ran at the same time. After our client's business day ended, the developer in charge of the release pushed it to production.
When I found an issue, I posted it in two places: a comment on the merge request in GitLab, and a message in the project's Slack channel tagging the developer in charge of the release. GitLab sent an alert for every new comment, and most of us had learned to tune those alerts out. If you wanted someone to look at something fast, you commented, and then you reached out in Slack.
Some decisions happened in GitLab and some happened in Slack. When we decided something in Slack, I copied it into the GitLab thread and resolved the thread there. That day, one thread held two issues. I asked whether the fix needed retesting. As I remember it, the answer was no, but it was about the other bug, not the drawings. I resolved the thread and moved on to the next issue.
- Release day: testing while features still land
- Drawing issue flagged in GitLab and Slack
- Evening: the release goes out
- Next day: the client reports the bug
- Same day: the fix ships
What I believe
A resolved thread should mean one decision about one issue. Once a thread holds two, resolving it can close something nobody actually decided.
A fix is also only as complete as the roles it's tested with. In this product, admins, educators, and students each reached the same worksheet a different way. A bug that hides from one role can sit in plain sight for another.
I don't think this failure belonged to one person, including me. Google's chapter on postmortem culture describes a blameless review as one that looks for contributing causes without blaming any person or team. That's how I wanted to look at this one.
What I did
Our client lead asked me to investigate. I reproduced the bug in our development environment, the closest thing we had to production. It needed two account types, so I logged in as an educator and as an admin in separate incognito windows to keep their sessions and caches apart. The drawings stayed for the admin. They disappeared for the educator, on the educator's own sheets and on copies of admin sheets.
The fix shipped the same day the client reported it. I verified it as an educator and as an admin, and checked the student link by eye, since students only view the sheet and have nothing to save.
One worksheet
-
Admin
Gets there by: creating the worksheet
Check: draw, save, and reopen. The drawing is still there.
-
Educator Where it broke
Gets there by: creating their own sheet, or saving a copy of an admin sheet
Check: draw on both kinds of sheet, save, and reopen.
-
Student
Gets there by: opening the educator's link
Check: open the link. The whole picture shows, drawings included.
Then I led a root cause analysis. The ticket for the original work described only one persona, and my flag about the drawings had been closed along with a different bug in a shared thread.
That day: one thread, two issues
Issue A A different bug in the release
Issue B Drawings aren't saving for educators
Question: does the fix need retesting?
Reply: no retest needed (meant for Issue A)
Thread resolved. Closes A and B.
After: one issue, one thread
Issue A A different bug in the release
Resolved
Issue B Drawings aren't saving for educators
Open until it's retested
I ran it as a discussion, not a lecture. My slides had screenshots of our process, what went wrong, and how one thread had mixed two issues together, plus a proposal for checking releases after they went out. We used the slides to talk it through as a team. I also wrote up minutes for our client relationship manager, who couldn't attend, and for anyone who wanted to look back at what we decided.
What it changed, and what I'd refine now
We agreed on one issue per thread. If a decision happened in Slack, it went back into that issue's thread, and a merge request couldn't be approved until every thread was resolved. That was a team agreement, kept by habit.
We also started post-release verification. Each product got its own short list, because a learning app and a Drupal site don't break the same way. A few items were the same everywhere, like reviewing logs and analytics. For the learning apps, we used analytics to confirm that saves were succeeding, which is exactly what broke here. For other products, most of the list was visual regression: run it, then update the approved screenshots to the new version.
Every item had a name next to it. The developer in charge of the release checked most of them, and DevOps reviewed the logs and analytics. I kept each person's part to 10 minutes or less. Lisa Crispin and Janet Gregory call this a whole-team approach: quality belongs to everyone who delivers the work, not only to the tester.
Post-release check: sample learning app
- Review the error logs from the releaseDevOps
- Confirm in analytics that saves are succeedingDevOps
- Run visual regression and update the approved screenshotsRelease developer
- Run the checks specific to this releaseRelease developer
Each owner's part: 10 minutes or less.
Nothing dramatic changed afterward, and that was the point. I felt more secure about releases going out late at night, and confident that everything would be working in the morning.
What I'd refine: our six-week plans were usually optimistic, so the test cycle at the end was often shorter than it should have been. I pushed on that, and I never fully changed it. Shape Up, the process we used, already has the answer I'd lean on harder now. When time is fixed, you cut scope, not checks. The book says variable scope "is not about sacrificing quality" (Shape Up, chapter 14).
I'd also make the thread rule a setting instead of a habit. GitLab can block a merge until all threads are resolved, and GitHub has a similar option.
Take it with you
- Make every role a row. Before you test a fix, list each role that can reach the feature and what each one can do. Security testers already work this way: the OWASP testing guide checks access role by role. The same habit catches plain functional bugs, too. Ask the question early, in a Three Amigos conversation between product, development, and testing.
- One issue, one thread. Don't let a single thread hold two decisions, and don't merge until every thread is resolved. If your team keeps that rule by habit, a GitLab or GitHub setting can keep it for you.
- Keep the release checklist short, with a name on every line. Atul Gawande's The Checklist Manifesto makes the case for short lists focused on the steps people actually miss. Ours took each owner 10 minutes or less.
Looking forward
None of these habits are fancy: one home for each issue, a check for every role, and a short list after every release. Research from DORA has found that speed and stability aren't a tradeoff, and small habits like these are part of how a team gets both.
I still use them. My own site runs visual regression against approved screenshots, the same technique from our post-release lists. I wrote about that in Testing My Own Portfolio.
Sources
- Beyer, B., Jones, C., Petoff, J., and Murphy, N. R. (eds.), Site Reliability Engineering, chapter 15, "Postmortem Culture: Learning from Failure." O'Reilly, 2016.
- Crispin, L., "The Whole Team Approach," 2009. See also Crispin, L., and Gregory, J., Agile Testing. Addison-Wesley, 2009.
- Dinwiddie, G., "The Three Amigos," Better Software, 2013.
- DORA, "DORA's software delivery performance metrics."
- Gawande, A., The Checklist Manifesto: How to Get Things Right. Metropolitan Books, 2009.
- GitLab Docs, "Auto-merge" (merge checks, including resolved threads).
- OWASP, Web Security Testing Guide, "Testing for Bypassing Authorization Schema" (WSTG-ATHZ-02).
- Singer, R., Shape Up, chapter 14, "Decide When to Stop." Basecamp, 2019.