ENGINEERING

Flaky Test Triage Agent with Owner Routing

An agent investigates each newly quarantined flaky test, reads the failing logs and CODEOWNERS to identify the likely cause and owner.

CategoryEngineering
Enginepaperclip
Difficultyadvanced
Triggerevent
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitHub issue labeled flaky-test openedGitHubGitHub
  • ActionFetch CI logs and test sourceGitHubGitHub
  • LogicDiagnose cause and resolve owner from CODEOWNERS
  • ActionComment root-cause summary on issueGitHubGitHub
  • OutputNotify owner in SlackSlack

What it does

This agent-driven workflow does the human-like triage on a freshly quarantined flaky test. It reads the failing run logs, inspects the test file and surrounding code, consults CODEOWNERS to find the responsible team, and writes a plain-language root-cause hypothesis (timing, shared state, network, ordering) into the GitHub tracking issue. It then notifies the owner in Slack with a concise summary and the issue link.

When to use it

Use this when flaky tests pile up faster than engineers can investigate them and you want a first-pass diagnosis and clear ownership before anyone opens the logs.

How it works

  1. 1A GitHub issue labeled `flaky-test` is opened, triggering the agent.
  2. 2The agent fetches the linked CI logs and the test source from the repository.
  3. 3It reasons over the evidence to classify the likely flakiness cause and resolves the owning team from CODEOWNERS.
  4. 4It posts a structured root-cause comment and suggested next step onto the tracking issue.
  5. 5It sends the owner a Slack message with the diagnosis and a direct link to act on.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect SlackChannels, DMs, threads, mentions.
  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.