ENGINEERING

Flaky Test Trend Alert from CI Metrics to Slack

Runs on a schedule, queries Datadog CI test metrics for tests whose flake rate crossed a threshold over the last week.

CategoryEngineering
Enginesim
Difficultyintermediate
Triggerschedule
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerScheduled weekday run
  • ActionQuery Datadog CI flake ratesDatadogDatadog
  • LogicFilter and rank tests above threshold
  • ActionFormat ranked flake digest
  • OutputPost digest to Slack channelSlack

What it does

This workflow surfaces the flakiest tests before they become emergencies. On a regular cadence it pulls per-test pass/fail rates from Datadog CI Visibility, ranks tests by flake rate and blast radius, and delivers a prioritized digest to Slack so the team fixes the top offenders instead of guessing.

When to use it

Use this for a weekly or daily flake review when you already ship CI test metrics to Datadog. It is the proactive complement to per-failure quarantine — it tells you what to invest in.

How it works

  1. 1A scheduled trigger fires (for example, every weekday morning).
  2. 2An action queries Datadog for test-level flake rates over the trailing window.
  3. 3A logic step filters to tests above the flake-rate threshold and ranks by impact.
  4. 4An action formats a digest with sparkline-style counts and owning teams.
  5. 5The output posts the ranked digest to the engineering Slack channel.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect DatadogMetrics, traces, log search.
  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.