Skip to content
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

Update rapids-upload-to-anaconda Error Handling #25

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

ajschmidt8
Copy link
Member

@ajschmidt8 ajschmidt8 commented Nov 7, 2022

In a recent GitHub Actions run (link), the rapids-upload-to-anaconda script failed due to missing AWS credentials. However, since the bash error handling wasn't configured properly, the GH Action run was reported as a success.

This PR updates the script to ensure that this issue doesn't happen again.

Note that inherit_errexit (link) would also work for this use case, but it's only supported on bash versions 4.4+ and centos7 has bash version 4.2. So that option was skipped for this situation since some of our containers are centos7 based.

In a recent GitHub Actions run ([link](https://github.com/rapidsai/rapids-cmake/actions/runs/3413106288/jobs/5679670752#step:6:11)), the `rapids-upload-to-anaconda` script failed due to missing AWS credentials. However, since the bash error handling wasn't configured properly, the GH Action run was reported as a success.

This PR updates the script to ensure that this issue doesn't happen again.

Note that `inherit_errexit` ([link](https://saveriomiroddi.github.io/Additional-shell-options-for-non-trivial-bash-shell-scripts/#inherit_errexit)) would also work for this use case, but it's only supported on `bash` versions `4.4+` and `centos7` has `bash` version `4.2`. So that option was skipped for this situation.
@ajschmidt8 ajschmidt8 merged commit f936ddc into rapidsai:main Nov 7, 2022
@ajschmidt8 ajschmidt8 deleted the err-handling branch November 7, 2022 19:38
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.

2 participants