Skip to content

fix(test-runner): race IPv4 and IPv6 webServer port checks#40601

Merged
yury-s merged 1 commit intomicrosoft:mainfrom
yury-s:fix-webserver-port-check-race
May 4, 2026
Merged

fix(test-runner): race IPv4 and IPv6 webServer port checks#40601
yury-s merged 1 commit intomicrosoft:mainfrom
yury-s:fix-webserver-port-check-race

Conversation

@yury-s
Copy link
Copy Markdown
Member

@yury-s yury-s commented May 4, 2026

Summary

  • Run the IPv4 and IPv6 port checks in parallel instead of sequentially, so a hanging check on one address doesn't block the other.
  • Resolve true as soon as either check succeeds; resolve false only once both have failed.

Fixes #40430

Previously the IPv4 (127.0.0.1) and IPv6 (::1) port checks ran
sequentially: if the first call hung, the second would not start until
it timed out. Race them in parallel instead — return true as soon as
either succeeds, and false only after both fail.

Fixes: microsoft#40430
@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Test results for "tests 1"

5 flaky ⚠️ [chromium-library] › library/video.spec.ts:275 › screencast › should capture navigation `@ubuntu-22.04-chromium-tip-of-tree`
⚠️ [chromium-library] › library/video.spec.ts:719 › screencast › should work with video+trace `@ubuntu-22.04-chromium-tip-of-tree`
⚠️ [chromium-library] › library/video.spec.ts:719 › screencast › should work with video+trace `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:719 › screencast › should work with video+trace `@chromium-ubuntu-22.04-node20`
⚠️ [playwright-test] › ui-mode-test-output.spec.ts:118 › should collapse repeated console messages for test `@ubuntu-latest-node22`

41639 passed, 784 skipped


Merge workflow run.

@yury-s yury-s merged commit 4dcab08 into microsoft:main May 4, 2026
54 of 58 checks passed
@yury-s yury-s deleted the fix-webserver-port-check-race branch May 4, 2026 18:25
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Test results for "MCP"

6876 passed, 1015 skipped


Merge workflow run.

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.

[Bug]: ECONNREFUSED, PW waits for a 2 mins timeout to start a server in WSL

2 participants