Uh oh!
There was an error while loading. Please reload this page.
tools: single, cross-platform tick processor - #2868
Conversation
Fishrock123
commented
Sep 15, 2015
I guess it can't since this depends on core modules. |
matthewloring
commented
Sep 15, 2015
Yea, unfortunately v8 doesn't want node specific scripts in their codebase (https://codereview.chromium.org/1179173009/). This change should be forward compatible for the most part since it copies in the logic from the JS scripts in v8. This script would only need updating when v8 processing scripts are added or removed and changes of this nature should be alerted through test/parallel/test-tick-processor |
There was a problem hiding this comment.
Does the copyright make sense here? This is all original code, right?
There was a problem hiding this comment.
I originally wasn't sure since I transliterated this from the bash script which was V8's. This is original code though. I've removed the copyright.
bnoordhuis
commented
Sep 15, 2015
There was a problem hiding this comment.
Unlike in shell, the $$ doesn't get expanded to be the process-id. I think you'll have to manually concatenate process.pid.
ofrobots
commented
Sep 15, 2015
The previous CI failed to launch due to |
bnoordhuis
commented
Sep 16, 2015
One more try, it looks like the CI was going through a spot of trouble: https://ci.nodejs.org/job/node-test-pull-request/313/ |
There was a problem hiding this comment.
Will cat be available in all the environments?
There was a problem hiding this comment.
Not on windows, it's type there. And why use cat, why not use node to read the files and pipe them to tempScript?
There was a problem hiding this comment.
Good catch! I've rewritten this but am not sure if my solution is idiomatic. @thefourtheye@sam-github Does this solution seem appropriate?
matthewloring
commented
Sep 16, 2015
@bnoordhuis Do these CI build failures seem to be caused by my PR specifically or are these general? |
bnoordhuis
commented
Sep 16, 2015
It's possible I forgot to tell the CI to rebase. Let's give it one more spin: https://ci.nodejs.org/job/node-test-pull-request/325/ |
bnoordhuis
commented
Sep 16, 2015
Sigh, Jenkins was just restarted. New run: https://ci.nodejs.org/job/node-test-pull-request/330/ |
Currently there are three separate tick processor scripts for mac, windows, and linux. These have been replaced with a single node.js script to improve maintainability and remove the need to preserve parallel logic in these separate places.
matthewloring
commented
Sep 17, 2015
Some of the Ubuntu machines are hanging but the CI looks clean otherwise. |
ofrobots
commented
Sep 17, 2015
Something jenkins, something something. New CI: https://ci.nodejs.org/job/node-test-pull-request/337/ |
matthewloring
commented
Sep 18, 2015
The armv7-wheezy failure is unrelated. Otherwise that run looks good! |
Currently there are three separate tick processor scripts for mac, windows, and linux. These have been replaced with a single node.js script to improve maintainability and remove the need to preserve parallel logic in these separate places. PR-URL: #2868 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
bnoordhuis
commented
Sep 18, 2015
Thanks Matt, landed in e0c3d2a. @thefourtheye You didn't formally LGTM it but I put you down as a reviewer anyway. |
thefourtheye
commented
Sep 18, 2015
@bnoordhuis Oops, sorry. Code looks okay to me, though I didn't get a chance to test it. |
Fishrock123
commented
Sep 20, 2015
What This removes the old scripts entirely but really doesn't seem |
matthewloring
commented
Sep 20, 2015
The profiler tools don't constitute part of the public API so I would guess |
Fishrock123
commented
Sep 20, 2015
Perhaps we should make those other files just call the new one for 4.x? |
ChALkeR
commented
Sep 20, 2015
@Fishrock123 Files changed in this PR aren't even packaged. Doesn't look like it deserves even a |
Currently there are three separate tick processor scripts for mac, windows, and linux. These have been replaced with a single node.js script to improve maintainability and remove the need to preserve parallel logic in these separate places. PR-URL: #2868 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Currently there are three separate tick processor scripts for
mac, windows, and linux. These have been replaced with a single
node.js script to improve maintainability and remove the need
to preserve parallel logic in these separate places.
/cc @ofrobots@bnoordhuis@Fishrock123@joaocgreis@Trott