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
Name a Job Record Stuck in Progress on a Completed Run #3362
A workflow run can conclude success while one of its job records stays in_progress indefinitely. When that job is the required aggregator, the pull request reads mergeStateStatus: BLOCKED with every other check green. pr_review.py status and wait report it as a check still running (checks=11/12), and a bounded gh pr checks --watch times out on it. Nothing tells the driver that the run itself already finished.
Repro (shape)
gh run view <run-id> --json status,conclusion,jobs returns completed success, with one job in_progress and no conclusion.
The pull request's check rollup shows that job as IN_PROGRESS, and the merge stays BLOCKED.
A new push to the head starts a fresh run, which completes normally, and the stale record stops mattering.
This shape has been met twice in one downstream repository, once on a non-required job and once on the required aggregator.
Proposed
Have status and wait detect a check whose job is in_progress while its run is completed, and name it as a stale job record rather than a running check, so the driver knows the wait cannot end by waiting longer. The remedies are a re-run of that job or a new head, and the digest could name them.
Activity
Name a Stale Job Record on a Completed Run in pr_review.py (#3662)