Skip to content

Commit 7b80cd8

Browse files
authored
Enhance CVMFS workflow with better logging and error handling
Updated the CVMFS workflow to improve error handling and logging.
1 parent ddcf8f3 commit 7b80cd8

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/cvmfs.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ jobs:
99
steps:
1010
- name: Install system packages
1111
run: |
12+
echo "===== Install fetch-crl as a system package ====="
1213
sudo apt-get update
13-
sudo apt-get install -y fetch-crl ca-certificates
14+
sudo apt-get install -y fetch-crl
1415
- name: prepare environment
1516
run: |
1617
conda create -c conda-forge -n cvmfs-env ca-policy-lcg openssl==3.0.7 gct
@@ -19,25 +20,32 @@ jobs:
1920
CVMFS_PROXY_BASE64: ${{ secrets.CVMFS_PROXY_BASE64 }}
2021
run: |
2122
eval "$(conda shell.bash hook)" && conda activate cvmfs-env
23+
echo "===== conda info ====="
2224
conda info
25+
echo "===== conda envorpnments ====="
2326
conda info --envs
27+
echo "===== list conda packages ====="
2428
conda list
25-
# conda install ca-policy-lcg openssl==3.0.7 gct
2629
export X509_CERT_DIR=$CONDA_PREFIX/etc/grid-security/certificates
27-
sudo fetch-crl
30+
echo "===== fetch crls, this can fail partially, should be not a problem ====="
31+
sudo fetch-crl -l $X509_CERT_DIR -T 30 || echo "fetch-crl is not completely successful"
2832
33+
echo "===== set up proxy ====="
2934
echo "$CVMFS_PROXY_BASE64" | base64 --decode > cvmfs.proxy
3035
export X509_USER_PROXY=cvmfs.proxy
3136
chmod 600 cvmfs.proxy
37+
echo "===== list the currect directory ====="
3238
ls -l
33-
cat cvmfs.proxy
39+
echo "===== list executables ====="
3440
export PATH=/usr/share/miniconda3/bin:/opt/conda/bin/:/opt/conda/condabin:$PATH
3541
type -a openssl
3642
openssl version
3743
type -a gsissh
44+
echo "===== Environment ====="
3845
env
3946
47+
echo "===== put the target server into the knwn_hosts ====="
4048
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
4149
ssh-keyscan cvmfs-uploader-egi.gridpp.rl.ac.uk >> ~/.ssh/known_hosts
42-
50+
echo "===== run the repository update script now ====="
4351
gsissh -p 1975 -t -v cvmfs-uploader-egi.gridpp.rl.ac.uk /home/diracsgm/admin/sync_packages.sh

0 commit comments

Comments
 (0)