← The field guide

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

✅ 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

Observed Flaky Tests