Skip to content

Commit

Permalink
fix test - 8 (existing histos)
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Nov 21, 2024
1 parent b48c6c1 commit 36c5206
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/wipac-cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ jobs:
run: |
set -euo pipefail
dataset_dpaths=(
/tmp/data/sim/{IceCube,Upgrade}/{2022,2023}/{generated,filtered}/{CORSIKA,neutrino-generator}/{77777,88888,99999}/
/tmp/data/sim/{IceCube,Upgrade}/{2022,2023}/{generated,filtered}/{CORSIKA,neutrino-generator}/{77777,88888,99999}
)
for dpath in "${dataset_dpaths[@]}"; do
Expand All @@ -234,6 +234,7 @@ jobs:
# pre-create some of these files in the destination
if [[ "${{ matrix.prev_histos_setting }}" == "overwrite" || "${{ matrix.prev_histos_setting }}" == "keep" ]]; then
echo "creating 'existing' histo file (25% chance)"
# check that this histo would be touched by the script (then only do it 25% of the time)
if [[ "$dpath" == "${{ matrix.src_path }}"* ]] && (( RANDOM % 100 < 25 )); then
relative_path="${dpath#*/sim/}"
Expand All @@ -242,6 +243,8 @@ jobs:
set -x
touch "$dest_dataset_dir"/"$(basename "$dest_dataset_dir").histo.hdf5"
set +x
else
echo "nevermind :o)"
fi
fi
Expand Down

0 comments on commit 36c5206

Please sign in to comment.