Skip to content

fix: PR hygiene runs every event to the end and lets the newest payload decide (port of #526, #529) - #530

Merged
CaffeinatedCoder merged 1 commit into
release/10.xfrom
fix/526-hygiene-cancels-10.x
Oct 29, 2026
Merged

CaffeinatedCoder merged 1 commit into
release/10.xfrom
fix/526-hygiene-cancels-10.x

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #529

Port of #528 (#526) to release/10.x, cherry-picked with -x. It applies with no conflict, because pr-hygiene.yml is the same on both lines.

Problem

The hygiene workflow runs from the PR's base. So PRs into release/10.x keep cancelling their own hygiene runs, and keep showing a red commit status beside green checks. #520 and #524 are two examples.

Change

The same as #528. There's no concurrency group. Each run waits 20 s, then passes as superseded when the PR's head, base, labels or description changed after its event. Otherwise it runs pr-hygiene.sh, which is unchanged.

Tests

The measurements on #527 are in #528 and in the workflow's header. This PR's own hygiene runs are the check on this line.

🤖 Generated with Claude Code

…ad decide (#526)

The concurrency group cancelled every run still going when the next event
arrived, and GitHub counts a cancelled run in the commit's status: 61 of the
last 100 merged PRs showed FAILURE for nothing but cancelled hygiene runs.

The group is gone, so no run is cancelled. Each run waits 20 s for a burst
of events to settle, then compares its payload's head, base, labels and
description with the PR as it is now. If any changed, the event that changed
it started a newer run, so this one passes without checking. Measured on the
throwaway PR #527; the numbers are in the workflow's header.

Found-By: IS
Defect-Class: PKG
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 0c0898f)
@CaffeinatedCoder CaffeinatedCoder added this to the 10.5.0 milestone Oct 29, 2026
@CaffeinatedCoder CaffeinatedCoder added bug Something isn't working area/release Versioning, changelogs, release wiring severity/low Cosmetic, message or documentation-level difference labels Oct 29, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit fff652f into release/10.x Oct 29, 2026
13 checks passed
@CaffeinatedCoder
CaffeinatedCoder deleted the fix/526-hygiene-cancels-10.x branch October 29, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, release wiring bug Something isn't working severity/low Cosmetic, message or documentation-level difference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant