ENGINEERING

Flaky Test Triage to Owning Team in Linear

When a test is quarantined, this agent maps the failing test file to its owning team using CODEOWNERS and files a Linear issue on that team's board with full failure context…

CategoryEngineering
Enginepaperclip
Difficultyintermediate
Triggerevent
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitHub 'test-quarantined' label addedGitHubGitHub
  • ActionResolve owning team from CODEOWNERSGitHubGitHub
  • LogicSummarize failure evidence into issue body
  • ActionCreate routed Linear issue with due dateLinearLinear
  • OutputComment Linear link back on PRGitHubGitHub

What it does

Quarantining a flaky test hides the symptom; this workflow assigns the cure. It reads the quarantined test path, resolves the responsible team from CODEOWNERS, and creates a Linear issue routed to that team with the failure history, affected branches, and a due date so flakes do not rot in quarantine forever.

When to use it

Use this when you have a quarantine process but no accountability — tests get skipped and never fixed. It closes the loop by putting a tracked, owned ticket in front of the team that wrote the code.

How it works

  1. 1A GitHub label event (test-quarantined) on a PR or issue triggers the flow.
  2. 2An action reads the CODEOWNERS file and matches the test path to a team.
  3. 3An agent summarizes the failure evidence into a clear issue body with reproduction notes.
  4. 4An action creates a Linear issue on the matched team with a deflake-by label and due date.
  5. 5The output posts the Linear issue link back as a comment on the originating PR.

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.