Skip to content

test: deflake test-tls-passphrase - #29134

Closed
lpinca wants to merge 1 commit into
nodejs:masterfrom
lpinca:deflake/test-tls-passphrase
Closed

test: deflake test-tls-passphrase#29134
lpinca wants to merge 1 commit into
nodejs:masterfrom
lpinca:deflake/test-tls-passphrase

Conversation

@lpinca

@lpincalpinca commented Aug 15, 2019

Copy link
Copy Markdown
Member

Move socket.end() to client.

Fixes: #28111
Refs: #27569

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Aug 15, 2019
@lpinca

Copy link
Copy Markdown
MemberAuthor
$ ./tools/test.py -J --repeat=500 test/parallel/test-tls-passphrase.js === release test-tls-passphrase === Path: parallel/test-tls-passphrase
events.js:186
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:183:27)
Emitted 'error' event on TLSSocket instance at:
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
errno: -54,
code: 'ECONNRESET',
syscall: 'read'
}
Command: out/Release/node /Users/luigi/code/node/test/parallel/test-tls-passphrase.js
=== release test-tls-passphrase === Path: parallel/test-tls-passphrase
events.js:186
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:183:27)
Emitted 'error' event on TLSSocket instance at:
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
errno: -54,
code: 'ECONNRESET',
syscall: 'read'
}
Command: out/Release/node /Users/luigi/code/node/test/parallel/test-tls-passphrase.js
...

@lpincalpinca added macos Issues and PRs related to the macOS platform / OSX. flaky-test Issues and PRs related to the tests with unstable failures on the CI. labels Aug 15, 2019
@lpinca

Copy link
Copy Markdown
MemberAuthor

cc: @sam-github

@bnoordhuisbnoordhuis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a suggestion.

Comment threadtest/parallel/test-tls-passphrase.js Outdated
@lpinca
lpincaforce-pushed the deflake/test-tls-passphrase branch from 20c24fd to 6db2364CompareAugust 15, 2019 10:19

@sam-githubsam-github left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lpinca It looks like you are changing it so client ends connection rather than server, to prevent races. Is it still flaky, or not flaky? I'm not sure if the errors you pinged me about were before or after your fix. The changes LGTM

@lpinca

Copy link
Copy Markdown
MemberAuthor

The error is before fix, it is no longer flaky now unless I raise --repeat to 1000. After that a new errors occurs (EADDRNOTAVAIL) but that is a different issue. See #28337 (comment).

Also it looks this fixes #28111. Will add the "Fixes:" metadata.

Move `socket.end()` to client.
Fixes: nodejs#28111
Refs: nodejs#27569
@lpinca
lpincaforce-pushed the deflake/test-tls-passphrase branch from 6db2364 to 6d6de17CompareAugust 15, 2019 16:11
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@Trott

Copy link
Copy Markdown
Member

Landed in a0cc62f

@TrottTrott closed this Aug 19, 2019
Trott pushed a commit that referenced this pull request Aug 19, 2019
Move `socket.end()` to client.
Fixes: #28111
Refs: #27569
PR-URL: #29134
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@lpinca
lpinca deleted the deflake/test-tls-passphrase branch August 19, 2019 20:00
targos pushed a commit that referenced this pull request Aug 20, 2019
Move `socket.end()` to client.
Fixes: #28111
Refs: #27569
PR-URL: #29134
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@targostargos mentioned this pull request Aug 20, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flaky-testIssues and PRs related to the tests with unstable failures on the CI.macosIssues and PRs related to the macOS platform / OSX.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate flaky parallel/test-tls-passphrase on OS X

7 participants

@lpinca@nodejs-github-bot@Trott@sam-github@bnoordhuis@jasnell@cjihrig