@m4rri4nne2
Alicia MarianneDeveloper▲5
Senior QA Enginner, Enhesa
1h ago · Ship · Agents · Lisbon

Shipped: Flaky Test Detector

flaky-test-detector is a Python tool that identifies flaky tests from your CI run history. A test is considered flaky when, on the same commit, it passes in one run and fails in another, with no code changes in between.

The tool collects results from local JUnit XML files or GitHub Actions artifacts, groups them by test and by commit, calculates each test's flakiness rate (using the Wilson lower bound at 95% confidence), and produces a ranking of the most unstable tests.

Key features:
Zero runtime dependencies (standard library only, Python 3.10+)

Supports JUnit XML and the GitHub Actions API

Reports in JSON, CSV, and Markdown

CI-friendly exit codes (0 no flaky tests, 1 flaky tests found, 2 error)

Ready-to-use weekly GitHub Actions workflow

Optional AI agent (Strands Agents + Gemini) that analyzes error messages and suggests root causes and recommendations

It turns a subjective complaint ("that test again...") into a measurable number, helping teams cut unnecessary re-runs, reduce pipeline costs, and rebuild trust in their test suite.

Flaky Test Detector logoFlaky Test Detector@m4rri4nne/flaky-test-detector · github.com/m4rri4nne/flaky-test-detector
testautomationdetector

Comments

No comments yet
Start the conversation.
Log in to join the thread.