You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the session-level timeout test on trio's virtual clock
The session-level read timeout also governs the initialize handshake sent
by Client.__aenter__, so the test's 50ms value doubled as a real-time
deadline for the in-process handshake. Under CI load the handshake tail
exceeds 50ms (observed max ~190ms on a saturated windows runner), which
failed the test before its body ran -- three times in the week since it
landed, twice on windows and once on ubuntu, always on the 3.12/locked
matrix cell.
Instead of widening the margin and paying for it in real wait time, run
this one test on trio's MockClock with autojump: virtual time advances
only when every task is blocked, so the handshake can never time out no
matter how slow the runner, and the blocked tool call hits its deadline
the moment the run goes idle. The test keeps its original timeout value
and snapshot, is immune to scheduler stalls by construction, and the
file now runs in milliseconds.
0 commit comments