| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
It's included in Git bash. From BUILDING.md:
|
Sorry, something went wrong.
|
I want this. |
Sorry, something went wrong.
There was a problem hiding this comment.
The recommended test is common.isWindows (assign const common on L23)
Sorry, something went wrong.
There was a problem hiding this comment.
add common.mustCall
Sorry, something went wrong.
There was a problem hiding this comment.
not needed
Sorry, something went wrong.
There was a problem hiding this comment.
add common.mustCall
Sorry, something went wrong.
There was a problem hiding this comment.
not needed
Sorry, something went wrong.
There was a problem hiding this comment.
Not needed.
Sorry, something went wrong.
|
Pushed commit to address comments. |
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: nodejs#14099 Reviewed-By: Refael Ackermann <refack@gmail.com>
|
Sanity: https://ci.nodejs.org/job/node-test-commit-linuxone/7155/ ✔️ |
Sorry, something went wrong.
|
@starkwang might will need a followup PR to fix this flakiness: not ok 235 parallel/test-process-kill-null
---
duration_ms: 0.255
severity: fail
stack: |-
internal/process.js:190
throw errnoException(err, 'kill');
^
Error: kill ESRCH
at exports._errnoException (util.js:1023:11)
at process.kill (internal/process.js:190:13)
at Socket.<anonymous> (c:\workspace\node-test-binary-windows\RUN_SUBSET\3\VS_VERSION\vs2015\label\win2012r2\test\parallel\test-process-kill-null.js:38:11)
at Socket.<anonymous> (c:\workspace\node-test-binary-windows\RUN_SUBSET\3\VS_VERSION\vs2015\label\win2012r2\test\common\index.js:518:15)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)
at addChunk (_stream_readable.js:252:12)
at readableAddChunk (_stream_readable.js:239:11)
at Socket.Readable.push (_stream_readable.js:197:10)
at Pipe.onread (net.js:589:20)
...
Running another windows CI: https://ci.nodejs.org/job/node-test-commit-windows-fanned/10278/ |
Sorry, something went wrong.
This reverts commit 44483b6. PR-URL: nodejs#14142 Fixes: nodejs#14141 Refs: nodejs#14099 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
|
@nodejs/platform-windows could the kill ESRCH ("No such process") actually be a bug? child.stdout.on('data', common.mustCall(function() {
process.kill(child.pid, 'SIGKILL');
} |
Sorry, something went wrong.
|
It probably means the child has exited before the kill was attempted. https://nodejs.org/dist/latest-v8.x/docs/api/child_process.html#child_process_child_kill_signal
|
Sorry, something went wrong.
It's more a case of https://nodejs.org/dist/latest-v8.x/docs/api/process.html#process_process_kill_pid_signal
But presumably in this case we attempt to kill only if we get something from stdout. |
Sorry, something went wrong.
|
The child process can exit between Node.js reading stdout and calling the on 'data' callback. |
Sorry, something went wrong.
|
@refack can you open a new PR? Now this has been reverted I don't think we should keep using it, it's likely to confuse things like branch-diff (and collaborators!). IDK if there's a standard way to do this, but don't land a PR twice seems like a reasonable rule. |
Sorry, something went wrong.
I consulted with @addaleax and @Trott and this seems like the "standard" way 🤷♂️ |
Sorry, something went wrong.
|
I wouldn’t know that there’s a standard way to handle this either. Opening a new PR is certainly easier for everyone and will make sure the new commit won’t get overlooked, but reverts are probably rare enough that handling them manually is feasible. |
Sorry, something went wrong.
|
@starkwang Would you like to open a new PR for this? |
Sorry, something went wrong.
|
Yes, I'd like to do it. I'm trying to reproduce the flakiness locally. |
Sorry, something went wrong.
|
@starkwang you could try spawn('type con', { shell: true }) that will start cmd.exe with the right arguments to run type con which is sort of the equivalent to cat with no args |
Sorry, something went wrong.
|
P.S. @starkwang if you want your full name in the logs you could follow https://help.github.com/articles/setting-your-username-in-git/ |
Sorry, something went wrong.
|
So at the moment your Git author name and email address are set to: starkwang <381152119@qq.com> People usually choose to use their full names for commits. To set your name globally you can do: git config --global user.name "Weijia Wang"
git config --global user.email "381152119@qq.com"To change the author for a single commit you can do: git commit --amend --author="Weijia Wang <381152119@qq.com>"
git push --force-with-leaseIt's entirely optional. |
Sorry, something went wrong.
|
@gibfahn Thanks for your suggestion! :D |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The test-process-kill-null.js failed in Windows because cat command is invalid for Windows cmd.
Checklist
Affected core subsystem(s)
test