Failure groups

Failure groups puts failures that share one error together, across every run of a window, so one root cause shows once: "this error broke 12 tests in 9 runs since Tuesday". Open it when many tests are red and you want to know how many problems there really are, or to see whether a failure is new or keeps coming back.

Where to find it

Sidebar, group Monitor, Failure groups (route /failures). The Why it is red panel of a run links each of its groups here. Every member of the project can read it.

What it shows

A short explanation and the window buttons 7 days, 14 days (the default), 30 days and 90 days. The window, the open group and the filter are in the address (/failures?days=30&group=…&several=true), so a link keeps them.

Under the header: how many groups the window holds and from how many failed results, and the checkbox Only errors that broke several tests.

Groups

One card per group, most failures first:

  • N tests failed with this error, then the number of failures and runs, an Environment badge when the message looks like an outage (connection refused, timeout, 502/503/504, the browser or grid not starting…), and when it was first and last seen in the window.
  • An example message (the newest), and under it the group's signature — what the failures have in common.

Click a card to open it:

  • Suspect: the newest run the group appeared in is diagnosed (as on its run page), and for this group's tests you see the kinds of failure and the commits the diagnosis names, each with how many of the group's tests it reaches and the first file it changed. When the commits cannot be read, it says so. Open the newest run's diagnosis goes to that run.
  • Tests: the tests that failed with it, most failures first (the first 100).
  • Runs: the runs it appeared in, newest first, with branch, commit and how many tests failed with it there (the newest 50).

How it works

  • Signature. When a failed result arrives, its signature is stored with it. Two failures with the same signature are one group.
    • The head: the first line of the message that is not a stack frame, with what changes from run to run masked: UUIDs, timestamps, hex ids and addresses (0x7f…, Order@1b6d3586), URLs, IP addresses and hosts, file paths, quoted values ('…', "…"), long random tokens, and numbers (also with a unit: 5000ms becomes <n>ms; a digit inside a name such as test2 stays). Colour codes are dropped. The exception type stays part of it (TypeError: …).
    • A generic assertion (expect(received).toBe(expected), a bare AssertionError, expected … to …) says too little alone, so the next informative line (Expected: …, Locator: …) is added.
    • Frames: when the message or the runner's stack carries frames (JavaScript, Python, Java/Kotlin, .NET, Go), up to two frames of your own code are added, innermost first, as function@file — never line numbers, which move with every edit above them. Frames of test frameworks, the runtime and third-party packages (node_modules, site-packages, java.*, org.junit.*, System.*…) never count, and neither do test files themselves, unless the head is a generic assertion (then where it was asserted tells two failures apart). So twelve tests failing inside one helper share a group; the twelve test functions that called it are not part of it.
    • Playwright, Vitest and pytest send the failure's stack apart from the message for this; other runners' messages are used as they arrive (Jest and the Java agents fold the stack into the message).
  • The window reads the project's failed results, newest first, up to 20,000; when it holds more the page says so. Results stored before signatures existed are signed from their message when read (up to 5,000 of them).
  • A failure with no message is not a group.
  • On the run page, each group of the run says whether it is new in this run or seen in N runs since a date, over the project's 30 days up to that run, and which commit most of its tests name first.
  • Everything is read inside your current project: a group id from another project is not found.

What you can do

  • Pick the window and Only errors that broke several tests.
  • Open a group; open the newest run's diagnosis or any of its runs.
  • API: GET /v1/diagnosis/groups?days=&min_tests=&limit= and GET /v1/diagnosis/groups/<id>?days= (dashboard login or API token); CI on its agent token: GET /v1/agent/failure-groups. MCP: the failure_groups tool (with group for one group in full).

Limits and good to know

  • The window is 1–90 days through the API; the screen offers 7, 14, 30 and 90.
  • Masking is deliberately coarse: Expected 'admin' and Expected 'guest' are one group. Two different problems with the same masked message and no frames of your own code end up together; the example message and the test list show it.
  • A signature is fixed when the result arrives; a later change of the rules applies to new results.