Skip to content

pr-merge: stop counting infra-caused merge-queue removals toward the ejection cap #17489

Description

@kyle-sexton

Owner decision record for #17451, which changes merge.max-queue-ejections (an owner-kept cap).

Decisions

Decision: a merge-queue removal whose every failed job failed on those causes alone does not count toward merge.max-queue-ejections once the named reset has passed, or one hour after the removal when none is named; every real check failure still counts.

Done when

Activity

  1. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  2. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: the pr-merge ejection counting script and its tests, the pr-pipeline README and CHANGELOG, and the babysit-prs safety text. Maintainers and the merge lanes read or run these.
    Reversible: yes; revert the change, which restores the narrower rate-limit-only exclusion.
    Open questions: none

    I understand the request this way. A merge-queue removal should stop counting toward merge.max-queue-ejections when every failed job failed only on an infra cause: rate limit, read floor, verify-unreadable, kill switch, lost runner or main-red. The removal counts again until the named reset has passed, or until one hour after the removal when none is named. Any real check failure, or a run that cannot be read, still counts.

    The body and the refinement comment already give exact acceptance criteria, so nothing is missing. The change is carried by #17451, and this issue is done when that pull request merges. No open issue or merged pull request in the lists I was given asks for the same thing. #15546 is related earlier work that this extends.

    Automated triage. A maintainer reviews it.

  3. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: open pull request #17451 is for it.

  4. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: A merge-queue removal whose every failed job failed only on an infra cause (rate limit, read floor, verify-unreadable, kill switch, lost runner) or main-red stops counting toward merge.max-queue-ejections once the named reset has passed, or one hour after the removal when none is named, while every real check failure still counts.

    Acceptance criteria

    • The ejection counting in .github/scripts/pr-merge/enable-auto-merge.mjs skips a removal whose every failed job failed on rate limit, read floor, verify-unreadable, kill switch, lost runner or main-red alone
    • A skipped removal counts again until the named reset has passed, or until one hour after the removal when no reset is named
    • A removal with any real check failure still counts toward merge.max-queue-ejections
    • A removal whose run or annotations cannot be read still counts, as in the existing rate-limit rule
    • Tests in .github/scripts/pr-merge/enable-auto-merge.test.mjs cover each infra cause, main-red, the reset and one-hour boundaries, and a mixed real-plus-infra failure that still counts
    • The Repeat queue ejections paragraph in docs/conventions/pr-pipeline/README.md and the babysit-prs safety.md ejection text describe the wider exclusion
    • docs/conventions/pr-pipeline/CHANGELOG.md has a new entry for the change, following the 9.25.3 rate-limit entry
    • The existing pr-merge test suite passes
    • Pull request #​17451 is merged

    External state: none

    Dependencies

    • #​17451: the pull request that carries the change; this issue is done when it merges

    Related work

    Sources read

    • /home/runner/work/claude-code-plugins/claude-code-plugins/refine-data/context.json: issue records owner decisions for #​17451 and states the rule; no task list
    • docs/conventions/pr-pipeline/CHANGELOG.md:472: 9.25.3 stopped counting a removal that failed only CI Status on a rate limit once it reset
    • docs/conventions/pr-pipeline/README.md:1799: Repeat queue ejections paragraph covers only the rate-limit exclusion now
    • docs/conventions/pr-pipeline/README.md:1802: the current exclusion is limited to CI Status failing on a rate limit alone
    • plugins/source-control/skills/babysit-prs/reference/safety.md:1196: ejection cap text for babysit-prs
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/scripts/pr-merge/enable-auto-merge.mjs:95: ejectionHold against merge.max-queue-ejections
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/scripts/pr-merge/enable-auto-merge.test.mjs:2555: existing tests for the cap

    Automated refinement by the lanes App. Intake triages the issue again with it.

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

    Fields

    Work status

    deferred

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions