Skip to content

Commit 64f317f

Browse files
committed
Catch failures in background jobs
1 parent 70e5016 commit 64f317f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,23 @@ jobs:
4040
# First do 2023.06 for EB 4
4141
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/nvidia/cc80" # Stick to 8.0 for EB4 as options for 9.0 set by EESSI-extend are not understood there
4242
( module load EESSI/2023.06 && module load EasyBuild/4 && module load EESSI-extend && python scripts/generate_data_files.py --eessi-version=2023.06 ) &
43+
pid1=$!
4344
# then 2023.06 for EB 5
4445
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/nvidia/cc90"
4546
( module load EESSI/2023.06 && module load EasyBuild/5 && module load EESSI-extend && python scripts/generate_data_files.py --eessi-version=2023.06 ) &
47+
pid2=$!
4648
# then 2025.06 for EB 5 (does not have EB4)
4749
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/nvidia/cc90"
4850
( module load EESSI/2025.06 && module load EasyBuild/5 && module load EESSI-extend && python scripts/generate_data_files.py --eessi-version=2025.06 ) &
51+
pid3=$!
52+
wait $pid1 || fail=1
53+
wait $pid2 || fail=2
54+
wait $pid3 || fail=3
55+
if [ $fail -ne 0 ]; then
56+
echo "One or more jobs failed (at least job $fail)"
57+
exit 1
58+
fi
4959
# Merge all these results together
50-
wait
5160
python scripts/merge_data_files.py out.yaml eessi*.yaml
5261
mv out.yaml docs/data/eessi_software_metadata.yaml
5362
# Generate json data files and markdown index/description for them

0 commit comments

Comments
 (0)