Get Run Error Clusters
get_run_error_clustersGroup one test run's failing tests by shared error signature to identify distinct failures, affected tests, and error categories. Filter by failed or flaky status to focus analysis.
Instructions
Group ONE run's failing tests by shared error signature (normalized error fingerprint), computed for that run only. Returns error clusters (each = one signature + its affected tests + an error category), an unclustered bucket for blank/unfingerprintable errors, a per-category rollup, and run totals. Failed/timed-out tests cluster on their final-attempt error; flaky tests cluster on the error they recovered from (pre-recovery). Categories: assertion, timeout, element_not_found, network, filesystem, other. Use this to answer "what are the distinct failures in this run?" or "which error affected the most tests?" — it is far cheaper than paging every failed case. Optionally narrow with status="failed" or status="flaky" (default "all"). Workflow: list_testruns() → pick a testrun_id → get_run_error_clusters().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Which contributing tests populate the clusters (default "all") | |
| projectId | Yes | Project ID (e.g. project_<id>) | |
| testrun_id | Yes | The test run ID to cluster errors for (single run) |