Skip to content

guardrails: block-unresolved-pr-merge counts cancelled, superseded check runs as failing #8401

Closed as not planned

Description

@kyle-sexton

No related issue: new defect report.

Summary

block-unresolved-pr-merge.sh (guardrails 0.52.0) refuses a guarded merge as "Failing checks: test-bash, test-python" when those check runs were cancelled and replaced by successful runs under a different name.

Evidence

PR #8397, head fcdfcf0f4185f05d50264ed9d64b0572ac1f025c, check runs on the head (GET commits/<sha>/check-runs):

started_at name conclusion
05:42:12Z test-bash cancelled
05:42:12Z test-python cancelled
05:42:12Z ci-status cancelled
05:42:42Z test-bash (0) success
05:42:42Z test-python (0) success
05:45:43Z ci-status success

The required check (ci-status) is green on its newest run, and pr-merge's own merge check is SUCCESS. The hook still blocks:

BLOCKED: melodic-software/claude-code-plugins#8397 is not ready to merge ...
Failing checks: test-bash, test-python

Expected

A cancelled check run whose workflow later produced a passing run (or whose ci-status aggregate is green on a newer run) does not count as failing. At minimum, cancelled should not be reported as failing when a newer ci-status run on the same head succeeded.

Fix

Per docs/conventions/hook-precision/README.md: land the fix with a stay-quiet test (cancelled superseded runs plus green ci-status → merge allowed) that fails before the fix.

Related

Blocks the guarded merge of #8397 (owner-decided, green).

Activity

  1. added
    needs-triage
    on Oct 19, 2026
  2. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    Thanks for the report. Automated triage handed this issue to a maintainer.

    Proposed work class: work-class: scoped
    Basis: automated intake triage; a maintainer confirms or changes it.

    Automated triage. A maintainer reviews it.

  3. added
    needs-human
    and removed
    needs-triage
    on Oct 19, 2026
  4. kyle-sexton commented on Oct 19, 2026

    @kyle-sexton
    MemberAuthor

    Closing as a duplicate of #8255, with the owner's approval (2026-10-19, "go w/ recommendations"). The check-run evidence moved to #8255 (comment).

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

    needs-human

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions