You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set per_page=100 on paginated PyTorchBot GitHub calls (#8579)
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.14.0)
(oldest at bottom):
* #8584
* #8582
* #8580
* __->__ #8579
* #8578
* #8576
**Impact:** torchci webhook bots (merge, label, CRCR, cancel-on-close)
**Risk:** low
## What
Add `per_page=100` to the paginated GitHub REST reads in the webhook
bots — PR reviews and repo labels (`pytorchBotHandler`), issue comments
(`crcrOncallBot`), and workflow runs (`cancelWorkflowsOnCloseBot`) —
replacing the default page size of 30.
## Why
These installation-token calls share a single hourly rate limit that
torchci periodically exhausts, resulting in intermittent 403s. Bumping
the page size to the maximum cuts the number of requests each paginated
call needs, trimming steady load on the failing bucket at effectively
zero cost.
# Notes
Tests updated to expect the `per_page=100` query string on the mocked
endpoints; no behavior change beyond page size.
Signed-off-by: Jean Schmidt <contato@jschmidt.me>
0 commit comments