ENGINEERING

Auto-Quarantine a Confirmed Flaky Test via Skip PR with Owner Tracking

When a test is flagged flaky three times in a week, opens a GitHub PR that marks the test as skipped/quarantined, requests review from the code owner.

CategoryEngineering
Enginesim
Difficultyadvanced
Triggerwebhook
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerFlake report webhook receivedHTTP webhook
  • ActionTally recent flake reports for the test
  • LogicBranch: weekly threshold crossed vs. record and exit
  • ActionOpen quarantine PR and request owner reviewGitHubGitHub
  • ActionCreate linked un-quarantine ticket with due dateLinearLinear
  • OutputNotify owner in Slack with PR and ticket linksSlack

What it does

This workflow acts on repeat offenders. When the same test is reported flaky three or more times within a rolling week, it programmatically opens a GitHub pull request that annotates the test as quarantined (skip marker plus a tracking comment), requests review from the CODEOWNERS owner, and creates a Linear ticket so the quarantine is temporary and tracked to resolution.

When to use it

Use this when chronically flaky tests are blocking merges and you want to remove them from the critical path automatically, while guaranteeing an owner is on the hook to fix and restore them.

How it works

  1. 1A webhook receives a flake report event (from CI or an upstream detector) carrying the test identifier.
  2. 2The flow tallies recent flake reports for that test from its store.
  3. 3A branch checks whether the count crossed the weekly threshold; below it, the run records the report and exits.
  4. 4Above threshold, the flow opens a GitHub PR adding the skip annotation and a quarantine comment, with the owner requested as reviewer.
  5. 5A Linear ticket is created and linked to the PR with a due date to un-quarantine.
  6. 6Slack notifies the owner with the PR and ticket links.

Set it up

What you configure once, before turning it on.

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