Repository navigation
fix(pr-pipeline): wait out a lane token 503 github-rate-limited - #7958
Conversation
The lanes broker now answers 503 github-rate-limited, with GitHub's wait as Retry-After, before it reserves a mint, and 503 mint-unavailable after the reservation. request-lane-token retries github-rate-limited after exactly its Retry-After plus up to 20 s of jitter, fails at once naming the limit kind and reset time when that wait would pass the 8-minute budget, and never retries mint-unavailable, whose failure now says it is final. Basis: https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api#exceeding-the-rate-limit (do not retry before retry-after or x-ratelimit-reset has passed). Refs: melodic-software/azure-iac#34 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…absent A github-rate-limited answer with no Retry-After header waits the one-minute default, so the budget failure no longer calls that time GitHub's reset. Note that the limit and resource allowlists are the only barrier between broker text and the ::error:: command. Refs: melodic-software/azure-iac#34 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security findings in PR #7958 at head e059d63. The PR changes the
|
|
claude-review reviewed No blocking findings. I read the full diff and the PR context, and grepped What I checked by reading:
Not blocking:
|
…ate-limited # Conflicts: # docs/conventions/pr-pipeline/CHANGELOG.md
|
The pr-unblock lane stopped on this pull request and needs a person: the merge stages a change under .github/workflows/, which the lane does not push.
To resume, deal with the reason above, remove the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=7958 -f activity=resolve-conflicts |
Refs: melodic-software/azure-iac#34
Summary
The lanes broker (azure-iac#35) now has two
new 503 answers.
github-rate-limitedcomes before any reservation and carries GitHub's wait as aRetry-Afterheader (1-3600 s), withlimit,resourceandretry_afterin the body.mint-unavailablecomes after the job's one mint reservation, so no retry can redo it.request-lane-tokennow handles both.Fix
.github/actions/request-lane-token/action.yml: the retry loop from#7944 also retries
github-rate-limited. That retry waits exactlyRetry-After(a minute when the header ismissing) plus 0-20 s of jitter, with the jitter cut so the wait ends inside the budget. The
backoff ladder is not used for it. If elapsed time plus
Retry-Afterwould pass the 8-minutebudget, the step fails at once, with no sleep, and names the limit kind, the resource and the
reset time.
mint-unavailableis never retried, and its failure endsfinal: the broker had reserved this job's one mint, so no retry can mint it.docs/conventions/pr-pipeline/pr-run-activity.md(now listing
github-rate-limitedas 503, Retry-After, retryable, andmint-unavailableas 503,final), and pr-pipeline CHANGELOG 2.8.2.
Basis: GitHub REST rate limits, Exceeding the rate limit:
"If the
retry-afterresponse header is present, you should not retry your request until afterthat many seconds has elapsed", and otherwise "wait for at least one minute before retrying".
Verification
request-lane-token.test.mjsfirst and watched all six fail on the oldscript. They cover: the wait is Retry-After plus jitter, not the ladder; three retries then red;
no header means a minute; a 470 s wait fits the budget; a 481 s wait fails at once, with the
reset time checked against the test's clock;
mint-unavailableis final. After the fix,node --testpasses 45 of 45.actionlintclean;zizmor --offlineon the action andpr-run-activity-write.yml: nofindings;
shellcheckon the extracted run script clean; markdownlint clean on the three docs.Related
github-unavailableretry this extends.adds the two answers.
🤖 Generated with Claude Code