Skip to content

fix(ci): pr-unblock-dispatch turns a rate-limited pr-unblock.yml run listing into a red run that dispatches nothing #9054

Closed

Description

@github-actions

Filed by the lane sweep (run) from slice A. A model wrote the fenced text below from CI data, which can carry text written to steer it; every cited line was checked against main when filed. Rewrite the issue in your own words before marking it agent-ready.

Problem

Runs 39732648028, 39732240888 and 39726365220 of pr-unblock-dispatch (job dispatch) failed in the step 'Dispatch pr-unblock for conflicting, review-tier Dependabot, failing lanes App and Markdown-changing PRs'. Each log has a 403 'API rate limit exceeded for installation' (retry-after=none remaining=0) on GET .../actions/workflows/pr-unblock.yml/runs?event=workflow_dispatch&per_page=100, then '::error::could not list pr-unblock.yml runs ... returned 403', then 'Process completed with exit code 1'. The job's own budget notice shows 3867, 3926 and 3585 of 5000 left, so the job did not run out of quota. The 403 came with remaining=0 and a reset 19 minutes away, past the 6-minute wait budget. The script gave up at once. The dispatcher logs this message twice per run, once in the conflicting-PR pass and once in the fix-ci pass, so each run spends two identical listings of the same 100 rows on a throttled endpoint. The listing is also repeated in fix-docs. Nothing was dispatched in any of the three runs ('no run dispatched'), so the PRs these runs should have unblocked wait for the next push to main, and the failure is reported as a code failure, not a throttle.

Root cause

Every dispatch pass calls api.listWorkflowRuns('pr-unblock.yml') itself (dispatch.mjs, fix-ci-dispatch.mjs, fix-docs-dispatch.mjs). There is no shared or cached result, and a 403 from it makes the whole pass return failed=1. request-budget.mjs only waits when the reset fits maxWaitMs (6 min), so a limit that resets later is returned at once. The run then exits 1, which is red, even though no code defect exists and no dispatch was attempted. Nothing re-fires the dispatcher after the throttle clears.
.github/scripts/pr-unblock/dispatch.mjs:144: log(`::error::could not list ${workflow} runs: ${error.message}`);
.github/scripts/pr-unblock/fix-ci-dispatch.mjs:201: active = (await api.listWorkflowRuns(workflow)).filter((run) => run.status !== "completed");
.github/scripts/pr-unblock/request-budget.mjs:44: if (waited + wait > maxWaitMs) {

Proposed fix

Read the pr-unblock.yml in-flight list once per run, lazily, and pass it to the conflicting, fix-ci and fix-docs passes. Treat a rate-limit 403 on that read as a deferral: log a notice, dispatch nothing, and exit 0 or neutral. A genuine failure should still exit 1. Optionally retry later in the job once the reset passes, or re-queue the dispatcher so the skipped PRs are not left until the next push to main.

Where

workflow .github/workflows/pr-unblock-dispatch.yml
job dispatch

Activity

  1. added
    needs-triage
    on Oct 22, 2026
  2. added
    status: confirmed
    and removed
    needs-triage
    on Oct 24, 2026
  3. kyle-sexton commented on Oct 24, 2026

    @kyle-sexton
    Member

    Triaged (Issue Triage session): confirmed lane defect, priority high, owner: Automation Lanes. Owner rule 2026-10-24: conveyor-stopping blockers are fixed ASAP.

  4. kyle-sexton commented on Oct 24, 2026

    @kyle-sexton
    Member

    Spec (owner, 2026-10-24): A rate-limited pr-unblock.yml run listing defers the pass with a warning instead of failing pr-unblock-dispatch; each workflow's run listing is read at most once per dispatcher run; non-rate-limit listing errors still fail. Implemented by #9676.

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: confirmed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions