Skip to content

test: Give the poll retry test time for slow connections on Windows - #575

Merged
keelerm84 merged 1 commit into
feat/10.xfrom
mk/windows-poll-retry-test
Nov 12, 2026
Merged

keelerm84 merged 1 commit into
feat/10.xfrom
mk/windows-poll-retry-test

Conversation

@keelerm84

@keelerm84 keelerm84 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

test_client_retries_poll_after_network_error fails on every Windows job on feat/10.x. The client is not initialized when the default 5 second start wait ends.

Each network error closes the connection, so each retry opens a new one. On Windows, a new connection to localhost tries ::1 first and takes about 2 seconds to fall back to IPv4. This test opens about three connections, so it runs past the start wait. The test now waits up to 20 seconds. It still returns as soon as the client initializes.


Note

Overview
Fixes Windows CI flakiness in test_client_retries_poll_after_network_error by passing start_wait=20 to LDClient (default is 5s) and documenting why.

The test simulates multiple poll failures that each tear down and reopen connections; on Windows, new localhost connections can spend ~2s on IPv6 before falling back to IPv4, so three retries can exceed the default startup timeout even though the client eventually initializes.

Reviewed by Cursor Bugbot for commit 88f68ba. Bugbot is set up for automated code reviews on this repo. Configure here.

@keelerm84
keelerm84 requested a review from a team as a code owner November 10, 2026 20:47
@keelerm84
keelerm84 merged commit 8175725 into feat/10.x Nov 12, 2026
18 checks passed
@keelerm84
keelerm84 deleted the mk/windows-poll-retry-test branch November 12, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants