You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above case the script there failed, because of some misconfiguration, but the GH Job step didn't fail at all. The above is a bug since we can't accurately understand what went wrong and need to further look at all steps to find the one that failed.
To Reproduce
Try and call a bash script, that doesn't set -xe, and one of its sub-commands fail. In this case the overall bash script will just continue.
Environment
Any GH action
Relevant Log Output
.
Additional Context
To avoid this, we should:
Use python everywhere possible instead of bash scripts
Set set -xe in the bash scripts, to ensure they exit on failure
The text was updated successfully, but these errors were encountered:
> Get images
...
++ bash ./tools/get-images.sh
Error: open ./net-istio.yaml: no such file or directory
rm: cannot remove 'net-istio.yaml': No such file or directory
Will go on and close this issue and scope it for the scanning scripts, but the same should apply for all bash scripts
Bug Description
Observed it firstly in the following code
bundle-kubeflow/.github/workflows/scan-images.yaml
Line 56 in b226918
In the above case the script there failed, because of some misconfiguration, but the GH Job step didn't fail at all. The above is a bug since we can't accurately understand what went wrong and need to further look at all steps to find the one that failed.
To Reproduce
Try and call a bash script, that doesn't
set -xe
, and one of its sub-commands fail. In this case the overall bash script will just continue.Environment
Any GH action
Relevant Log Output
.
Additional Context
To avoid this, we should:
set -xe
in the bash scripts, to ensure they exit on failureThe text was updated successfully, but these errors were encountered: