Skip to content

Commit

Permalink
fix test - 7 (existing histos)
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Nov 21, 2024
1 parent 124e20a commit b48c6c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/wipac-cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,16 @@ jobs:
- name: Create source dataset dirs/files
run: |
set -euo pipefail
set -x
dataset_dpaths=(
/tmp/data/sim/{IceCube,Upgrade}/{2022,2023}/{generated,filtered}/{CORSIKA,neutrino-generator}/{77777,88888,99999}/
)
for dpath in "${dataset_dpaths[@]}"; do
histo="$dpath"/"$(basename $dpath).histo.hdf5"
mkdir -p $(dirname $histo)
set -x
touch $histo
set +x
# pre-create some of these files in the destination
if [[ "${{ matrix.prev_histos_setting }}" == "overwrite" || "${{ matrix.prev_histos_setting }}" == "keep" ]]; then
Expand Down Expand Up @@ -289,6 +290,7 @@ jobs:
# check the overwriting settings
oldest_modtime=$(find "$DEST_DIR" -name "*.histo.hdf5" -type f -exec stat --format='%Y' {} + | sort -n | head -1)
echo "Oldest histo file modtime: $oldest_modtime"
echo "Previous oldest histo file modtime: $OLD_FILE_MODTIME"
case "${{ matrix.prev_histos_setting }}" in
none)
# oldest modtime should be younger (greater) than previously-stored value
Expand Down

0 comments on commit b48c6c1

Please sign in to comment.