-
Notifications
You must be signed in to change notification settings - Fork 0
✨ Include health tests for a PRD docker image #4
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
Conversation
rahulpatidar0191
commented
Dec 4, 2023
- Added a condition to run health test on a PRD docker image
- Added a parameter so that all the tests can also run on PRD test image that includes dev dependencies
- Ref:
- Slack conversation
- Tested on this branch
scripts/ValidateCode.sh
Outdated
| if [[ -n $DEV_ARG ]] | ||
| then |
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.
issue: A better way to do this is to exit early. Instead of having to scroll down to check what happens after this if statement, I then know that everything else below is for DEV only since otherwise we exit the script entirely.
(Check the code below, my bash knowledge is rusty.
| if [[ -n $DEV_ARG ]] | |
| then | |
| if [[ -z $DEV_ARG ]] | |
| then | |
| exit 0 |
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.
It works
scripts/ValidateCode.sh
Outdated
| if [[ -z $DEV_ARG ]] | ||
| then | ||
| exit 0 | ||
| else |
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.
Unnecessary!
Get rid of it and the diff between this PR and main will be a lot smaller too once you revert the indentation of the lines below!
| else |
hillairet
left a comment
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.
Sweet!
Co-authored-by: Anthony Hillairet <anthony.hillairet@gmail.com>