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
Read a Superseded Run's Failed Aggregator as Superseded in pr_review.py wait #3254
scripts/pr_review.py wait reads a failed check from a superseded workflow run as a verdict on the current head, and exits 44 (CHECKS_NOT_MERGEABLE) at once while the run that replaces it is still in progress.
The shape that produced it, in a downstream repository:
A pull request is opened, and its first pull_request run starts.
The pull request is closed and reopened, the documented way to make CI pick up a label added after creation. GitHub cancels the first run, whose aggregator job, Check pull request workflow status job, then fails over the cancelled jobs.
The reopen starts a second run on the same head SHA.
wait reports CHECK FAILED ('Check pull request workflow status job', COMPLETED/FAILURE): a verdict rather than a stuck check and exits 44 after about a second. The second run's jobs are still IN_PROGRESS, and its own aggregator has not posted yet.
The second run finished green, and its aggregator then replaced the failed one, so status read checks=12/12 merge=CLEAN. A bounded gh run watch <run> --exit-status on the second run was the workaround.
Expected
Where the same head has a newer run of the same workflow, wait reads that run's checks rather than a cancelled run's. Failing that, it should report a failed check from a cancelled run as superseded rather than as a verdict.
Acceptance
wait on a head whose first run was cancelled and whose second run is in progress keeps waiting, or names the newer run, rather than exiting 44.
Activity
Read a Superseded Run's Failed Aggregator as Superseded in pr_review.…