Menu

GitHub Actions Flaky Tests: Find Which Workflows Keep Flipping Red and Green
📰

GitHub Actions Flaky Tests: Find Which Workflows Keep Flipping Red and Green

DEV Community: cicd·flisk·6 days ago
#hBKwA4KD
#devtocicd#devto#dev#runs#flaky
Long article (361 words) — no AI summary yet.
Reading 0:00
15s threshold

TL;DR: a flaky workflow is one that goes from pass to fail and back without a change that explains it. You can find yours by counting flips in the last 100 runs. Cilytics does that count for any public repo or a whole org.

Searching github actions flaky tests usually leads to advice on fixing a single test. First you need to know which workflows flip, because that is where the wasted re-runs go.

The rule Cilytics uses

A workflow is listed as flaky when it went from pass to fail, or back, at least three times in its last 100 runs, with no change in between that it can see. The workflows with the most flips come first.

Two details that keep the list honest:

Pass rate counts passed runs against failed and timed-out runs. Cancelled and skipped runs are left out.

Only the default branch is read.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.