Repository navigation
Conversation
|
Request changes: one finding. Sync and async disagree on a review that already finished. The sync Repro: two reviews, the first stays Fix: give a review reached after the deadline one read ( Branch: https://github.com/dboles99/sdk-python/tree/review/pr-165-read-after-deadline (cbfaa68): the change in both clients, docs, and a test that fails on the sync client before it and passes after. Full suite 244 passed; ruff, format and mypy clean. The rest checks out: one monotonic deadline, duplicates waited on once, a per-review |
1132c1f to
04db001
Compare
|
Thanks for running it. The sync result is what the brief asks for: a review that starts after the deadline has passed returns |
What
Adds
wait_for_reviews(organization_id, review_ids, *, timeout=300, head_commit_shas=None) -> dict[UUID, ReviewOutcome]toProoflineClientandAsyncProoflineClient, with a README section and tests intests/test_http.py.scripts/contracts.pylists it with the other client helpers that are not API operations.Behaviour
TIMED_OUTwithout a request. The async client waits for every review at once.wait_for_review, so it keeps that method's polling, retry and commit-pin policy.ProoflineErrormakes that reviewFAILED, with noreviewand areasonthat names only the HTTP status, soreprandstrshow no server text. The other reviews keep going.timeout=0reads each review once. A review named twice is waited on once. Results come back in the order given.timeout, the review IDs and every pin are checked before any request. A review ID that is not aUUID, or a pin for a review outside the batch, raisesValueError.Checks
python3 scripts/check.pypasses: generation check, contracts, ruff, mypy, 252 tests, and the wheel and sdist installs.