Fix Windows CI flaps - #1147
Conversation
Drop xunit MaxParallelThreads on Windows from 4.0x to 1.0x. With 4x parallelism on 4-core runners, simultaneous mock-server tests starved the thread pool and NatsReadProtocolProcessor.ReadLoopAsync didn't get scheduled, so SetupReaderWriterAsync timed out waiting for INFO. Also bump ConnectTimeout to 30s on the six previously flapping tests, raise NatsUtils.ConnectRetryAsync budget 30s -> 60s, and widen TlsPreferTest's fallback to accept TimeoutException as evidence of a TLS attempt.
|
Claude finished @mtmk's task in 1m 16s —— View job PR Review: Fix Windows CI flaps
SummaryThis is a targeted, well-reasoned fix for Windows CI flakiness. All changes are confined to test infrastructure — no production code is touched. Changes reviewed:
One item worth a second look: In No correctness bugs, security issues, or async/await problems found. The Looks good to merge. |
Cherry-pick of #1145 (against
release/3.0) ontomain, squashed into one commit. See that PR for the analysis and verification.Fixes #1142.