You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate flaky test-dgram-udp6-send-default-host on OS X #6577
not ok 213 test-dgram-udp6-send-default-host.js
#
# assert.js:90
# throw new assert.AssertionError({
# ^
# AssertionError: message was received correctly
# at Socket.<anonymous> (/Users/iojs/build/workspace/node-test-commit-osx/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.145
Have seen this failure locally a couple of times though I cannot reproduce it consistently :/.
Maybe use assert.strictEqualhere would help to find out what's going on.
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.
Activity
Trott commentedon May 4, 2016
/cc @mcollina
Trott commentedon May 4, 2016
Stress test: https://ci.nodejs.org/job/node-stress-single-test/687/nodes=osx1010/
santigimeno commentedon May 4, 2016
Have seen this failure locally a couple of times though I cannot reproduce it consistently :/.
Maybe use
assert.strictEqualhere would help to find out what's going on.Trott commentedon May 4, 2016
@santigimeno Yup, I had the same thought and am putting in the PR for that right now...
test: improve assert message for debugging
Trott commentedon May 4, 2016
#6581
mcollina commentedon May 5, 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.
test: improve assert message for debugging
santigimeno commentedon 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 :
addaleax commentedon May 5, 2016
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.
santigimeno commentedon May 5, 2016
@addaleax Some comments here like this suggest that could be the reason
addaleax commentedon May 5, 2016
👍 I guess the IPv4 test has a chance of being flaky too, then?
santigimeno commentedon May 5, 2016
Is there an equivalent IPv4 test? I can't find it.
addaleax commentedon May 5, 2016
@santigimeno test/parallel/test-dgram-send-default-host.js
santigimeno commentedon May 5, 2016
@addaleax Thanks! I guess it should also be rewritten
test: allow out-of-order replies in dgram tests