DEVOPS

Classify CI failures and auto-quarantine flaky tests

On every failed CI run, decides whether a test failure is a real regression or intermittent flake, and tags repeat offenders for quarantine so they stop blocking merges.

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerevent
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitHub workflow_run failedGitHubGitHub
  • ActionFetch failed jobs and parse failing testsGitHubGitHub
  • LogicClassify flake vs regression by history
  • ActionLabel flaky tests and update tracking issueGitHubGitHub
  • OutputPass regressions through to block merge

What it does

When a CI workflow run fails, this template pulls the failing test names and compares them against recent history. If a test has flipped between pass and fail on the same commit or across reruns, it is classified as flaky rather than a genuine regression, labeled in GitHub, and recorded so the team can track it.

When to use it

Use it when intermittent failures are eroding trust in CI and engineers are blindly clicking re-run. It separates signal (real breakage) from noise (flakes) automatically, on every failed run.

How it works

  1. 1A GitHub `workflow_run` completion event with a failed conclusion fires the trigger.
  2. 2The flow fetches the run's failed jobs and parses the failing test identifiers from the logs.
  3. 3A logic step checks each test's recent pass/fail pattern: alternating results or a passing rerun marks it flaky; a consistent failure marks it a regression.
  4. 4For flaky tests, GitHub applies a `flaky` label and adds the test to a quarantine tracking issue.
  5. 5Real regressions are passed through untouched so they still block the merge as intended.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  3. 3
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  4. 4
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.