Skip to content

ref(ci): Dedupe matrix test failures in CI failure reporter#21538

Merged
mydea merged 1 commit into
developfrom
feat/dedupe-ci-failure-matrix-issues
Jun 15, 2026
Merged

ref(ci): Dedupe matrix test failures in CI failure reporter#21538
mydea merged 1 commit into
developfrom
feat/dedupe-ci-failure-matrix-issues

Conversation

@mydea

@mydea mydea commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

A flaky test usually fails on several matrix jobs in the same run (e.g. Node (22) Integration Tests, Node (24) Integration Tests, Node (24) (TS 3.8) Integration Tests). Because the issue title embedded the full job name, each matrix variant opened its own issue for what is really the same flaky test.

report-ci-failures.mjs now keys the issue title on a normalized job name with only version-like matrix parentheticals stripped — a bare number (node version) or a TS x.y bracket:

Job name Normalized
Node (22) Integration Tests Node Integration Tests
Node (24) Integration Tests Node Integration Tests
Node (24) (TS 3.8) Integration Tests Node Integration Tests

Other parentheticals are left intact, so genuinely-distinct jobs don't get merged — e.g. E2E (nextjs-app, 20) stays as-is.

Also dedupes titles within a single run — the existing-issues list is fetched once up front and wouldn't include an issue created moments earlier in the same run, so without this the second matrix job would still open a duplicate.

The issue body keeps the concrete job name and run link of the variant that actually failed, so the link still points at a real failing run.

@mydea mydea requested review from chargome and nicohrubec June 15, 2026 12:40
A flaky test usually fails on several matrix jobs at once (e.g. Node (22),
Node (24), Node (24) (TS 3.8) Integration Tests). Because the issue title
embedded the full job name, each variant opened a separate issue.

Key the issue title on a normalized job name with version-like matrix
parentheticals stripped — a bare number (node version) or a `TS x.y` bracket —
so all variants of the same job+test collapse to one issue. Other parentheticals
(e.g. `(nextjs-app, 20)`) are left intact. Also dedupe titles handled within a
single run, since the existing-issues list is fetched once and wouldn't include
issues created earlier in the same run. The issue body keeps the concrete job
name and run link of the variant that failed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mydea mydea force-pushed the feat/dedupe-ci-failure-matrix-issues branch from 0b48729 to da7443d Compare June 15, 2026 12:43
@mydea mydea marked this pull request as ready for review June 15, 2026 13:16
@mydea mydea merged commit d3d9704 into develop Jun 15, 2026
41 checks passed
@mydea mydea deleted the feat/dedupe-ci-failure-matrix-issues branch June 15, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants