Uh oh!
There was an error while loading. Please reload this page.
test: use log only in test-child-process-fork-net - #20873
Closed
Trott wants to merge 1 commit into
Closed
Conversation
We are currently having issues with test-child-process-fork-net on Windows CI. Debugging is slightly hampered by the mix of `console.log()` and `console.error()` as our test runner does not interleave stdout and stderr, so the order of output is not preserved. Change the sole instance of `console.error()` to `console.log()` to improve debugability. While editing, I also took the opportunity to add capitalization and punctuation to comments (as that is a nit we see from time to time and there is a potential ESLint rule to enforce the capitalization part).
Trott
commented
May 21, 2018
MemberAuthor
Trott
commented
May 21, 2018
MemberAuthor
Rerun plinux: https://ci.nodejs.org/job/node-test-commit-plinux/17827/ |
Trott
commented
May 21, 2018
MemberAuthor
Rerun LinuxONE: https://ci.nodejs.org/job/node-test-commit-linuxone/1483/ |
Trott
commented
May 21, 2018
MemberAuthor
Rerun arm-fanned: https://ci.nodejs.org/job/node-test-commit-arm-fanned/1372/ |
richardlau
approved these changes
May 21, 2018
trivikr
approved these changes
May 21, 2018
Trott
commented
May 21, 2018
MemberAuthor
Output for the failure on Windows now makes more sense: not ok 52 parallel/test-child-process-fork-net --- duration_ms: 0.324 severity: fail exitcode: 1 stack: |- PARENT: server listening CHILD: server listening CLIENT: connected PARENT: got connection CLIENT: connected CHILD: got connection CLIENT: closed CHILD: got connection CHILD: got connection CLIENT: closed CLIENT: connected CLIENT: connected CLIENT: closed CLIENT: closed PARENT: server closed testSocket, listening CHILD: got socket CLIENT: got data CLIENT: closed events.js:167 throw er; // Unhandled 'error' event ^ Error: write EPIPE at ChildProcess.target._send (internal/child_process.js:741:20) at ChildProcess.target.send (internal/child_process.js:625:19) at SocketListSend._request (internal/socket_list.js:20:16) at SocketListSend.close (internal/socket_list.js:40:10) at Server.close (net.js:1624:24) at Socket.<anonymous> (c:\workspace\node-test-binary-windows\test\parallel\test-child-process-fork-net.js:178:16) at Socket.emit (events.js:182:13) at TCP._handle.close [as _onclose] (net.js:596:12) Emitted 'error' event at: at process.nextTick (internal/child_process.js:745:39) at process._tickCallback (internal/process/next_tick.js:61:11) ... |
lpinca
approved these changes
May 22, 2018
jasnell
approved these changes
May 22, 2018
cjihrig
approved these changes
May 23, 2018
jasnell pushed a commit
that referenced
this pull request
May 23, 2018
We are currently having issues with test-child-process-fork-net on Windows CI. Debugging is slightly hampered by the mix of `console.log()` and `console.error()` as our test runner does not interleave stdout and stderr, so the order of output is not preserved. Change the sole instance of `console.error()` to `console.log()` to improve debugability. While editing, I also took the opportunity to add capitalization and punctuation to comments (as that is a nit we see from time to time and there is a potential ESLint rule to enforce the capitalization part). PR-URL: #20873 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
jasnell
commented
May 23, 2018
Member
Landed in c82a958 |
targos pushed a commit
that referenced
this pull request
May 25, 2018
We are currently having issues with test-child-process-fork-net on Windows CI. Debugging is slightly hampered by the mix of `console.log()` and `console.error()` as our test runner does not interleave stdout and stderr, so the order of output is not preserved. Change the sole instance of `console.error()` to `console.log()` to improve debugability. While editing, I also took the opportunity to add capitalization and punctuation to comments (as that is a nit we see from time to time and there is a potential ESLint rule to enforce the capitalization part). PR-URL: #20873 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We are currently having issues with test-child-process-fork-net on
Windows CI. Debugging is slightly hampered by the mix of
console.log()and
console.error()as our test runner does not interleave stdout andstderr, so the order of output is not preserved. Change the sole
instance of
console.error()toconsole.log()to improvedebugability.
While editing, I also took the opportunity to add capitalization and
punctuation to comments (as that is a nit we see from time to time and
there is a potential ESLint rule to enforce the capitalization part).
Please 👍 this to fast-track. Thanks.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes