Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Merged
merged 6 commits into from
Mar 19, 2024

Conversation

SongyuW
Copy link

@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

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

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
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
2 checks passed
@SongyuW SongyuW deleted the swang-temp-feature-test-BNCH-89430 branch March 19, 2024 17:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants