Repository navigation
refactor(recurring-schedule): move file-due onto lib/github-rest budgetedClient - #15547
Conversation
…etedClient file-due.mjs carried its own copy of budgetedClient from .github/scripts/lib/github-rest.mjs: the same headers, budget message and HTTP error with its status. It now calls budgetedClient with the same CALL_BUDGET default of 50. The shared client's 204 and /zip handling do not apply: file-due sends two GETs that answer 200 and a POST that answers 201. Requests, messages and exit code are unchanged. file-due is on the hold floor, and a floored module imports only floored modules (the route-entry closure in test_merge_holds_sync.py reaches file-due through fix-ci-context.mjs and resolve-pr.mjs), so .github/scripts/lib/github-rest.mjs gets an enforcement row. Its only repository import, rate-guard.mjs, is already floored. scripts/sync-hold-floor.py regenerates merge-holds.mjs, both review workflows' hold-paths and ci-status's hold_patterns; the floor pins and floor-row tests follow the added row. No floor row or hold is removed. Refs: #15456 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH
Codex Review Summary: ✅ CompletedThis 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-security-review reviewed Security review: PR #15547, incremental (b842bcf → da60ba7)This review covered only what changed since the last one, and found no security issues. I read the one hunk of the one changed file, What changed: one test was added. It runs
Why it is safe:
The test pins the budget behaviour the previous review described: the cap is enforced through the shared client. Trust controls / instruction surface: neither is touched. The PR context contains no embedded directives. Spend: none. critical-findings: 0 |
|
claude-review reviewed Incremental code review: PR #15547 (
|
main() without an injected call now runs under CALL_BUDGET=1 with a stubbed fetch: the second request fails with "call budget of 1 spent" and the final line reports "calls 1". Dropping the budget argument or misspelling CALL_BUDGET fails the test. Refs: #15456 Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH
Closes #15456
Summary
.github/scripts/recurring-schedule/file-due.mjscarried its own copy of the budgeted REST client in.github/scripts/lib/github-rest.mjs: the same headers, the same "call budget of N spent" text and the sameHTTP <status>error. It now callsbudgetedClient. Part of restructuring pass #14159 (R1).Built in a session because the issue lane cannot push the workflow hold blocks the floor row regenerates (patch-protected-path, run 43153959999); agreed with the hub session.
session: Simplify Planning
Fix
budgetedClient(env, { budget: Number(env.CALL_BUDGET ?? 50) }); an injectedcallstill logscalls n/a.lib/github-rest.mjs, so that module gets anenforcementrow (110 to 111 rows; nothing removed or reclassified). Its only repository import, rate-guard, is already floored.merge-holds.mjs, both review workflows' hold-paths and ci-status'shold_patternsare regenerated byscripts/sync-hold-floor.py; floor-row tests and thetest_floor_pathspins follow..basecheckout, and collect-base-activity stages baselib/wholesale.Verification
CALL_BUDGET=2, a non-number budget): identical request URLs, methods, headers and bodies, log lines and exit codes. file-due sends only GETs answering 200 and a POST answering 201, so the shared client's 204 and/ziphandling never applies.python3 scripts/sync-hold-floor.py --check: pass. Floor pins: a script reproduced main's pins exactly before they were updated.scripts/write-runner-never-rules.test.sh75/0,scripts/ci-lanes-pr-hold.test.sh345/0, changelog fragments--check-required: pass.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH