Repository navigation
perf(source-control): bound lane-run listing to the PR's lifetime - #9284
Conversation
collect_lane_runs listed every pull_request run on the head branch. On a reused branch GitHub labels older runs with the pull request open now, so a release PR's gate read about 1,000 runs and spent about 4,000 lanes App calls, exhausting its rate limit (pr-merge runs 39883357253, 39887421299). The listing now passes created>=<PR created_at>; earlier heads of the same PR stay in range. 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-review reviewed No findings. I read the whole diff (4 files) and the PR context, and checked
|
|
claude-security-review reviewed Security review: PR #9284 (head 57d138e)No security findings. The PR adds a
|
No related issue: fix for tonight's lanes App rate-limit exhaustion, root-caused by GitHub Support (.work/gh-monitor/research/lanes-app-budget-2026-10-23.md); the owner asked for it fixed ("this cannot be what throttles us").
Summary
collect_lane_runs(babysit_gh.py) listed everypull_requestrun of each review lane on the PR's head branch, with no date bound. GitHub labels a reused branch's older runs with the PR open on it now, so the release PR onrelease/plugins(about 2,462 runs) kept about 1,000 review runs, and the gate spent about 4,000 lanes App calls per candidate: pr-merge run 39883357253 took 21.5 min on #9267 while the App's remaining calls fell from 5,001 to 863, and run 39887421299 hit "API rate limit exceeded for installation".Fix
collect_lane_runstakes the PR'screated_atand addscreated=>=<it>to each listing. Earlier heads of the same PR (after a force-push) are still in range, so incremental review chains still reach their whole review. A value that is not a UTC timestamp leaves the listing unbounded.babysit_merge._lane_evidencepasses the REST pull object'screated_at.Runs created before the PR existed cannot hold its reviews, so no evidence the gate needs is dropped.
Verification
python3 -m unittest test_babysit_gh test_babysit_merge_unattended test_babysit_review_evidence: 418 tests OK, including two new ones (the bounded listing URL, and an unbounded listing for a value that is not a timestamp).check-affected.shpassed.Related
GitHub Support's ranked list also names: evidence reads on the verify token, one post-merge check per run, ETag reuse, and a per-candidate call cap. Those are separate changes.
🤖 Generated with Claude Code