-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: refactor test-net-connect-options-allowhalfopen.js #13003
Conversation
Trying to fail on freeBSD: https://ci.nodejs.org/job/node-test-commit-freebsd/9006/ |
@@ -6,6 +6,7 @@ const net = require('net'); | |||
const server = net.createServer(); | |||
server.listen(0); | |||
const port = server.address().port; | |||
console.log(`server port ${port}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
I just added it to try to check something.
That test is interacting with the test of this PR.
Another BSD CI:https://ci.nodejs.org/job/node-test-commit-freebsd/9007/ |
A stress test CI job is better for checking flakiness fixes. |
I need to test the interaction of two test: |
Try to fail on freeBSD: https://ci.nodejs.org/job/node-stress-single-test/nodes=freebsd10-64/ |
d09d2c0
to
dfed152
Compare
const host = common.localhostIPv4; | ||
|
||
function serverOnConnection(socket) { | ||
console.error(`'connection' ${++serverConnections} emitted on server`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the console output is not necessary for the test, please remove them :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were very usefull for debugging. Gone now.
This needs a rebase and there are a couple linter errors. |
ce5ba90
to
ec67d66
Compare
ping @nodejs/testing |
ec67d66
to
e02d7b0
Compare
Ping @nodejs/testing @Trott |
I may be missing something important here, but you can run a stress test on just those two tests with something like:
|
I have to attend to something else right now but I'll try to make a point to look at this in the next 24 hours... |
Any chance we can get a more detailed commit message? |
Change seem good to me but might be useful to get @bnoordhuis, @indutny, @nodejs/streams to take a look. |
Yeah I didn't think about it at the time.
I think we solved this dis-harmony by moving AFAICT this was blocked because @jasnell asked to remove the logging, but I'm -0 on that since the order of events in the test is tricky. Eventually it was the log that made me wonder where the 7th connection is coming from if the clients are only making 6 🤔
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR-URL: nodejs#13003 Fixes: nodejs#12951 Reviewed-By: Matteo Collina <[email protected]>
e02d7b0
to
01c680b
Compare
Quick sanity of |
PR-URL: #13003 Fixes: #12951 Reviewed-By: Matteo Collina <[email protected]>
PR-URL: nodejs/node#13003 Fixes: nodejs/node#12951 Reviewed-By: Matteo Collina <[email protected]>
Try to stabilize test/parallel/test-net-connect-options-allowhalfopen.jsFixes: #12951
Test is stable but could use some loving.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test,net