Skip to content
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

Flaky test-net-connect-local-error #18658

Closed
BridgeAR opened this issue Feb 8, 2018 · 3 comments
Closed

Flaky test-net-connect-local-error #18658

BridgeAR opened this issue Feb 8, 2018 · 3 comments
Labels
flaky-test Issues and PRs related to the tests with unstable failures on the CI. freebsd Issues and PRs related to the FreeBSD platform. net Issues and PRs related to the net subsystem. test Issues and PRs related to the tests.

Comments

@BridgeAR
Copy link
Member

BridgeAR commented Feb 8, 2018

https://ci.nodejs.org/job/node-test-commit-freebsd/15207/nodes=freebsd11-x64/console

not ok 2100 sequential/test-net-connect-local-error
  ---
  duration_ms: 0.233
  severity: fail
  stack: |-
    assert.js:74
      throw new AssertionError(obj);
      ^
    
    AssertionError [ERR_ASSERTION]: undefined strictEqual 12347
        at Socket.onError (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/sequential/test-net-connect-local-error.js:18:10)
        at Socket.<anonymous> (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/common/index.js:475:15)
        at Socket.emit (events.js:131:13)
        at emitErrorNT (internal/streams/destroy.js:64:8)
        at process._tickCallback (internal/process/next_tick.js:91:19)
  ...
@BridgeAR BridgeAR added net Issues and PRs related to the net subsystem. test Issues and PRs related to the tests. freebsd Issues and PRs related to the FreeBSD platform. flaky-test Issues and PRs related to the tests with unstable failures on the CI. labels Feb 8, 2018
@apapirovski
Copy link
Member

Presumably it's hitting this path:

node/lib/net.js

Lines 975 to 985 in 6963a93

if (err) {
var sockname = self._getsockname();
var details;
if (sockname) {
details = sockname.address + ':' + sockname.port;
}
const ex = exceptionWithHostPort(err, 'connect', address, port, details);
self.destroy(ex);
}

Instead of the one it's supposed to (afterConnect).

Anyone from @nodejs/http have any insights?

@BridgeAR
Copy link
Member Author

@apapirovski
Copy link
Member

If I had to guess, this failure is related to the FreeBSD "jail" in our common file. It's failing before it even gets past the lookup which means it's failing on the IPv4 address. It's possible the process.env.LOCALHOST is set to something weird or something else strange happens? The fact that this only fails occasionally is rather confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Issues and PRs related to the tests with unstable failures on the CI. freebsd Issues and PRs related to the FreeBSD platform. net Issues and PRs related to the net subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

No branches or pull requests

2 participants