Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: eliminate port collision in test-cluster-net-listen-ipv6only-rr #26298

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

gireeshpunathil
Copy link
Member

In test test-cluster-net-listen-ipv6only-rr, the cluster member that
listens to any port actually has the potential to grab any port
from the environment which when passed onto the master causes
collision when it tries to listen on.

Moving the test to sequential alone is not sufficient as the cluster
member can in theory catch on to the admin ports on the host.

Assigning static port alone is also not sufficient, as it can interfere
with other running tests in the parallel category which would be mostly
running with port: any fashion.

So move to sequential, and use a static port.

Fixes: #25813

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot
Copy link
Collaborator

@gireeshpunathil sadly an error occured when I tried to trigger a build :(

@Trott
Copy link
Member

Trott commented Feb 25, 2019

Maybe add a comment explaining that it needs to be in sequential and have a static port and add a Refs link in the comment to this PR?

@Trott
Copy link
Member

Trott commented Feb 25, 2019

Needs a rebase. LGTM with the port replaced with common.PORT.

@gireeshpunathil
Copy link
Member Author

@Trott - thanks. i) moved to common.PORT, ii) described change with comment, iii) rebased. ptal!

@Trott
Copy link
Member

Trott commented Feb 26, 2019

@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 26, 2019
@gireeshpunathil gireeshpunathil removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 28, 2019
In test test-cluster-net-listen-ipv6only-rr, the cluster member that
listens to `any` port actually has the potential to `grab` any port
from the environment which when passed onto the master causes
collision when it tries to listen on.

Moving the test to sequential alone is not sufficient as the cluster
member can in theory catch on to the admin ports on the host.

Assigning static port alone is also not sufficient, as it can interfere
with other running tests in the parallel category which would be mostly
running with `port: any` fashion.

So move to sequential, and use a static port.

Fixes: nodejs#25813
PR-URL: nodejs#26298
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
@gireeshpunathil
Copy link
Member Author

landed as 4a3928e

@gireeshpunathil gireeshpunathil merged commit 4a3928e into nodejs:master Feb 28, 2019
addaleax pushed a commit that referenced this pull request Mar 1, 2019
In test test-cluster-net-listen-ipv6only-rr, the cluster member that
listens to `any` port actually has the potential to `grab` any port
from the environment which when passed onto the master causes
collision when it tries to listen on.

Moving the test to sequential alone is not sufficient as the cluster
member can in theory catch on to the admin ports on the host.

Assigning static port alone is also not sufficient, as it can interfere
with other running tests in the parallel category which would be mostly
running with `port: any` fashion.

So move to sequential, and use a static port.

Fixes: #25813
PR-URL: #26298
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
@BridgeAR BridgeAR mentioned this pull request Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

investigate flaky test: test-cluster-net-listen-ipv6only-rr
5 participants