Skip to content

eng: Introduce flag to skip post-command hook BNCH-89430#1

Merged
SongyuW merged 6 commits intomasterfrom
swang-temp-feature-test-BNCH-89430
Mar 19, 2024
Merged

eng: Introduce flag to skip post-command hook BNCH-89430#1
SongyuW merged 6 commits intomasterfrom
swang-temp-feature-test-BNCH-89430

Conversation

@SongyuW
Copy link
Copy Markdown

@SongyuW SongyuW commented Mar 18, 2024

Description

This PR introduce a new flag to completely skip post-command hook

Testing Done

Test PR: https://github.com/benchling/aurelia/pull/116898/files

The post hook command is skipped in the webpack cache with the flag set
https://buildkite.com/benchling/integration-tests/builds/275049#_
image

https://buildkite.com/benchling/monolith-tests/builds/420136#_
Prettier is unaffected without the flag update
image

@SongyuW SongyuW changed the title no message eng: Introduce flag to skip post-command hook BNCH-89430 Mar 18, 2024
@SongyuW SongyuW marked this pull request as ready for review March 19, 2024 04:16
@SongyuW SongyuW requested review from CodesperYu and kfbustam March 19, 2024 04:17
Comment thread tests/command.bats
@test "Post-command is not skipped by default" {

run "$PWD/hooks/post-command"
assert_output --partial ':bash: Processing'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for safety, would it make sense to add a refute that it's not skipping?

refute_output --partial 'SKIP_POST_COMMAND_HOOK flag Detected. Skipping...'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@SongyuW SongyuW merged commit 21e4e6c into master Mar 19, 2024
@SongyuW SongyuW deleted the swang-temp-feature-test-BNCH-89430 branch March 19, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants