Flaky Tests as Release Evidence Gaps (Not Ignored Greens)
Author: Ashwin Kondapalli, Founder & CTO, LoopIQ Updated: November 2, 2026
The release review is going well until someone scrolls through the run history. The checkout suite is green for tonight's candidate, but the payment confirmation test failed on the first run and passed when it was rerun twenty minutes later. Nobody changed any code in between. Someone says, "That one's just flaky." The room nods and moves on. Three weeks later, a customer hits the same timing problem in production.
A flaky test is a test that passes and fails on the same code without any change. For release evidence, a flaky result should be recorded as an open gap, not counted as a pass. That means keeping the original failure, naming an owner, setting a time box to fix or replace the test, and making an explicit decision at go/no-go about whether the release can ship with that gap. A pass on rerun shows the test can pass. It doesn't show the behavior it checks is reliable.
The rest of this guide covers why reruns hide risk, how to classify a flaky result, what to record, and how to handle flaky tests at go/no-go.
Why is a pass on rerun not the same as a pass?
Reruns are a normal part of testing. Environments hiccup, a shared service restarts, a runner gets slow. Rerunning to check whether a failure is real is reasonable.
The problem starts when the rerun replaces the first result. Then the evidence says "passed" and the failure disappears. Three things get lost:
The question the failure raised. Was it the test, the environment, or the product? A timing-dependent failure in a test can also be a timing-dependent bug in the product.
The pattern. One rerun looks harmless. The same test needing a rerun on every third candidate is a signal, but only if the failures were kept.
The reviewer's ability to judge. A release reviewer who sees only green can't weigh a risk they were never shown.
A useful rule: the first result is evidence, and so is the rerun. Keep both, and link them.
How do you tell a flaky test from a real failure?
You often can't tell from one run. Classify each failure into one of these and record which one you chose:
Product defect. The failure reproduces, or the trace shows the product behaving incorrectly. Open a defect and treat the test as doing its job.
Environment or infrastructure problem. The run ended in an error during setup, a timeout, a dependency outage, or a runner problem. Fix the environment and rerun, and note the cause.
Test problem. The test depends on timing, ordering, shared data, or an unstable locator, and fails without any product change. This is a flaky test.
Unknown. You can't tell yet. Treat unknown as a gap until someone investigates, not as a pass.
The important habit is to record the classification and the reason. "Flaky" with no evidence behind it often turns out to be a real defect.
What should a flaky test record include?
Treat each flaky test like any other open gap in release evidence. A useful record has:
Test and requirement: which test, and which story, change, or requirement it covers.
Original failure: the run, step, failure type, and redacted message. Link the screenshot or trace while it's still retained.
Rerun result: the run that passed, on the same candidate and environment.
Classification and reason: product defect, environment, test problem, or unknown, and why.
Owner: one named person or team responsible for the fix.
Time box: a date by which the test is fixed, replaced, or removed with a documented reason.
Coverage impact: what is untested or weakly tested while the test is unreliable, and whether another test or a manual check covers it.
Release decision: for each release it touches, whether the gap was accepted, and by whom.
If you can't name the coverage impact, you don't yet know what the flaky test is costing you.
How should flaky tests be handled at go/no-go?
At the release meeting, a flaky test isn't a green test. It's an open item with three possible outcomes:
Block. The flaky test covers a high-risk path, like payments, authentication, or data integrity, and there's no other reliable evidence. Fix or replace it before release.
Accept with compensating evidence. Another test, a manual check, or a targeted rerun on the candidate shows the behavior works. Record the compensating evidence and the person who accepted it.
Accept as a time-boxed exception. The risk is low and understood. Record the exception with owner, rationale, and expiry, so it can't quietly carry into the next release.
Whatever the outcome, write it down. The release decision should show that someone looked at the flaky result and chose, not that the result was never visible.
Passing tests, rerun or not, inform the release decision. They don't authorize the release. People do, based on the full picture.
Illustrative example: the payment confirmation test
Illustrative demo data.
Release: Storefront 12.5.0, candidate rc2, staging environment Suite: Checkout journey (approved automation, run against rc2)
Run 1: failed at step 7 of 9, "Confirm payment." Failure type: assertion. The confirmation message didn't appear within the expected wait. Run 2 (rerun, same candidate, 20 minutes later): passed.
Investigation: The trace from run 1 showed the payment API responded in 4.8 seconds, past the test's 4-second wait. Two of the last six candidate runs showed the same pattern.
Classification: unknown, leaning test problem. The wait may be too short, but a slow payment confirmation could also hurt real users.
Record:
Owner: Checkout QA lead
Time box: fix or replace the wait logic by rc3, and no later than the next release
Coverage impact: payment confirmation timing isn't reliably checked
Compensating evidence: a manual payment check on rc2 passed, and payment API latency on staging was reviewed with the payments team
Decision for 12.5.0: accepted as a time-boxed exception by the release manager, with the compensating evidence linked
Follow-up: The payments team found an occasional slow response from a downstream service and opened a defect. The test's wait was left as is, because it had caught a real issue.
Illustrative demo data. Not a customer result.
Without the first failure on record, this would have been a green checkout suite and a missed defect.
Common mistakes to avoid
Letting the rerun overwrite the failure. Keep both results and link them.
Calling a failure flaky without investigating. "Flaky" is a classification, and it needs a reason.
Retry loops that hide failures. Automatic retries that only report the final pass make flaky tests invisible to reviewers.
Quarantining without an owner or date. A quarantined test with no time box becomes permanent missing coverage.
Treating nightly flakiness as someone else's problem. Flaky results from scheduled runs show up again on release candidates. Track them before the release meeting, not during it.
How this works in LoopIQ
Prerequisites: Tests are approved automation assets run through governed execution. The release exists in LoopIQ, with related work items linked.
Sequence:
Run approved automation against the candidate and select the optional release or certification evidence scope so the run is tied to the release. See Use Test Automation.
Review each run in Runs & evidence. Run statuses separate failed (a test step or assertion failed) from error (setup, runtime, callback, timeout, or infrastructure prevented completion), which helps with the first classification step. Runs that stay queued or running past 60 minutes are moved to error rather than left active.
Expand a failed run to review Journey evidence: step status, failure type, redacted failure message, screenshot, and trace. Use these to decide whether the failure points to the product, the environment, or the test.
Keep the original failed run and the rerun as separate results for the release, instead of replacing one with the other.
Record the flaky test as an exception or deviation in the Release Compliance Dossier, with the owner, time box, coverage impact, and any compensating evidence.
Review open exceptions and deviations during release review, and record the decision.
Outputs: A release record where reviewers can see the original failure, the rerun, the classification, the owner, and the decision, all linked to the candidate and the requirement.
Boundaries: LoopIQ keeps run results and evidence connected to the release. Deciding whether a failure is flaky, and whether a gap is acceptable, stays with your team. Release certification in LoopIQ is an internal readiness decision, not a regulatory certification. Test results inform readiness and don't authorize a release on their own. Check the current product notes for what's enabled in your tenant.
Pricing: LoopIQ is $4.99 per user per month.
Quick template
For each flaky test on a release, record:
Test / requirement:
Original failure (run, step, message):
Rerun result (run, same candidate?):
Classification and reason: product / environment / test / unknown
Owner:
Time box:
Coverage impact:
Compensating evidence:
Release decision and approver: block / accept with evidence / time-boxed exception
FAQ
What is a flaky test? A test that passes and fails on the same code without any change, usually because of timing, ordering, shared data, or environment dependencies.
Should a test that passes on rerun count as passing for a release? Not by itself. Keep the original failure, classify it, and record the result as an open gap until someone decides it's acceptable.
Is a flaky test always a test problem? No. A timing-dependent failure can be a real product issue, such as a slow service. Investigate before calling it flaky.
Should flaky tests be quarantined? Quarantine can stop noise, but only with an owner, a date, and a record of what coverage is missing while the test is out.
Can a release ship with a flaky test? Sometimes, if the risk is understood, compensating evidence exists, and someone accountable records the decision as a time-boxed exception.
See a requirement become reviewed tests and execution evidence
If your release reviews keep running into "it's just flaky," I'd be glad to show you how LoopIQ keeps failures, reruns, and exceptions connected to the release so reviewers can see the whole picture. Book time with me here.
Further reading: Owners for Open Gaps: Time Boxes That Stick Past the Meeting · Suite Schedules Tied to Release Candidates—Not Just Cron · Go/No-Go with Exceptions: How to Write the Decision Record · CI Green vs Release Evidence: What Belongs in the Dossier
General information for engineering, quality, release, and compliance leaders. Not legal, audit, or regulatory advice.