Skip to content

ci(routed-rust): avoid full Rust gates on unrelated PR label removals #4380

Closed

Description

@EffortlessSteven

Work item and current premise

A windows-ci label removal on PR #4370 started Routed Rust Small run 36387999518 at old code head 5828498d846542d8551e0b87ec17ff8b18118564. At observation it was in_progress in the hosted Required Rust tests step. The later final docs-head run 36388035288 for a92357254445800304993ff0b358bb9f078b298b was pending with no jobs. This is a time-bound observation, not a claim that either run has since reached a terminal result. A cancellation request for the old run did not promptly yield a terminal status; distinguish that operational delay from successful cancellation or gate proof.

On current main 7d3f2339bece5f3b687330d93b5a7b013d8e9ffd, routed-rust.yml:3-16 subscribes to every labeled and unlabeled PR event. Its same-PR concurrency group cancels in-progress work only for synchronize. The full Rust jobs select by runner and docs-only state, with no label-action filter; a windows-ci removal therefore routes the full required gate even though the label's documented effect is only the advisory Windows lane. windows-advisory.yml itself has no unlabeled trigger. Label-only routing can spend a full hosted Rust run on unchanged code, occupy the required result's concurrency group, and delay exact-head proof on a later commit.

Linked authority and ownership

Expected files and responsibility

Primary: .github/workflows/routed-rust.yml. Nearby focused workflow-policy fixture/checker and docs/CI.md or policy/ci-budget.toml only if needed to express the event matrix and cost boundary. Preserve .github/workflows/rust-gates.yml as the single gate-list owner.

Required behavior and acceptance

  1. A windows-ci add/remove on a PR with unchanged code does not launch another full Rust gate. The Windows advisory lane remains opt-in when the label is present, and label removal does not imply Windows proof.
  2. opened, reopened, synchronize, and main pushes retain their current required Rust or docs-gate proof. A new commit still receives a terminal, exact-head Ripr Rust Small Result; no skipped-label event may manufacture a green required result for untested code.
  3. full-ci label transitions retain their intentional advisory/report effect. Classify other labels (release-check, coverage, etc.) by actual workflow consumers before narrowing triggers. A label transition that changes a required policy input must still route appropriate current-head evidence.
  4. If a label-only event is ignored, its treatment of the protected result context and same-PR concurrency is explicit and tested. A later synchronize cannot remain indefinitely held behind a stale label-event run by an avoidable workflow design. Keep cancellation/timeout outcomes NOT_PROVEN until terminal.
  5. A focused event/action/label matrix rejects the old unconditional unlabeled full-gate route and accepts the intended exceptions. A real canary or current GitHub run receipt confirms the static route without claiming a skipped event as executed proof.

Cheap proof commands

actionlint .github/workflows/routed-rust.yml
cargo xtask check-workflows
git diff --check

Add a fixture/static route test over representative opened, synchronize, windows-ci labeled/unlabeled, and full-ci labeled/unlabeled payloads; run that focused check before a hosted canary. Record run IDs, event/action, head SHA, route result, exact required context, and whether any full gate job actually started. Do not duplicate the full Cargo matrix locally for a workflow routing edit.

Support tier, policy, non-goals, claim boundary

Support-tier impact: none. Policy impact: document any changed label effect and concurrency tradeoff in docs/CI.md and CI-budget policy if the routing contract changes. Non-goals: altering Rust gate contents, replacing the router, merge-queue/settings changes, global cancellation switches, deleting in-flight runs, or weakening branch protection. A successful fix proves event routing and removes avoidable duplicate work; it does not prove GitHub will always terminalize an accepted cancellation promptly, nor qualify a release candidate.

Rollback: restore the prior trigger/condition after capturing the failed event-matrix receipt; re-enable the previous full gate for all label events if the protected result or full-ci semantics cannot be preserved.

Activity

  1. added
    status/needs-work
    on Sep 28, 2026
  2. EffortlessSteven commented on Sep 29, 2026

    @EffortlessSteven
    MemberAuthor

    Acceptance reconciliation

    Landed: PR #4871 squash-merged to main as 8d5aedc8589ce3d4a307c97f8f342dd7d3a25a5d (candidate head ada2f6181f2cc8dce2bf332b8e63eb6bc6308a9a). GitHub closed this issue via Closes #4380. No parent issue.

    Acceptance covered:

    • routed-rust.yml no longer subscribes to unlabeled; a windows-ci (or other) label removal does not start Routed Rust Small or occupy Ripr Rust Small Result.
    • windows-ci / coverage / release-check labeled events skip rust-gates and post Ripr Rust Small Ignored Label Event on a -label-ignore concurrency group.
    • opened / reopened / synchronize / main-push / workflow_dispatch still launch the required gate; full-ci labeled still refreshes advisory reports.
    • cancel-in-progress remains synchronize-only. rust-gates.yml and windows-advisory.yml were not changed.

    Proof: cargo test -p xtask routed_rust_; cargo xtask check-workflows; hosted Ripr Rust Small Result success on run 36533575704 for ada2f6181.

    Residual / non-claim:

    No further owner on this claim.

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

    status/needs-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions