test: decrease duration of test-cli-syntax#14187
Closed
evanlucas wants to merge 1 commit intonodejs:masterfrom
Closed
test: decrease duration of test-cli-syntax#14187evanlucas wants to merge 1 commit intonodejs:masterfrom
evanlucas wants to merge 1 commit intonodejs:masterfrom
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.
Contributor
Author
cjihrig
approved these changes
Jul 12, 2017
Member
|
Like the other changes to address the slowdown caused by disabling snapshots I'd suggest we expedite landing this one as well. |
refack
approved these changes
Jul 12, 2017
| const common = require('../common'); | ||
| const assert = require('assert'); | ||
| const spawnSync = require('child_process').spawnSync; | ||
| const {exec, spawnSync} = require('child_process'); |
Contributor
Author
There was a problem hiding this comment.
Is that a lint rule? If so, when did that change?
Contributor
There was a problem hiding this comment.
Is that a lint rule? If so, when did that change?
about to land...
Contributor
|
Why not refactor the other two uses of |
Contributor
Author
|
@refack they use spawnSync's |
Contributor
Author
Member
|
CI was good landing. |
Member
|
Landed as a74ddff |
mhdawson
pushed a commit
that referenced
this pull request
Jul 13, 2017
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 <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Contributor
Author
|
Ah thanks @mhdawson. I meant to land this morning but forgot about it. :] |
Merged
addaleax
pushed a commit
that referenced
this pull request
Jul 18, 2017
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 <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Fishrock123
pushed a commit
that referenced
this pull request
Jul 19, 2017
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 <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Contributor
|
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 |
MylesBorins
pushed a commit
that referenced
this pull request
Feb 13, 2018
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 <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
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 free
to 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.
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