Skip to content

Name a Job Record Stuck in Progress on a Completed Run #3362

Closed

Description

@ptr727

Problem

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions