ENGINEERING

Auto-Close Quarantine Issues When a Test Goes Green Again

Runs nightly, checks each open quarantine issue against recent Datadog results, and closes the Linear issue plus removes the GitHub quarantine label once the test has passed…

CategoryEngineering
Enginesim
Difficultyintermediate
Triggerschedule
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNightly schedule fires
  • ActionList open Linear quarantine issues and test idsLinearLinear
  • ActionQuery Datadog for recent pass/fail history per testDatadogDatadog
  • LogicKeep tests with N consecutive clean passes
  • ActionRemove flaky-quarantine label on GitHubGitHubGitHub
  • OutputClose matching Linear issues with green-streak noteLinearLinear

What it does

Keeps the quarantine list honest. Many flaky-test issues get fixed but the ticket and the skip linger forever. This sweeps open quarantine issues, verifies the test has been green for a configurable streak, and automatically retires the quarantine — closing the issue and removing the label.

When to use it

Use it when your quarantine backlog never shrinks and stale skips are eroding real coverage. It garbage-collects resolved flakes without manual bookkeeping.

How it works

  1. 1A nightly schedule triggers the sweep.
  2. 2An action lists open Linear issues tagged `flaky-test` along with their test identifiers.
  3. 3An action queries Datadog for each test's recent pass/fail history.
  4. 4A logic step keeps only tests with N consecutive clean passes and no recent failures.
  5. 5An action removes the `flaky-quarantine` label from GitHub for those tests.
  6. 6An output closes the matching Linear issues with a comment noting the green streak.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect LinearIssues, projects, cycles, triage.
  2. 2
    Connect DatadogMetrics, traces, log search.
  3. 3
    Connect GitHubRepos, issues, pull requests, actions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    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.