Alert types, default thresholds, and triggers
This page lists every alert type with its identifier, default threshold, and exactly when it fires. For an introduction to how alerts work, start with the Alerts overview.
Alert types and default thresholds
| Identifier | Humanized name | Default threshold | Window | Trigger |
|---|---|---|---|---|
performance_regression |
Performance Regression | 15% | last 20 same-tag runs, excluding the current run | New run total duration exceeds median × (1 + threshold/100) and is at least 5 seconds over the median. |
test_flakiness |
Test Flakiness | 30% | last 20 same-tag runs | A failed or passed-on-retry case in the new run has historical failure rate ≥ threshold. Errored cases are left out. |
skipped_test_count_creep |
Skipped Test Count Creep | 10% | last 20 same-tag runs | Median skip percentage across the window ≥ threshold. |
failure_rate_spike |
Failure Rate Spike | 15 points | last 20 same-tag runs, excluding the current run | New run's failure rate exceeds the window average by ≥ threshold percentage points. |
stale_skipped_tests |
Stale Skipped Tests | 30 days | same-tag runs from the past year | A test skipped in the new run has been skipped in every same-tag run for ≥ threshold days. Fires once per skip streak. |
Trigger conditions in detail
performance_regression
- Pre-conditions. Run must be
processed. The check runs on the run that just finished. - Computation. Take the median
total_durationof the last 20 processed runs in the same project with the same tag set, not counting the current run. Ifcurrent.total_duration > median × (1 + threshold / 100)andcurrent.total_duration - median ≥ 5seconds, the alert fires.total_durationis the sum of the run's suite times, so for sharded or parallel builds it is total test time rather than how long the CI job took. - Suite size. The event records the run's test count and the median test count across the baseline. When the run has more tests, the alert message says how much the suite grew.
- Default threshold. 15.
test_flakiness
- Pre-conditions. Run must be
processedand have a failed or errored result, or at least one passed-on-retry case. - Computation. For each failed or passed-on-retry case in the new run (errored cases are left out), count the case's appearances across the last 20 same-tag runs, and count the runs where it failed or passed on retry as failures. If
failure_count / total_count ≥ threshold / 100, the alert fires for that case. - Default threshold. 30.
skipped_test_count_creep
- Pre-conditions. Run must be
processed. - Computation. For each of the last 20 same-tag processed runs (excluding any with
total_tests = 0), computeskipped_count / total_tests * 100. Take the median of those percentages. Ifmedian ≥ threshold, the alert fires. - Minimum sample. At least 15 of the 20 runs in the window must have
total_tests > 0. Below that the check is skipped. - Default threshold. 10.
failure_rate_spike
- Pre-conditions. Run must be
processed, havetotal_tests > 0, and have at least one failure or error. - Computation. For each of the last 20 same-tag processed runs excluding the current one (and excluding any with
total_tests = 0), compute(failures + errors) / total_tests * 100. Take the mean. Ifcurrent_rate - mean ≥ threshold, the alert fires. The threshold is a difference in percentage points, so a threshold of 15 fires when the run's failure rate is at least 15 points above the average. - Minimum sample. At least 15 of the 20 runs in the window must have
total_tests > 0. Below that the check is skipped. - Default threshold. 15.
stale_skipped_tests
- Pre-conditions. Run must be
processedand have at least one skipped case. - Computation. For each skipped case in the new run, find the most recent same-tag run within the past year where the case ran with any status other than skipped. The streak starts at the first skipped run after that, or at the earliest skipped run in the year when there is none. If the streak started at least
thresholddays before the new run, the case is included. - Once per streak. A case already reported for its current streak is left out. A case that runs again in a later checked run ends its streak, and a new streak is reported again once it reaches the threshold.
- Grouping. Every case that reaches the threshold on the same run goes into one event.
- Default threshold. 30 days. Admins can set it anywhere from 1 day up to the length of your plan's history, which Plans and billing lists. When a streak began before the history window, the event leaves out its starting run and counts the age from the start of the window.
The 20-run window and tag matching
The first four checks look at the last 20 processed runs with the same set of tags as the current run. Tags have to match exactly, so a run tagged smoke and linux isn't compared with runs tagged only smoke. Every check requires a full window of 20 and is skipped otherwise. performance_regression, test_flakiness, and skipped_test_count_creep count the current run within that window, so they need 19 prior same-tag runs. failure_rate_spike excludes the current run from its own window, so it needs 20.
Alerts and your plan's history
The four checks that look at the last 20 same-tag runs use those runs even when some are older than your plan's history, so alerts keep working on projects that don't run often. The alert pages, counts, and the alerts API only list events on runs within the history window, though, so an event from an older run drops out of view without being deleted.
Notification cooldown
For 24 hours after an alert sends a notification, TestNod still records new events on it but doesn't notify anyone about them by email, Slack, or webhook. stale_skipped_tests is exempt, because it reports each skip streak once.
Alerts start turned off
All five alert types are off for a new project, and an admin turns on the ones you want from the alert configuration page. See Configuring alerts.
What each alert event records
Every alert event stores the details of what triggered it, and each alert type's page describes them: