damccorm opened a new pull request, #41124: URL: https://github.com/apache/beam/pull/41124
### Summary In `pr-bot-new-prs` (https://github.com/apache/beam/actions/runs/42455423812), `npm run processNewPrs` failed with a transient GitHub API HTTP 502 (`RequestError [HttpError]: Server Error` on `GET /repos/apache/beam/pulls/41040/reviews`) while iterating over open PRs. `getGitHubClient()` in `scripts/ci/pr-bot/shared/githubUtils.ts` instantiated `new Octokit({ auth })` without retry handling for transient 5xx responses. Wrapping `octokit.hook.wrap("request", ...)` to retry HTTP 500/502/503/504 up to 3 times with backoff prevents transient GitHub API server errors from aborting `pr-bot` runs. ### Verification - Triggered `pr-bot-new-prs` on branch `fix/pr-bot-octokit-retry`: https://github.com/apache/beam/actions/runs/42659433853 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
