-
Notifications
You must be signed in to change notification settings - Fork 204
Update ush scripts to comply with bash static code checkers #4292
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
base: develop
Are you sure you want to change the base?
Update ush scripts to comply with bash static code checkers #4292
Conversation
DavidHuber-NOAA
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.
Looks good overall. A few suggestions and questions.
| "${EXECgfs}/${pgm}" 1> "prnc_${WAVECUR_FID}_${ymdh_rtofs}.out" 2>&1 | ||
| export err=$? | ||
| err_chk | ||
| if [[ "${err}" -ne 0 ]]; then | ||
| cat "prnc_${WAVECUR_FID}_${ymdh_rtofs}.out" | ||
| echo "WARNING: NON-FATAL ERROR IN ${pgm}." | ||
| exit 4 | ||
| fi |
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.
@JessicaMeixner-NOAA Should this be a fatal error or not? err_chk is going to exit completely if err is not 0, so the WARNING will never be printed.
DavidHuber-NOAA
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.
Just one addition needed to retain noaacloud support.
dev/ush/load_modules.sh
Outdated
| module use "${HOMEgfs}/sorc/gdas.cd/modulefiles" | ||
|
|
||
| case "${MACHINE_ID}" in | ||
| "hera" | "orion" | "hercules" | "wcoss2" | "gaeac5" | "gaeac6" | "ursa") |
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.
| "hera" | "orion" | "hercules" | "wcoss2" | "gaeac5" | "gaeac6" | "ursa") | |
| "hera" | "orion" | "hercules" | "wcoss2" | "gaeac5" | "gaeac6" | "ursa" | "noaacloud") |
|
Launching CI tests. |
DavidHuber-NOAA
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.
Approve pending successful CI testing.
Description
Updates the ush scripts (including dev/ush) to be compliant with the static bash code analysis checkers.
Also updates the reporter for the GH action so that it should be able to post recommendations on PRs.
Type of change
Change characteristics
How has this been tested?
Checklist