Skip to content

[PM-33888] ci: Fix labeler workflow race condition - #7498

Merged
vvolkgang merged 3 commits into
mainfrom
vvolkgang/group-labeler
Oct 22, 2026
Merged

vvolkgang merged 3 commits into
mainfrom
vvolkgang/group-labeler

Conversation

@vvolkgang

Copy link
Copy Markdown
Member

🎟️ Tracking

PM-33888

πŸ“” Objective

Fixes a race in SDLC / Labeler on PRs opened with a label already applied. GitHub starts an opened run and a labeled run together. The labeled run enforces before the opened run has applied the correct labels and fails. The PR check reflects that most recent, failed run even though the opened run passed.

Adds a per-PR concurrency group with queue: max, so runs are queued rather than overlapping. cancel-in-progress stays off so label/edit events can't cancel an in-progress labeling run.

If GitHub ever starts the runs in the opposite order, the labeled run can still fail once. The opened run then labels the PR and passes, so the PR ends up green.

πŸ€– AI-assisted review

Local review (Standard): APPROVE.

@vvolkgang vvolkgang added t:ci Change Type - Updates to automated workflows ai-review Request a Claude code review labels Oct 20, 2026
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

πŸ€– Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR adds a per-PR concurrency group with queue: max and cancel-in-progress: false to SDLC / Labeler. The opened and labeled runs on a PR now queue instead of overlapping, which fixes the race described in PM-33888. The group key uses the same github.event.pull_request.number || inputs.pr-number expression as the rest of the workflow, so workflow_dispatch runs for a PR share a queue with that PR's event-triggered runs. The earlier thread on the unused event-labels input was resolved by the author's explanation (workflow inputs already appear in the raw logs), so it is not raised again.

@vvolkgang
vvolkgang marked this pull request as ready for review October 22, 2026 15:00
@vvolkgang
vvolkgang requested a review from a team as a code owner October 22, 2026 15:01
@vvolkgang
vvolkgang added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 69fa081 Oct 22, 2026
77 of 84 checks passed
@vvolkgang
vvolkgang deleted the vvolkgang/group-labeler branch October 22, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review t:ci Change Type - Updates to automated workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants