Repository navigation
fix(service): the last rate limit of a request holds every worker until its wait ends - #2529
Merged
Merged
Conversation
…il its wait ends The session and run_gh held the identity's requests only for a rate limit that they sent again, so the refusal that failed the round held nothing. Both now hold the requests before they decide whether a retry is left. A test moves the clock at each wait and covers both paths.
… halt and budget records No test failed when serve.py gave the Service no state directory.
…rt, and the state texts use no contraction
Owner
Author
|
Local results on the branch, before the rebase onto 0379f21:
The review findings of #2515 that this pull request delivers: 1 (the last refusal holds nothing), 2 (no test of the gh hold), 3 (no test of the serve state wiring), 4 and 5 (the same stale rule comment), 6 (the contraction). |
dan-petty
marked this pull request as ready for review
October 28, 2026 20:30
dan-petty
pushed a commit
that referenced
this pull request
Oct 28, 2026
🤖 I have created a release *beep* *boop* --- ## [0.11.2](v0.11.1...v0.11.2) (2026-10-28) ### Bug Fixes * **service:** the last rate limit of a request holds every worker until its wait ends ([#2529](#2529)) ([657b03d](657b03d)), closes [#2523](#2523) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A review of #2515 found that the last rate limit of a request held no other worker. The session set the hold only for a refusal that it sent again, and
run_ghreturned from its backoff before the hold on its last attempt. So the refusal that failed the round held nothing, and the other workers sent requests at once, although GitHub asked for a wait with no request.retry_waitandrun_gh's_handle_attempt_backoffhold every request of the identity for the wait of each rate limit, the last one too, before they decide whether a retry is left. The last attempt records no throttle and sleeps no wait.SessionGitHubAPI.handle_rate_limit_errorloses its early return for a spent retry count.run_gh's backoff is removed, which no test caught before.devops serve --serviceover a halt record and a budget record, and finds the Service halted with the requests of the window counted. It fails whenserve.pygives nostate_dir.RoadmapServiceIdentityRefusedsays that a halt stays after a restart.ServeMessages.state_unreadableand the comments that fix(service): a restart keeps the halt, the budget window and the failure ledger, and a secondary limit or a suspended installation stops every worker #2474 added say "cannot" in place of "can't".Change:
openspec/changes/archive/2026-10-28-2523-last-rate-limit-holds-every-worker/Closes #2523