Repository navigation
ci: release notes batch 10 commits per GraphQL query and retry GitHub 5xx - #20412
Conversation
… 5xx The 0.65.2 RC publish (run 38501752257) failed in the release notes: a new RC line summarizes ~2,000 commits since the lines' merge base, and GitHub answered a 25-commit association query with HTTP 502. Locally the same range completes with 10 commits per query and 5xx retries (1,328 PRs, ~19 min). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Correctness review by a subagent, correctness first: no blocking or major findings. Verified: imports present; the retry loop keeps the last result (success, non-5xx, or 4th attempt; 14 s total backoff); GraphQL |
|
All contributors have signed the CLA ✍️ ✅ |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Merge receipt for |
Summary
The 0.65.2 RC publish (run 38501752257) passed the new RC-line guard from #20331, then failed in
scripts/ci/nightly_release_notes.pywithGitHub metadata request failed. A new RC line summarizes the commits since the two lines split, about 2,000 commits here. I reproduced it locally against the same range: GitHub answered the 25-commitassociatedPullRequestsGraphQL batch with HTTP 502 (each commit asks for up to 10 PRs with 100 labels and 100 files).This PR:
COMMIT_BATCH).Verification
collect_prswith this script against the real range (published77eea5f→rc/v0.65.2d17004f, which goes through the merge-base path): completes with 1,328 PRs in about 19 minutes. The rendered notes still list at most 40 PRs plus an "and N more" link.tests/test_nightly_release_notes.py: passes. The batching test now checksCOMMIT_BATCH; 27 commits give 3 queries.After the merge, I re-run the failed publish job of run 38501752257, so the 0.65.2 RC reaches the feed.
Changelog
none
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Fixes the release notes script failing on large commit ranges: the 0.65.2 RC publish hit HTTP 502 because GitHub rejected the 25-commit GraphQL batch. The script now batches 10 commits per query and retries GitHub 5xx responses up to 3 times with 2, 4, and 8 s backoff; other failures still fail immediately.
Written for commit 042acb8. Summary will update on new commits.
Summary by CodeRabbit