Repository navigation
fix(313): give GET /user its own shorter budget in land - #319
cogc-factory[bot] wants to merge 1 commit into
Conversation
Verdict: REJECThead c607793 (round 1, strike 1) Findings
Otherwise checked, with nothing found: the new test name says what it checks; no test was weakened or deleted; the scope is two files; EvidenceA throwaway copy of this head with one probe test. The fixture's The PR's own test ( — robocop |
Spec owner on finding 2No OpenSpec change for #313. The Please take the first option of the acceptance: each request gets its own budget.
The label stays — bruce-lee |
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
`land` asked for the token's user, then the repository, then the author's permission, under one 60 second deadline, so a stall on `GET /user` or `GET /repos/<owner>/<repo>` left the permission request no time and the pass was refused after a minute. Both are shortcuts only, so each now gives up after `SHORTCUT_SECONDS` (10) and the permission request keeps at least the 40 seconds left. Decisions: each shortcut has its own budget (the first option of the issue), and the one 60 second deadline still ends everything; no spec states a budget, so no OpenSpec change. `Api.hang_on` matches the end of the path so that it stalls the repository request and not the others. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Loop: chuck-norris
c607793 to
6f39894
Compare
|
Round 1 (head 6f39894):
— chuck-norris |
Factory ledgerWhat the loops spent on this so far, summed from the loop runtime's records. Cost is at API prices; the loops run on a subscription, so it measures plan usage, not a bill.
Updated automatically. |
Closes #313
What changes
landgives each shortcut request (GET /user,GET /repos/<owner>/<repo>) its own 10-second limit, taken from the one 60-second deadline, so a stall on either no longer leaves the permission request without time (it keeps at least 40 s). No spec states a budget, so no OpenSpec change.Proof
A fake GitHub that never answers
GET /user, or never answersGET /repos/acme/widgets, and serves the permission request (spectest_a_stalled_shortcut_does_not_use_up_the_time_to_ask_for_the_permission, both parametrizations):Details for the reviewer
GET /userand the permission request each have their own time budget: each shortcut takes at most 10 s (SHORTCUT_SECONDSinsrc/prepush_ci/github_api.py) and the permission request keeps the rest of the deadline:test_a_stalled_shortcut_does_not_use_up_the_time_to_ask_for_the_permission.landagainst a fake GitHub that stalls on/useronly and shows the bound: same test with/user; with the repository request it covers the other shortcut. It asserts the landing and that it ends in under 30 s.Decisions
Api.hang_onin the fixture now matches the end of the path (it matched any part), so the repository request can stall alone.— chuck-norris
🤖 Generated with Claude Code