Repository navigation
Conversation
AsyncProoflineClient bounds I/O with anyio, but its Retry-After backoff and wait_for_review polling slept with asyncio.sleep. Under trio a retried request surfaced as a status-0 invalid-response problem and wait_for_review raised "no running event loop". Sleep with anyio so both paths run on any backend that anyio and httpx support, and test the sleeping and deadline paths on asyncio and trio. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GA2KNDKv463GeBmDCYL95
Proofline reviewI installed Proofline on my fork and ran it on the same commit (1844f51) through a fork-internal PR: Om-Beast/sdk-python#1. The check finished in about a minute with no findings. How I evaluated it:
|
|
Codex review: Please resolve the client/transport/dependency conflicts against current main, preserving exact-head polling and the current dependency pins. Keep anyio sleeps in both async retry and polling paths, retain the Trio regressions, and rerun |
Retain exact-head review polling and every existing dependency lock entry. Exercise retry backoff, pinned-head polling and request deadlines on both asyncio and Trio.
|
@mohsen1 Thanks for the review. Resolved the conflicts in eeae462, preserving exact-head polling, the existing dependency pins, and both AnyIO sleeps. Could you please approve the workflow and help with the Proofline seat requirement blocking the gate? Thank you! |
|
Hi @mohsen1, thanks again for the review. I've updated the branch in 399f948, merging current
GitHub now reports the branch as mergeable. The new Checks workflow requires maintainer action, and the Proofline gate still says the author needs a seat. When you have a chance, could you please help with those two blockers? Thank you! |
Problem
AsyncProoflineClientusesasyncio.sleepfor retry backoff and review polling, although its async HTTP transport supports AnyIO. Under Trio, a retried 429/503 can become a misleading HTTP 0 invalid-response error, and polling a running review raisesRuntimeError: no running event loop.Changes
wait_for_review(), preserving existing retry, deadline, and exact-head polling behavior.mainat8e94310. The resolved lock preserves all 41 upstream entries, including their versions, markers, and hashes; the additional entries support the Trio tests.Verification
8e94310, the branch's retry/polling regressions reproduce the issue: 3 asyncio cases pass and 3 Trio cases fail.python scripts/check.pyon Python 3.12.14: 230 tests passed, including all 12 backend regression cases./usr/bin/python3.13 scripts/check.pyon Python 3.13.5: 230 tests passed, including all 12 backend regression cases.git diff --checkpasses; GitHub reports the branch as mergeable.