Skip to content

fix(ci): queue label runs instead of cancelling them - #429

Merged
aitianshi merged 2 commits into
mainfrom
fix/pr-labels-cancelled
Nov 25, 2026
Merged

aitianshi merged 2 commits into
mainfrom
fix/pr-labels-cancelled

Conversation

@aitianshi

@aitianshi aitianshi commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #423

What

  • An event on one pull request cancelled the label run of another: test(standard): retry a restore while the packer holds the lock #425 got two cancelled checks, with tests and judge passed.
  • Label runs now wait their turn (queue: max). cancel-in-progress: false alone still cancels an older waiting run.
  • Still one at a time: each run writes the labels of every pull request.

Verified

  • actionlint 1.7.12, the latest, rejects queue (Actionlint does not know about queue: key for concurrency rhysd/actionlint#657): tests ignores that one message. All workflows pass, a misspelled key still fails.
  • GitHub's docs and workflow parser schema accept queue: max on a job.
  • The script's jq, tests passed: a cancelled or pending label check is not "ci failing", a failed one is.
  • Not checked: the queue itself. pull_request_target runs main's copy, so only after the merge.

Risk

  • Superseded runs now execute, about 20 to 70 seconds each: label stays pending longer in a burst.
  • Past 100 waiting, GitHub still cancels.
  • Cancelled checks already on commits stay until re-run.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5: investigation, code, checks

@github-actions github-actions Bot added the ci failing A check failed on its latest commit label Nov 25, 2026
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

🔴 PR judge · 3 of 5 yes · #429 ↔ #423

Merge risk ⛔ SEVERE the judge's reading of the diff; a workflow changed: .github/workflows/pr-labels.yml
Depth 🔴 EXTREME the deepest path is .github/workflows/pr-labels.yml
Question Verdict
Changes do what the issue asks · 0 of 1 criteria ⚠️ partly
Issue and pull request describe the same change ❌ no
Description matches the diff ✅ yes
Diff stays in scope ✅ yes
Risk named in the description ✅ yes
Before and after shown –
Acceptance criteria, 0 of 1 met
# Criterion Verdict
1 ## What - The pull request list does not show which ones conflict, fail CI, wait for another or wait for a reviewer. - … ⚠️ partial

The issue has no ## Acceptance list, so it was judged whole.

Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/, .agents/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit and removed ci failing A check failed on its latest commit labels Nov 25, 2026
@aitianshi
aitianshi merged commit 62f01bd into main Nov 25, 2026
4 checks passed
@aitianshi
aitianshi deleted the fix/pr-labels-cancelled branch November 25, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant