Uh oh!
There was an error while loading. Please reload this page.
test: decrease duration of test-cli-syntax - #14187
Conversation
Previously, test/parallel/test-cli-syntax.js was spawning a lot of child processes, but using spawnSync, which made the test run each child process serially. This switches most of the test cases to use exec so that they are asynchronous. Locally, the test went from > 5 seconds to under 2 seconds.
evanlucas
commented
Jul 12, 2017
mhdawson
commented
Jul 12, 2017
Like the other changes to address the slowdown caused by disabling snapshots I'd suggest we expedite landing this one as well. |
| const common = require('../common'); | ||
| const assert = require('assert'); | ||
| const spawnSync = require('child_process').spawnSync; | ||
| const {exec, spawnSync} = require('child_process'); |
There was a problem hiding this comment.
Is that a lint rule? If so, when did that change?
There was a problem hiding this comment.
Is that a lint rule? If so, when did that change?
about to land...
refack
commented
Jul 12, 2017
Why not refactor the other two uses of |
evanlucas
commented
Jul 12, 2017
@refack they use spawnSync's |
evanlucas
commented
Jul 13, 2017
Trying CI one more time https://ci.nodejs.org/job/node-test-pull-request/9108/ |
mhdawson
commented
Jul 13, 2017
CI was good landing. |
mhdawson
commented
Jul 13, 2017
Landed as a74ddff |
Previously, test/parallel/test-cli-syntax.js was spawning a lot of child processes, but using spawnSync, which made the test run each child process serially. This switches most of the test cases to use exec so that they are asynchronous. Locally, the test went from > 5 seconds to under 2 seconds. PR-URL: #14187 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
evanlucas
commented
Jul 13, 2017
Ah thanks @mhdawson. I meant to land this morning but forgot about it. :] |
Previously, test/parallel/test-cli-syntax.js was spawning a lot of child processes, but using spawnSync, which made the test run each child process serially. This switches most of the test cases to use exec so that they are asynchronous. Locally, the test went from > 5 seconds to under 2 seconds. PR-URL: #14187 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Previously, test/parallel/test-cli-syntax.js was spawning a lot of child processes, but using spawnSync, which made the test run each child process serially. This switches most of the test cases to use exec so that they are asynchronous. Locally, the test went from > 5 seconds to under 2 seconds. PR-URL: #14187 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
MylesBorins
commented
Aug 16, 2017
This does not land cleanly in LTS. Please feel free to manually backport by following the guide. Please also feel free to replace do-not-land if it is being backported |
Previously, test/parallel/test-cli-syntax.js was spawning a lot of child processes, but using spawnSync, which made the test run each child process serially. This switches most of the test cases to use exec so that they are asynchronous. Locally, the test went from > 5 seconds to under 2 seconds. PR-URL: #14187 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Previously, test/parallel/test-cli-syntax.js was spawning a lot of child
processes, but using spawnSync, which made the test run each child
process serially. This switches most of the test cases to use exec so
that they are asynchronous. Locally, the test went from > 5 seconds to
under 2 seconds.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test