ENGINEERING

Auto-Route Quarantined Flaky Tests to Owning Team in Linear

For each newly quarantined flaky test, finds the owning team from CODEOWNERS and opens a deflake issue in the right Linear team with failure evidence and a priority set…

CategoryEngineering
Enginesim
Difficultyintermediate
Triggerevent
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitHub issue labeled 'quarantine'GitHubGitHub
  • ActionResolve owning team from CODEOWNERS for test pathGitHubGitHub
  • LogicDerive issue priority from flake rate and branch
  • ActionCreate routed deflake issue in owning Linear teamLinearLinear
  • OutputBack-link Linear ticket onto the GitHub issueGitHubGitHub

What it does

When a test enters quarantine, it shouldn't sit in a spreadsheet — it needs an owner and a ticket. This workflow resolves the responsible team from the repo's CODEOWNERS for the test file path, then creates a Linear deflake issue on that team's board, pre-filled with recent failing runs, stack traces, and a priority derived from the flake rate.

When to use it

Use it once you have a quarantine signal (from your ledger workflow or a manual label) and you want every flaky test to land as actionable, correctly-routed work instead of getting lost.

How it works

  1. 1A GitHub issue labeled `quarantine` triggers the flow.
  2. 2The flow reads CODEOWNERS and maps the test's file path to the owning team.
  3. 3Logic computes priority: higher flake rate or main-branch impact bumps urgency.
  4. 4It assembles failure evidence — last failing run URLs and trimmed stack traces.
  5. 5A Linear issue is created on the owning team with the evidence, priority, and a `flaky` label.
  6. 6The originating GitHub issue is updated with a back-link to the Linear ticket.

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
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    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.