fix(tests): PairingCeremony poll tests stop racing the scheduler (#192) - #203
Conversation
…proval window 5 s → 60 s (#192) Five hits in three days (latest: PR #201, two attempts in a row, 5.6–6.8 s each). The scripted transport needs three 1 ms polls; the 5 s approvalWindow is only a deadline — but under `swift test --parallel` on the CI runner the actor hops alone can exceed it, and the ceremony then honestly reports "not approved". Sixty seconds keeps the deadline as a hang guard without racing the scheduler. Test-only change. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K2kJAPEHTFU34uKiGArFSP # ── MurphySig ────────────────────────────────────────────────────── # Significant decision in this commit? Sign it. https://murphysig.dev/spec # ───────────────────────────────────────────────────────────────────
✅ Deploy Preview for m1k3 canceled.
|
|
Reviewed against the checklist in Correctness — looks right. I read Scope is correctly narrow. The two tests changed are exactly the ones that poll-to-success and are timing-sensitive. Provenance. The new Minor, non-blocking: 60 s is a big jump from 5 s (12x). If Overall: solid, well-scoped, well-documented flake fix. No concurrency, architecture, MLX, or persistence concerns since it doesn't touch any of those seams. |
Closes the flake tracked in #192 (five hits in three days; the latest killed PR #201's CI twice in a row).
The two poll tests use a scripted transport that needs three 1 ms polls; the 5 s
approvalWindowis only a deadline — but underswift test --parallelon the CI runner the actor hops alone can exceed it, and the ceremony then honestly reports "not approved" (5.6–6.8 s each hit). Sixty seconds keeps the deadline as a hang guard without racing the scheduler. Test-only change; the ceremony itself is untouched.🤖 Generated with Claude Code
https://claude.ai/code/session_01K2kJAPEHTFU34uKiGArFSP