-
Notifications
You must be signed in to change notification settings - Fork 12
fix: clear cache and retry on cvmfs installation failure #48
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: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,8 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Fail on errors | ||
| set -e | ||
|
|
||
| # Platform specific install | ||
| if [ "$(uname)" == "Linux" ]; then | ||
| # download from cache | ||
|
|
@@ -23,7 +26,16 @@ if [ "$(uname)" == "Linux" ]; then | |
| echo "::group::Installing cvmfs" | ||
| sudo rm -f /var/lib/man-db/auto-update | ||
| sudo apt-get -q update | ||
| # Attempt install | ||
| sudo apt-get -q -y install cvmfs | ||
| if [ $? -ne 0 ]; then | ||
| # If it fails, try to clear cache and try again | ||
| echo "First attempt to install cvmfs failed, trying to clear cache and retrying" | ||
| sudo rm -rf /var/cache/apt/archives | ||
| sudo rm -rf /var/cache/apt/lists | ||
| sudo apt-get -q update | ||
| sudo apt-get -q -y install cvmfs | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know this is unlikely to fail again, but you should probably check anyway given why you are introducing this change
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I just don't think this PR is the right solution. If you look at your original failing pipeline: https://github.com/DUNE-DAQ/daq-release/actions/runs/16244930712/job/45866367226#step:3:58, you'll see that it is already running in I have been trying to find some way to trigger this issue (GHA or locally), but no luck so far. |
||
| fi | ||
| # install cvmfs config package | ||
| if [ "${CVMFS_CONFIG_PACKAGE}" == "cvmfs-config-default" ]; then | ||
| sudo apt-get -q -y install cvmfs-config-default | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.