Skip to content

fix(pr-pipeline): remove needs-session when its stop's failing status clears #11114

Closed as not planned

Description

@kyle-sexton

Refs: #10954

Problem

ci-fix-escalated routes fail with label: needs-session (#10954). The same reason ends a flaky-only stop at rung 0 (apply-patch.test.mjs, "flaky at rung 0"), which the fix-ci dispatcher retries on the same head. When that retry goes green, report-escalation.sh clear removes the failing pr-unblock/fix-ci status, but nothing removes needs-session: clear-escalations.mjs sweeps only the human-gated label. A green pull request keeps needs-session, and on a Dependabot pull request that label is in labels-absent for review-dependency and apply-dependency-patch (docs/conventions/pr-pipeline.yaml), so its dependency review stops until a session removes the label.

Done when

  • A stop whose failing status clears also removes the needs-session label its route added, either in the report-stop-status clear path or in the clear-escalations sweep, without adding a person.
  • A test covers a rung-0 flaky ci-fix-escalated stop whose same-head retry passes: the label is gone afterwards.
  • A needs-session stop whose cause is still present keeps the label.

🤖 Generated with Claude Code

Activity

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

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Duplicate of #11087.

    I understood this as: when a ci-fix-escalated rung-0 flaky stop's same-head retry passes and the failing pr-unblock/fix-ci status clears, the needs-session label stays on the pull request. On Dependabot pull requests that label blocks dependency review. The fix would remove the label on clear, with tests for the flaky-retry case and for a stop whose cause is still present. #11087 has the same title and appears to ask for the same change, so please continue there.

    Automated triage, applied by the lanes App.

  3. added
    duplicate
    and removed
    needs-triage
    on Oct 30, 2026
  4. added
    status: ready
    status: confirmed
    and removed
    status: ready
    on Oct 30, 2026
  5. melodic-automation-lanes commented on Oct 30, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: it carries duplicate. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. melodic-automation-lanes commented on Oct 30, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: confirmed; its comment says why.

  7. kyle-sexton commented on Oct 31, 2026

    @kyle-sexton
    MemberAuthor

    Closing as a duplicate of #11087, as intake found: both ask that a same-head fix-ci retry landing after a rung-0 ci-fix-escalated stop leaves the pull request without needs-session, and #11087 was filed first and is still open. This issue's one extra criterion, that a needs-session stop whose cause is still present keeps the label, belongs with that fix. origin/main does not have the fix yet: the label's only mentions in .github/scripts/pr-unblock/report-escalation.sh:15 and .github/scripts/pr-merge/clear-escalations.mjs:223 are comments, and neither removes it.

  8. kyle-sexton commented on Oct 31, 2026

    @kyle-sexton
    MemberAuthor

    Closing as a duplicate of #11087, whose decision record now carries this issue's three criteria.

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

    duplicatestatus: confirmed

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions