Repository navigation
Closed
Labels
status: confirmedA maintainer confirmed the item is real and in scope; ready to be worked.
Description
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
Metadata
Metadata
Assignees
Labels
status: confirmedA maintainer confirmed the item is real and in scope; ready to be worked.
Type
Fields
No fields configured for issues without a type.
Activity
kyle-sexton commentedon Oct 24, 2026
Triaged (Issue Triage session): confirmed lane defect, priority high, owner: Automation Lanes. Owner rule 2026-10-24: conveyor-stopping blockers are fixed ASAP.
kyle-sexton commentedon Oct 24, 2026
Spec (owner, 2026-10-24): A rate-limited
pr-unblock.ymlrun listing defers the pass with a warning instead of failingpr-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.