-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(integ-runner): Fix call to spawnSync for hooks commands #22429
Merged
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a91c3c3
fix(integ-runner): Fix call to spawnSync for hooks commands
arewa 1b798f3
Additional tests
arewa 268a3f6
Merge branch 'main' into issue-22344
arewa c19f2ff
Merge branch 'main' into issue-22344
arewa 1661e8f
Merge branch 'main' into issue-22344
arewa a0d433f
Merge branch 'main' into issue-22344
arewa f71d813
Add sample integration test
arewa 8c44451
Merge branch 'main' into issue-22344
arewa 049852a
Merge branch 'main' into issue-22344
arewa 2021e09
Merge branch 'main' into issue-22344
arewa 85c88b3
Merge branch 'main' into issue-22344
arewa 4f5e259
Merge branch 'main' into issue-22344
arewa b15c9a8
Remove excess integ test
arewa 24f7ba8
Remove excess snapshots
arewa b015106
Merge branch 'main' into issue-22344
arewa 3fcd260
Merge branch 'main' into issue-22344
arewa 952b8a9
Merge branch 'main' into issue-22344
arewa 937e43d
Refator the solution
arewa c5ed430
Tiny update
arewa a899f7f
Tiny update
arewa 91f6884
Merge branch 'main' into issue-22344
arewa 5c93451
Merge branch 'main' into issue-22344
arewa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be
return chunks
instead?For example if I had
I would want it to return
['npx', 'cdk', 'deploy']
right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@corymhall, thank you for the comment, for the command you mentioned it could be like that. But for example for the command
echo "preDeploy hook"
if we just split it by space it will result in['echo', '"preDeploy', 'hook"']
which seems to be not the correct input forexec
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could do something like this instead in order to keep quoted sections together.
I think if you use arguments with spawnSync each argument to the command needs to be its own element in the list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, make sense, I updated the solution. Thank you again for the review.