Which flaky tests cost enough in retries and triage to repair first?
Estimate how much review time goes into non-actionable failures. Rank repair candidates by hours spent investigating them and the business risk of leaving the area unreliable.
Estimate the weekly cost of a flaky test
Use first-attempt runs for one test. Count only flaky episodes that consume triage time.
- Expected episodes per week
- 6
- Staff triage per week
- 72 min
- Retry compute per week
- 24 runner-min
Assumes one retry and one triage investigation per flaky episode. Shared incidents and repeated retries can change the totals.
Calculation method
Expected episodes = first attempts × flaky percentage ÷ 100. Multiply episodes by triage minutes for staff time and by retry minutes for runner time.
Inputs to collect
Use one consistent observation window for the inputs below. Replace the calculator’s illustrative defaults with measurements from your own software and runners.
| Input | Where to get it |
|---|---|
| Runs | Count executions over a representative period. |
| Intermittent failure rate | Use outcomes that required extra investigation. |
| Triage time | Use hands-on minutes for each recurrence. |
Interpreting your result
Verify a sample of failures before assigning a cost. A genuine customer-facing defect deserves investigation even when reproducing it is expensive.