-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Investigate flaky test-dgram-udp6-send-default-host on OS X #6577
Comments
/cc @mcollina |
Have seen this failure locally a couple of times though I cannot reproduce it consistently :/. |
@santigimeno Yup, I had the same thought and am putting in the PR for that right now... |
Previously, the assertion changed in this commit would print the same message no matter which of the four test cases failed. The assert has been changed so that it will indicate which test case failed. Refs: nodejs#6577
This is fairly unexpected, as the ipv4 equivalent of this test is not flaky. Is this flaky only on Mac? Hopefully #6581 should tell what's happening. I have never seen it fail here. |
Previously, the assertion changed in this commit would print the same message no matter which of the four test cases failed. The assert has been changed so that it will indicate which test case failed. Refs: nodejs#6577
It looks like the problem is that sometimes the messages are not received in order, which makes sense being UDP. See output from https://ci.nodejs.org/job/node-stress-single-test/nodes=osx1010/690 :
|
Could it be that the kernel decides to reorder the packets here for some reason? That’s allowed, although I can’t see why it would. But it would explain why the test is flaky and why this is an OS-specific issue. |
👍 I guess the IPv4 test has a chance of being flaky too, then? |
Is there an equivalent IPv4 test? I can't find it. |
@santigimeno test/parallel/test-dgram-send-default-host.js |
@addaleax Thanks! I guess it should also be rewritten |
Allow out of order replies in the flaky `test-dgram{-upd6,}-send-default-host.js` files by sorting the incoming replies after receiving them. Fixes: nodejs#6577 PR-URL: nodejs#6607 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Allow out of order replies in the flaky `test-dgram{-upd6,}-send-default-host.js` files by sorting the incoming replies after receiving them. PR-URL: nodejs#6607 Fixes: nodejs#6577 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Allow out of order replies in the flaky `test-dgram{-upd6,}-send-default-host.js` files by sorting the incoming replies after receiving them. PR-URL: #6607 Fixes: #6577 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Failure in CI on test of unrelated change: https://ci.nodejs.org/job/node-test-commit-osx/3210/nodes=osx1010/tapTestReport/test.tap-213/
/cc @nodejs/testing @addaleax
The text was updated successfully, but these errors were encountered: