Uh oh!
There was an error while loading. Please reload this page.
test: fix flaky test-tls-socket-close - #13529
Conversation
Add error listener to ignore `ECONNRESET`. Makes test reliable while it still segfaults (as expected) on Node.js 7.7.3. It might not be possible to eliminate the probable race causing `ECONNRESET` without also eliminating the required segfault-inducing part of the test. (Or maybe it's totally possible. If you figure it out, hey cool, submit a pull request.) Fixes: nodejs#13184
Trott
commented
Jun 7, 2017
CI: https://ci.nodejs.org/job/node-test-pull-request/8540/ Stress test on master/osx1010 (should fail, demonstrating the test is currently flaky): https://ci.nodejs.org/job/node-stress-single-test/1279/ Same stress test on this PR/osx1010 (should succeed, showing this change fixes the flakiness): If anyone verifies the segfault on Node.js 7.7.3, note that both the original test and this version of it only segfault around 40% of the time (or at least that's what I'm getting). (I guess a PR that improves that to 100% or closer to 100% would be welcome, as long as it doesn't re-introduce flakiness.) |
Trott
commented
Jun 9, 2017
Sole CI failure is unrelated. Stress tests also look good. |
Add error listener to ignore `ECONNRESET`. Makes test reliable while it still segfaults (as expected) on Node.js 7.7.3. It might not be possible to eliminate the probable race causing `ECONNRESET` without also eliminating the required segfault-inducing part of the test. (Or maybe it's totally possible. If you figure it out, hey cool, submit a pull request.) PR-URL: nodejs#13529Fixes: nodejs#13184 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Trott
commented
Jun 10, 2017
Landed in dde4f0f |
Add error listener to ignore `ECONNRESET`. Makes test reliable while it still segfaults (as expected) on Node.js 7.7.3. It might not be possible to eliminate the probable race causing `ECONNRESET` without also eliminating the required segfault-inducing part of the test. (Or maybe it's totally possible. If you figure it out, hey cool, submit a pull request.) PR-URL: #13529Fixes: #13184 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add error listener to ignore `ECONNRESET`. Makes test reliable while it still segfaults (as expected) on Node.js 7.7.3. It might not be possible to eliminate the probable race causing `ECONNRESET` without also eliminating the required segfault-inducing part of the test. (Or maybe it's totally possible. If you figure it out, hey cool, submit a pull request.) PR-URL: #13529Fixes: #13184 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add error listener to ignore
ECONNRESET. Makes test reliable while itstill segfaults (as expected) on Node.js 7.7.3. It might not be possible
to eliminate the probable race causing
ECONNRESETwithout alsoeliminating the required segfault-inducing part of the test. (Or maybe
it's totally possible. If you figure it out, hey cool, submit a pull
request.)
Fixes: #13184
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test tls