Repository navigation
test: flaky test-net-can-reset-timeout #14241
Description
Activity
- addedflaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.freebsdIssues and PRs related to the FreeBSD platform.Issues and PRs related to the FreeBSD platform.netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.streamIssues and PRs related to Node.js streams.Issues and PRs related to Node.js streams.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
on Jul 14, 2017 Unsurprisingly, this is an issue with parallelism and is not specific to FreeBSD. It is probably just showing up on FreeBSD because that is one of our more parallelized hosts for tests in CI. It's also likely surfaced due to the start-up performance hit of turning off V8 snapshots; even though this test doesn't use
child_process, it's performance is likely impacted by more resources being required by other tests starting up and possibly starting sub-processes in parallel.Here is partial output of a reproduction on macOS:
$ tools/test.py -j 92 --repeat 920 test/parallel/test-net-can-reset-timeout.js === release test-net-can-reset-timeout === Path: parallel/test-net-can-reset-timeout timeout timeout server side end client side end Mismatched <anonymous> function calls. Expected exactly 1, actual 2. at Object.exports.mustCall (/Users/rtrott/io.js/test/common/index.js:480:10) at Server.<anonymous> (/Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js:31:31) at Server.<anonymous> (/Users/rtrott/io.js/test/common/index.js:512:15) at emitOne (events.js:115:13) at Server.emit (events.js:210:7) at TCP.onconnection (net.js:1553:8) Command: out/Release/node /Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js === release test-net-can-reset-timeout === Path: parallel/test-net-can-reset-timeout timeout timeout server side end client side end Mismatched <anonymous> function calls. Expected exactly 1, actual 2. at Object.exports.mustCall (/Users/rtrott/io.js/test/common/index.js:480:10) at Server.<anonymous> (/Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js:31:31) at Server.<anonymous> (/Users/rtrott/io.js/test/common/index.js:512:15) at emitOne (events.js:115:13) at Server.emit (events.js:210:7) at TCP.onconnection (net.js:1553:8) Command: out/Release/node /Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js === release test-net-can-reset-timeout === Path: parallel/test-net-can-reset-timeout timeout timeout server side end client side end Mismatched <anonymous> function calls. Expected exactly 1, actual 2. at Object.exports.mustCall (/Users/rtrott/io.js/test/common/index.js:480:10) at Server.<anonymous> (/Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js:31:31) at Server.<anonymous> (/Users/rtrott/io.js/test/common/index.js:512:15) at emitOne (events.js:115:13) at Server.emit (events.js:210:7) at TCP.onconnection (net.js:1553:8) Command: out/Release/node /Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js === release test-net-can-reset-timeout === Path: parallel/test-net-can-reset-timeout timeout timeout server side end client side end Mismatched <anonymous> function calls. Expected exactly 1, actual 2. at Object.exports.mustCall (/Users/rtrott/io.js/test/common/index.js:480:10) at Server.<anonymous> (/Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js:31:31) at Server.<anonymous> (/Users/rtrott/io.js/test/common/index.js:512:15) at emitOne (events.js:115:13) at Server.emit (events.js:210:7) at TCP.onconnection (net.js:1553:8) Command: out/Release/node /Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js === release test-net-can-reset-timeout === Path: parallel/test-net-can-reset-timeout timeout timeout server side end client side end Mismatched <anonymous> function calls. Expected exactly 1, actual 2. at Object.exports.mustCall (/Users/rtrott/io.js/test/common/index.js:480:10) at Server.<anonymous> (/Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js:31:31) at Server.<anonymous> (/Users/rtrott/io.js/test/common/index.js:512:15) at emitOne (events.js:115:13) at Server.emit (events.js:210:7) at TCP.onconnection (net.js:1553:8) Command: out/Release/node /Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js === release test-net-can-reset-timeout === Path: parallel/test-net-can-reset-timeout timeout timeout server side end client side end Mismatched <anonymous> function calls. Expected exactly 1, actual 2. at Object.exports.mustCall (/Users/rtrott/io.js/test/common/index.js:480:10) at Server.<anonymous> (/Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js:31:31) at Server.<anonymous> (/Users/rtrott/io.js/test/common/index.js:512:15) at emitOne (events.js:115:13) at Server.emit (events.js:210:7) at TCP.onconnection (net.js:1553:8) Command: out/Release/node /Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js === release test-net-can-reset-timeout === Path: parallel/test-net-can-reset-timeout timeout timeout server side end client side end Mismatched <anonymous> function calls. Expected exactly 1, actual 2. at Object.exports.mustCall (/Users/rtrott/io.js/test/common/index.js:480:10) at Server.<anonymous> (/Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js:31:31) at Server.<anonymous> (/Users/rtrott/io.js/test/common/index.js:512:15) at emitOne (events.js:115:13) at Server.emit (events.js:210:7) at TCP.onconnection (net.js:1553:8) Command: out/Release/node /Users/rtrott/io.js/test/parallel/test-net-can-reset-timeout.js
Problem occurs if the timeout fires more than once which can happen on a heavily loaded host. The test ought to permit
timeoutfiring multiple times. It was written for nodejs/node-v0.x-archive#481.Fix coming in a few minutes.
Fix is in #14257.
- added a commit that references this issue
on Jul 18, 2017 - added a commit that references this issue
on Jul 19, 2017 - added 3 commits that reference this issue
on Aug 16, 2017 - added a commit that references this issue
on Sep 5, 2017
masterhttps://ci.nodejs.org/job/node-test-commit-freebsd/10321/nodes=freebsd10-64/
The test:
/cc @nodejs/testing @nodejs/platform-freebsd @nodejs/streams
P.S. to whomever tackles this, could you add a comment explaining what this is testing a la doc/guides/writing-tests.md