Performance regression alerts for CI test runs
TestNod's performance regression alert tracks the total duration of your test runs and fires an alert when a new run exceeds the rolling median of recent same-tag runs by more than a configurable percentage. The check runs automatically against every new test run that finishes processing, catching gradual slowdowns that accumulate over weeks or months before they become normal.
What triggers the alert
When a test run finishes processing, TestNod takes the 20 most recent processed runs from the same project that share the same set of tags as the new run, not counting the new run itself, computes the median total duration across those runs, and compares the new run against that median. Runs with no tags are compared against other runs with no tags.
The alert fires when both of these are true:
new run duration > median * (1 + threshold / 100)
new run duration - median >= 5 seconds
The default threshold is 15%, meaning a new run triggers the alert when it takes more than 15% longer than the median of the recent baseline. The 5-second minimum keeps short suites from firing on small changes, so a suite that usually takes 2 seconds doesn't trigger an alert by taking 2.4.
A run's total duration is the sum of the time spent in each of its test suites. If your CI splits tests across parallel jobs or shards, the alert measures total test time, not how long the CI job took from start to finish.
The 20-run baseline
The check needs at least 20 processed runs on the same set of tags before it can fire on a project. Until a tag combination reaches that count, TestNod doesn't check its runs or record events, and the baseline builds up as you keep uploading runs.
The window rolls forward as newer runs come in and older ones drop off, and the median moves with it. A slowdown that persists eventually stops firing, since once it has held for 20 runs it is the baseline.
A worked example
Say your project runs its CI suite on every push to main on Linux, with each run tagged ci:main and os:linux. You're on the default 15% threshold.
The 20 most recent runs with that tag set finished in these durations (in seconds):
118, 120, 121, 122, 122, 123, 124, 124, 125, 125,
126, 126, 127, 128, 128, 130, 131, 132, 134, 140
The median across those 20 values is the average of the 10th and 11th sorted entries, which works out to 125.5 seconds. The 15% threshold puts the cutoff at 125.5 * 1.15 = 144.3 seconds.
A new run finishes at 158.2 seconds with the same tag set. Because 158.2 is above 144.3 and 32.7 seconds over the median, past the 5-second minimum, the alert fires with a recorded increase of 26.06% over the median.
What the alert event shows
When the alert fires, the event recorded against it shows the new run's total duration, the median it was compared against, the percentage increase over the median, and the tag set used for the comparison. When the new run has more tests than the baseline usually does, the event also says how much the suite grew, for example "while the suite grew from 310 to 412 tests". Longer runs are expected after a batch of new tests, so that note helps you tell a larger suite apart from tests that got slower. The alert detail page renders these alongside a link back to the triggering run so you can open it and dig into which test cases got slower.

Tuning the regression threshold
The 15% default is high enough that day-to-day variation in run time doesn't trigger it. Two cases where you might change it:
- Too many alerts. If your run times vary a lot, often because it depends on the network or shares CI runners with other workloads, raise the threshold to 25% or 30%.
- Missing real regressions. If your suite is fast and stable enough that smaller slowdowns matter, lower the threshold to 10%. Expect more alerts in return.
Project admins set the threshold from the alert configuration page. See Configuring alerts for the walkthrough.

What the alert does not catch
- Slowdowns inside a single test. This alert rolls up to total run duration. Use the What Changed panel's "significantly slower" category for slowdowns in specific cases inside one run.
- Slowdowns on a brand-new tag set. A tag combination that hasn't appeared 20 times yet has no baseline, so its first 20 runs only build one.
- Drifts that span different tag sets. Runs tagged
ci:prare only compared against otherci:prruns. Ifci:prandci:mainsuites both got slower at the same time, you'll get separate alerts for each.
Where to start
An admin can enable the alert on the alert configuration page and set the threshold based on how much your run times vary. Once a tag set has 20 runs of history, the next run that crosses the threshold records an event on the alert detail page and sends you a notification email.