Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions setup-cvmfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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
Copy link
Contributor

Choose a reason for hiding this comment

The 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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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 bash -e, so doing something like if [ $? -ne 0 ] is not going to catch this since we probably don't even return a failing exit code from apt-get install (or we would have bailed out earlier).

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
Expand Down
Loading