Repository navigation
chore: Stabilize timing-sensitive Go CLI tests that intermittently fail in CI - #1311
Conversation
Four tests relied on sub-100ms real-time windows that a loaded CI machine cannot honor; the busy-after-retry-window test already failed in CI with a dial i/o timeout surfacing instead of the busy RPC error. - Raise the busy test retry window from 30ms to 500ms so at least one busy response always lands inside the window, and stub the Unity process probe to block until the context is done: the dial deadline is a separate timer that can fire microseconds before retryContext reports expiry, so an instant probe would skip the busy-masking guard - Widen the accepted-ack tests from a 20ms window vs 60ms server delay to 200ms vs 600ms, keeping the 3x ratio that defines their semantics - Widen the IPC client accept timeout test from 50ms vs 150ms to 250ms vs 750ms for the same reason Verified with -count=30 -race stress runs on both packages and a full scripts/check-go-cli.sh pass.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR updates transient connection and IPC client test timing assumptions across two test files to reduce CI flakiness. Retry timeout windows are widened, server response delays are increased, and a context-aware probe injection is added to ensure timeout and busy-response behavior remains deterministic under load. ChangesConnection and IPC retry timing robustness
🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
User Impact
Changes
Verification