Home / Companies / Mergify / Blog / Post Details
Content Deep Dive

“Re-run Failed Jobs” Is Not Flaky Test Management

Blog post from Mergify

Post Details
Company
Date Published
Author
Julien Danjou
Word Count
2,308
Company Posts That Month
3
Language
English
Hacker News Points
-
Post removed?
No
Summary

Re-running failed GitHub Actions jobs can unblock pull requests after transient infrastructure failures, but the post argues that it is not an effective flaky-test management strategy because it reruns entire jobs on the same commit without identifying or recording the individual test that failed and later passed. This approach increases CI costs, allows recurring flaky tests to remain invisible across pull requests, and can train engineers to dismiss failures, potentially letting intermittent real bugs merge after succeeding on retries. Effective management instead requires collecting per-test outcomes on identical commits, distinguishing consistently broken tests from tests with inconsistent results, assigning ownership and priority based on failure history, and quarantining unstable tests while continuing to run and monitor them. The post also recommends repeatedly testing new or changed pull-request tests before merge to prevent new flakiness from reaching the main branch. It presents Mergify Test Engine as a tool that performs test-level detection, targeted retries for known flaky tests, automated quarantine and release, and health reporting across CI systems.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.