Repository navigation
Investigate flaky test-dgram-udp6-send-default-host on OS X #6577
Description
Activity
- addeddgramIssues and PRs related to UDP and the dgram module.Issues and PRs related to UDP and the dgram module.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.macosIssues and PRs related to the macOS platform.Issues and PRs related to the macOS platform.
on May 4, 2016 /cc @mcollina
Have seen this failure locally a couple of times though I cannot reproduce it consistently :/.
Maybe useassert.strictEqualhere would help to find out what's going on.@santigimeno Yup, I had the same thought and am putting in the PR for that right now...
Reacted by Anna Henningsen- added a commit that references this issue
on May 4, 2016 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.
- added a commit that references this issue
on May 5, 2016 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 :
not ok 1 test-dgram-udp6-send-default-host.js # # assert.js:90 # throw new assert.AssertionError({ # ^ # AssertionError: 'hello' === 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy # at Socket.<anonymous> (/Users/iojs/build/workspace/node-stress-single-test/nodes/osx1010/test/parallel/test-dgram-udp6-send-default-host.js:29:10) # at emitTwo (events.js:106:13) # at Socket.emit (events.js:191:7) # at UDP.onMessage (dgram.js:532:8) --- duration_ms: 0.139Could 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
- added a commit that references this issue
on May 17, 2016
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