SPECIMEN No. 042 · Nondeterministic species
Flaky Tests
A test that fails one run in twenty, and teaches a whole organization that red means “click retry”.
🌱 Endemic- 🏠 Habitat
- Integration suites that touch time, network or ordering
- 🦈 Natural predator
- Quarantine, eventually permanent
- 🤒 Common symptom
- Just re-run it
💖 Re-run and move on
TaylorThe AI Native“Forty engineers cannot stop merging because one test had a bad day; retry, quarantine, ticket.”
JoThe Cowboy“Red one run in twenty is noise; she clicks retry and ships, production will say if it was real.”
MayaThe Visionary“A coin flip blocking the release is not rigor; the experiment goes out today.”
🛑 A flake is a bug
RuthThe Maintainer“Half of flaky tests are races in the product; every silent retry throws the evidence away.”
HugoThe Perfectionist“A flaky test teaches the team that red means click retry; he fixes it tonight, properly.”
MorganThe Threat Modeler“Timing-dependent failures are where race conditions live, and a race in auth is a vulnerability.”
✅ GOOD FIT
- Quarantine when one flake blocks forty engineers' merges
- Retry a known network flake, with a ticket filed
- Ship a reversible change while the flake is tracked
🚩 TOO FAR
- Just re-run it is the team's deployment process
- The quarantine folder is older than most employees
- A real race in auth retried until green
🎯 SWEET SPOT
Super Reasonable
Quarantine a flaky test the day it flakes, with an owner and a deadline, so merges keep moving. Investigate it as a possible product race first, since timing failures in auth or payments are bugs, not noise.
IN THE WILD · 1 STORY
