Our Spring Boot services build on GitHub Actions ten, fifteen times a day, and for a month the pipeline had a habit I hated: a different integration test failed every other run, somebody hit re-run failed jobs, it went green, everybody moved on. The suite was green on paper and nobody believed a word it said.
Last month it bit us properly. An OrderStatusIT test failed on my PR, passed on rerun, failed again on a teammate’s completely unrelated PR, and blocked three merges in one afternoon. The failure had nothing to do with any of our changes. That evening I stopped asking “whose change broke this” and started asking the better question: why does one unreliable test get to hold the whole team hostage?
A flaky test is like a smoke alarm with a dying battery. It chirps at 3 AM for no reason, so you learn to sleep through it — and then one day there is a real fire and you do not even roll over. Every blind rerun trains the team the same way: red means nothing, green means “try again until it passes.” That is how you end up merging through noise.