Skip to content

Use a retry with timeout in HostPortCantBeBoundByGuest - #41728

Merged
Blue (OneBlue) merged 1 commit into
masterfrom
user/oneblue/fix-tests-28
Sep 29, 2026
Merged

Blue (OneBlue) merged 1 commit into
masterfrom
user/oneblue/fix-tests-28

Conversation

@OneBlue

Copy link
Copy Markdown
Collaborator

Summary of the Pull Request

This change adds logic to retry binding a host port with a fixed timeout. This is needed because GNS might not see a short bound port reservation, and if that happens, it will take 30 seconds for that binding to expire and become available on the host again

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Copilot AI balanced review requested due to automatic review settings September 29, 2026 18:29
@OneBlue
Blue (OneBlue) requested a review from a team as a code owner September 29, 2026 18:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The retry logic is sound; only minor line-wrapping fixes were identified.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Adds bounded retries to stabilize mirrored-networking host-port binding tests while stale guest reservations expire.

Changes:

  • Adds configurable retry timeout to BindHostPort.
  • Keeps WSL alive during retries.
  • Applies two-minute retries to TCP and UDP checks.
File Description
test/​windows/​NetworkTests.cpp Adds retry-based host binding and updates the mirrored-networking test.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/windows/NetworkTests.cpp
@OneBlue
Blue (OneBlue) merged commit 1ba61b5 into master Sep 29, 2026
12 checks passed
@OneBlue
Blue (OneBlue) deleted the user/oneblue/fix-tests-28 branch September 29, 2026 21:22
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.

4 participants