You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pr_review.py Counts a Check Run a Rerun on the Same Head Superseded #2327
scripts/pr_review.py counts a check run that a later run of the same check on the same head has superseded. In that state, wait returns at once on a failure that no longer gates anything.
Reproduction, as seen on ptr727/KiCadLibrary#70 on 2026-10-04:
The pull request is closed and reopened to rerun the checks with the label. A new Test pull request action run starts on the same head SHA.
While the new run is in progress, pr_review.py wait returns after 1 second with status=CHECKS_NOT_MERGEABLE and CHECK FAILED ('Validate sources job / Lint sources job', COMPLETED/FAILURE). That check belongs to the superseded run.
After the new run completes successfully and GitHub reports mergeStateStatus: CLEAN, status still prints checks=31/33 stuck=FAILED with the same superseded failure.
Expected
For each check name on the head, only the newest run counts. wait keeps waiting while that newest run is in progress, and status reports the newest run's conclusion, so a closed-and-reopened pull request reads green once its rerun passes.
Activity
Count Only the Newest Check Suite Per Check in the Review Digest (#2337)