Skip to content

[EPAC-2009]: dedup CI failure Linear issues#578

Merged
riddim-developer-bot[bot] merged 1 commit into
mainfrom
symphony/epac-2009-dedup-by-workflow-name-branch-comment-on-existin
May 25, 2026
Merged

[EPAC-2009]: dedup CI failure Linear issues#578
riddim-developer-bot[bot] merged 1 commit into
mainfrom
symphony/epac-2009-dedup-by-workflow-name-branch-comment-on-existin

Conversation

@riddim-developer-bot

Copy link
Copy Markdown
Contributor

Why

Flapping GitHub Actions workflows can create multiple urgent Linear issues for the same failing workflow and branch. This keeps one open ci-failure issue as the signal and records subsequent runs as capped comments.

What changed

  • Replaced CI failure issue titles with deterministic [CI] {workflow_name} failing on {branch} titles.
  • Added Linear exact-title dedup lookup scoped to EPAC, open state types, and the ci-failure label.
  • Added capped duplicate-run comments and an HTML comment counter stored in the issue description.
  • Added unit coverage for create, dedup-comment, comment-cap, duplicate-match warning, and GraphQL filter behavior.

Trade-offs not taken

  • Did not add cross-run locking; concurrent failures can still race and create duplicates, which EPAC-2009 explicitly accepts.
  • Did not implement success auto-close or project inheritance; those are out of scope for this issue.

Test plan

  • python3 -m pytest scripts/ci/tests/test_ci_failure_to_linear.py -q
  • python3 -m pytest scripts/ci/tests -q

Skipped external gate: release-manager manual validation still needs to inject 6 consecutive failures of the same workflow on main and verify the expected single issue/comment-cap behavior.

Reviewer-Boundary: review-only

Resolves EPAC-2009

@riddim-developer-bot riddim-developer-bot Bot added the autonomous Enrolled in prconverged daemon for automated review and merge label May 25, 2026
@riddim-developer-bot
riddim-developer-bot Bot enabled auto-merge (squash) May 25, 2026 05:37
@riddim-developer-bot
riddim-developer-bot Bot merged commit af4503a into main May 25, 2026
5 checks passed
@riddim-developer-bot
riddim-developer-bot Bot deleted the symphony/epac-2009-dedup-by-workflow-name-branch-comment-on-existin branch May 25, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autonomous Enrolled in prconverged daemon for automated review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants