Skip to content

Conversation

@Trott
Copy link
Member

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test V8_inspector

Description of change

Using socket.destroy() instead of socket.end() fixes
more-than-intermittent ECONNRESET issues on Windows.

Fixes: #8804

/cc @eugeneo@gibfahn

Stress test on master showing 93 failures in 100 runs on Windows 10: https://ci.nodejs.org/job/node-stress-single-test/1063/nodes=win10/console

Stress test with this change showing 0 failures in 100 runs on Windows 10:
https://ci.nodejs.org/job/node-stress-single-test/1066/nodes=win10/console

@TrottTrott added test Issues and PRs related to the tests. inspector Issues and PRs related to the V8 inspector protocol windows Issues and PRs related to the Windows platform. labels Nov 21, 2016
@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Nov 21, 2016
@Trott
Copy link
MemberAuthor

Copy link
Member

@gibfahngibfahn left a comment

Choose a reason for hiding this comment

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

LGTM. Interesting that it's the opposite to what @santigimeno suggested in #5386 (comment).

Is there a reason you only ran the test 100 times? Don't we normally run 9999 times to check for flakyness?

@Trott
Copy link
MemberAuthor

Trott commented Nov 21, 2016

Is there a reason you only ran the test 100 times? Don't we normally run 9999 times to check for flakyness?

Normally, yes, but ~93% failure rate makes it seem like 100 is enough. But hey, let's go big: https://ci.nodejs.org/job/node-stress-single-test/1068/nodes=win10/console

UPDATE: 9999 runs and it's all ✅ green.

@Trott
Copy link
MemberAuthor

CI is ✅ green!

Copy link
Contributor

@eugeneoeugeneo left a comment

Choose a reason for hiding this comment

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

Thanks!

Using `socket.destroy()` instead of `socket.end()` fixes more-than-intermittent ECONNRESET issues on Windows. Fixes: nodejs#8804
@Trott
Copy link
MemberAuthor

Made a small change (removed the flaky designation for the test in inspector.status). Re-running CI out of an abundance of caution: https://ci.nodejs.org/job/node-test-pull-request/4940/

Trott added a commit to Trott/io.js that referenced this pull request Nov 23, 2016
Using `socket.destroy()` instead of `socket.end()` fixes more-than-intermittent ECONNRESET issues on Windows. PR-URL: nodejs#9727Fixes: nodejs#8804 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]>
@Trott
Copy link
MemberAuthor

Landed in 2486273. Welcome back, green CI. Please stay a while, will ya?

@TrottTrott closed this Nov 23, 2016
addaleax pushed a commit that referenced this pull request Dec 5, 2016
Using `socket.destroy()` instead of `socket.end()` fixes more-than-intermittent ECONNRESET issues on Windows. PR-URL: #9727Fixes: #8804 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]>
@Fishrock123Fishrock123 mentioned this pull request Dec 5, 2016
2 tasks
addaleax pushed a commit to addaleax/node that referenced this pull request Dec 8, 2016
Using `socket.destroy()` instead of `socket.end()` fixes more-than-intermittent ECONNRESET issues on Windows. PR-URL: nodejs#9727Fixes: nodejs#8804 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 21, 2016
Using `socket.destroy()` instead of `socket.end()` fixes more-than-intermittent ECONNRESET issues on Windows. PR-URL: #9727Fixes: #8804 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Dec 21, 2016
@TrottTrott deleted the fix-test-inspector branch January 13, 2022 22:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inspectorIssues and PRs related to the V8 inspector protocoltestIssues and PRs related to the tests.windowsIssues and PRs related to the Windows platform.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

investigate flaky inspector/test-inspector on Windows

5 participants

@Trott@eugeneo@gibfahn@addaleax@nodejs-github-bot