FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: deflake test-net-listen-ipv6only by Han5991 · Pull Request #64173 · nodejs/node · GitHub

/ node Public

test: deflake test-net-listen-ipv6only - #64173

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
Han5991:fix/flaky-test-net-listen-ipv6only
Aug 22, 2026
Merged

test: deflake test-net-listen-ipv6only#64173
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
Han5991:fix/flaky-test-net-listen-ipv6only

Conversation

Han5991 commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

test-net-listen-ipv6only connects to the IPv4 side of an ephemeral port
expecting ECONNREFUSED, but never reserves that port, so under parallel
execution another test can occupy it and the connection succeeds instead —
making the test flaky (it passes reliably in isolation).

Move the test to test/sequential/ and use a fixed common.PORT so it no
longer competes with other tests for the same port. This is the same fix
previously applied to the sibling cluster variants (#26298, #32381, #32398).

Fixes: #64172

nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Jun 27, 2026
Han5991 added 2 commits June 28, 2026 00:14
The test verified ipv6Only by connecting to the IPv4 side of an
ephemeral port and expecting ECONNREFUSED, but it never reserved that
IPv4 port. Under parallel execution another test could occupy it,
making the connection succeed instead of being refused.

Run the test sequentially with a fixed common.PORT so it no longer
competes with other tests for the same port, matching the fix already
applied to the sibling cluster variants.

Fixes: nodejs#64172
Signed-off-by: sangwook <rewq5991@gmail.com>
Han5991 force-pushed the fix/flaky-test-net-listen-ipv6only branch from 29bd615 to 91860b2 Compare June 27, 2026 15:14
trivikr added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 1, 2026
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 1, 2026

This comment was marked as outdated.

trivikr added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Jul 1, 2026

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

trivikr added commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 22, 2026
nodejs-github-bot merged commit 280c85c into nodejs:main Aug 22, 2026
78 checks passed

Copy link
Copy Markdown
Collaborator

Landed in 280c85c

nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 22, 2026
Han5991 deleted the fix/flaky-test-net-listen-ipv6only branch August 22, 2026 02:47
aduh95 pushed a commit that referenced this pull request Aug 25, 2026
The test verified ipv6Only by connecting to the IPv4 side of an
ephemeral port and expecting ECONNREFUSED, but it never reserved that
IPv4 port. Under parallel execution another test could occupy it,
making the connection succeed instead of being refused.

Run the test sequentially with a fixed common.PORT so it no longer
competes with other tests for the same port, matching the fix already
applied to the sibling cluster variants.

Fixes: #64172
Signed-off-by: sangwook <rewq5991@gmail.com>
PR-URL: #64173
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
aduh95 pushed a commit that referenced this pull request Aug 25, 2026
The test verified ipv6Only by connecting to the IPv4 side of an
ephemeral port and expecting ECONNREFUSED, but it never reserved that
IPv4 port. Under parallel execution another test could occupy it,
making the connection succeed instead of being refused.

Run the test sequentially with a fixed common.PORT so it no longer
competes with other tests for the same port, matching the fix already
applied to the sibling cluster variants.

Fixes: #64172
Signed-off-by: sangwook <rewq5991@gmail.com>
PR-URL: #64173
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test-net-listen-ipv6only is flaky due to IPv4 port collision

4 participants


Back | FazBrowse Home | New Git URL