Skip to content

Commit ef5b967

Browse files
committed
adding format to output filename hoping to mitigate tests failures
1 parent 63cfc66 commit ef5b967

9 files changed

Lines changed: 34 additions & 30 deletions

api/meson.build

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ test_dir = meson.current_build_dir() + '/../test'
4545
test('api_create_system',
4646
python_exe,
4747
env : {'PYTHONDONTWRITEBYTECODE': '1'},
48-
args : [api_dir + 'system_template.py', '-s', 'test'], priority : 10)
48+
args : [api_dir + 'system_template.py', '-s', 'test'], priority : 5)
4949
foreach format : ['ascii', 'sqlite']
5050
test('api_template_build_geometry_in_test_for_format_' + format,
5151
python_exe,
5252
env : {'PYTHONDONTWRITEBYTECODE': '1'},
53-
args : ['test.py', '-f', format], workdir : test_dir, priority : -10)
53+
args : ['test.py', '-f', format], workdir : test_dir, priority : -1)
5454
test('api_run_gemc_for_format_' + format,
5555
gemc, args : ['test.yaml', '-gsystem="[{name: test, factory: ' + format + '}]" '],
5656
workdir : test_dir,
5757
env : project_test_env,
58-
priority : -20)
58+
priority : -2)
5959
endforeach
6060

6161
# replace geometry with templates
@@ -70,16 +70,16 @@ foreach volume: g4objects.keys()
7070
test('api_create_template_system_with' + volume,
7171
python_exe,
7272
env : {'PYTHONDONTWRITEBYTECODE': '1'},
73-
args : [api_dir + 'system_template.py', '-s', test_name], priority : 10)
73+
args : [api_dir + 'system_template.py', '-s', test_name], priority : 4)
7474
test('api_template_replace_geometry_with' + volume,
7575
python_exe,
7676
env : {'PYTHONDONTWRITEBYTECODE': '1'},
77-
args: [api_dir + 'system_template.py', '-gv', volume, '-gvp', pars, geo_py, sub_name], workdir : test_dir, priority : -10)
77+
args: [api_dir + 'system_template.py', '-gv', volume, '-gvp', pars, geo_py, sub_name], workdir : test_dir, priority : -3)
7878
foreach format : ['ascii', 'sqlite']
7979
test('api_template_build_geometry_in_test_of_replacing_geometry_with' + volume + '_with_format' + format,
8080
python_exe,
8181
env : {'PYTHONDONTWRITEBYTECODE': '1'},
82-
args : [python_main, '-f', format], workdir : test_dir, priority : -20)
82+
args : [python_main, '-f', format], workdir : test_dir, priority : -4)
8383
test('api_run_gemc_with_replaced_geometry_using_' + volume + '_with_format' + format,
8484
gemc,
8585
args : [yaml_file, '-gsystem="[{name: ' + test_name + ', factory: ' + format + '}]" '],

ci/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ echo " ldd of $GEMC/bin/gemc:" >> $compile_log | tee -a
9898

9999
# if on unix, use ldd , if on mac, use otool -L
100100
if [[ "$(uname)" == "Darwin" ]]; then
101-
otool -L $GEMC/bin/gemc || exit 1
101+
otool -L $GEMC/bin/gemc
102102
else
103-
ldd $GEMC/bin/gemc || exit 1 >> $compile_log | tee -a
103+
ldd $GEMC/bin/gemc >> $compile_log | tee -a
104104
fi
105105

ci/discover-docker-matrix.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env sh
22
# Discover dockerfiles: dockerfiles/Dockerfile-gemc-<tag>-<os>
3-
# Outputs for GitHub Actions:
3+
# Emits for GitHub Actions:
44
# - matrix: {"include":[{"file":..., "tag":..., "os":..., "latest":true|false}, ...]}
55
# - image : ghcr.io/<owner>/gemc
66
# Works on macOS (BSD utils), Linux, and GHA.
@@ -20,7 +20,7 @@ IMAGE="ghcr.io/$OWNER_LOWER/gemc"
2020

2121
TMP_TSV="$(mktemp)"
2222

23-
# Glob-based enumeration (portable; avoids read -d / -print0)
23+
# Glob-based enumeration (portable)
2424
set -- "$DIR"/Dockerfile-gemc-*
2525
if [ "$1" = "$DIR/Dockerfile-gemc-*" ]; then
2626
echo "No matching dockerfiles found under '$DIR' (expected Dockerfile-gemc-<tag>-<os>)." >&2
@@ -56,7 +56,7 @@ if [ ! -s "$TMP_TSV" ]; then
5656
exit 1
5757
fi
5858

59-
# Build JSON with POSIX/BSD awk
59+
# Build JSON with POSIX/BSD awk (avoid /\"/ to silence BSD awk warning)
6060
JSON=$(
6161
awk -F '\t' '
6262
BEGIN { n=0 }
@@ -70,9 +70,9 @@ JSON=$(
7070
for (i=1; i<=n; i++) {
7171
latest = (W[i] == max[ O[i] ]) ? "true" : "false"
7272
73-
f=F[i]; gsub(/\\/,"\\\\",f); gsub(/\"/,"\\\"",f)
74-
t=T[i]; gsub(/\\/,"\\\\",t); gsub(/\"/,"\\\"",t)
75-
o=O[i]; gsub(/\\/,"\\\\",o); gsub(/\"/,"\\\"",o)
73+
f=F[i]; gsub(/\\/,"\\\\",f); gsub(/"/,"\\\"",f)
74+
t=T[i]; gsub(/\\/,"\\\\",t); gsub(/"/,"\\\"",t)
75+
o=O[i]; gsub(/\\/,"\\\\",o); gsub(/"/,"\\\"",o)
7676
7777
printf "%s{\"file\":\"%s\",\"tag\":\"%s\",\"os\":\"%s\",\"latest\":%s}",
7878
(i>1?",":""), f, t, o, latest
@@ -83,7 +83,6 @@ JSON=$(
8383
)
8484

8585
COUNT=$(wc -l < "$TMP_TSV" | tr -d '[:space:]')
86-
rm -f "$TMP_TSV"
8786

8887
# Emit for Actions if available; else print locally
8988
if [ -n "${GITHUB_OUTPUT:-}" ]; then
@@ -99,3 +98,7 @@ else
9998
fi
10099

101100
echo "Discovered $COUNT dockerfile(s). Image base: $IMAGE"
101+
echo "Dockerfiles found:"
102+
awk -F '\t' '{print " - " $1}' "$TMP_TSV"
103+
104+
rm -f "$TMP_TSV"

dockerfiles/Dockerfile-gemc-dev3-almalinux94

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ LABEL maintainer="Maurizio Ungaro <ungaro@jlab.org>"
33

44
# run shell instead of sh
55
SHELL ["/bin/bash", "-c"]
6-
ENV AUTOBUILD 1
6+
ENV AUTOBUILD=1
77

88
RUN echo "module load gemc/dev3" >> /etc/profile.d/localSetup.sh
99

dockerfiles/Dockerfile-gemc-dev3-fedora36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ LABEL maintainer="Maurizio Ungaro <ungaro@jlab.org>"
33

44
# run shell instead of sh
55
SHELL ["/bin/bash", "-c"]
6-
ENV AUTOBUILD 1
6+
ENV AUTOBUILD=1
77

88
RUN echo "module load gemc/dev3" >> /etc/profile.d/localSetup.sh
99

dockerfiles/Dockerfile-gemc-dev3-fedora40

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ LABEL maintainer="Maurizio Ungaro <ungaro@jlab.org>"
33

44
# run shell instead of sh
55
SHELL ["/bin/bash", "-c"]
6-
ENV AUTOBUILD 1
6+
ENV AUTOBUILD=1
77

88
RUN echo "module load gemc/dev3" >> /etc/profile.d/localSetup.sh
99

dockerfiles/Dockerfile-gemc-dev3-ubuntu24

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ LABEL maintainer="Maurizio Ungaro <ungaro@jlab.org>"
33

44
# run shell instead of sh
55
SHELL ["/bin/bash", "-c"]
6-
ENV AUTOBUILD 1
6+
ENV AUTOBUILD=1
77

88
RUN echo "module load gemc/dev3" >> /etc/profile.d/localSetup.sh
99

examples/meson.build

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ foreach branch : examples_map.keys()
3030
geo_test_name = 'examples_geo_' + branch + '_' + example + '_' + format + '_variation_' + variation
3131
run_test_name_asci = 'examples_run_asci_output_' + branch + '_' + example + '_' + format + '_variation_' + variation
3232
run_test_name_root = 'examples_run_root_output_' + branch + '_' + example + '_' + format + '_variation_' + variation
33-
ascii_output = '-gstreamer="[{format: ascii, filename: out' + branch + variation + '}]"'
34-
root_output = '-gstreamer="[{format: root, filename: out' + branch + variation + '}]"'
33+
ascii_output = '-gstreamer="[{format: ascii, filename: out' + branch + variation + format + '}]"'
34+
root_output = '-gstreamer="[{format: root, filename: out' + branch + variation + format + '}]"'
3535
test(geo_test_name,
3636
python_exe,
3737
args : [example_dir + example + '.py', '-f', format, '-sql', sql_db, '-v', variation], # the sql flag is ignored for ascii format
@@ -47,32 +47,32 @@ foreach branch : examples_map.keys()
4747
gemc,
4848
args : [yaml_file, '-gsystem="[{name: ' + example + ', factory: ' + format + ', variation: ' + variation + '}]"', root_output, '-sql=' + sql_db],
4949
workdir : example_dir,
50-
priority : -15)
50+
priority : -11)
5151
endforeach
5252

5353
# Geometry building tests (runs loop): Loop over runs with fixed variation "default"
5454
foreach run_value : runs
5555
geo_test_name = 'examples_geo_' + branch + '_' + example + '_' + format + '_run_' + run_value
5656
run_test_name_asci = 'examples_run_asci_output_' + branch + '_' + example + '_' + format + '_run_' + run_value
5757
run_test_name_root = 'examples_run_root_output_' + branch + '_' + example + '_' + format + '_run_' + run_value
58-
ascii_output = '-gstreamer="[{format: ascii, filename: out' + branch + run_value + '}]"'
59-
root_output = '-gstreamer="[{format: root, filename: out' + branch + run_value + '}]"'
58+
ascii_output = '-gstreamer="[{format: ascii, filename: out' + branch + run_value + format + '}]"'
59+
root_output = '-gstreamer="[{format: root, filename: out' + branch + run_value + format + '}]"'
6060
test(geo_test_name,
6161
python_exe,
6262
args : [example_dir + example + '.py', '-f', format, '-sql', sql_db, '-r', run_value], # the sql flag is ignored for ascii format
6363
workdir : example_dir,
6464
env : { 'PYTHONDONTWRITEBYTECODE' : '1' },
65-
priority : 5)
65+
priority : 9)
6666
test(run_test_name_asci,
6767
gemc,
6868
args : [yaml_file, '-gsystem="[{name: ' + example + ', factory: ' + format + ', runno:' + run_value + '}]"', ascii_output, '-sql=' + sql_db],
6969
workdir : example_dir,
70-
priority : -22)
70+
priority : -12)
7171
test(run_test_name_root,
7272
gemc,
7373
args : [yaml_file, '-gsystem="[{name: ' + example + ', factory: ' + format + ', runno:' + run_value + '}]"', root_output, '-sql=' + sql_db],
7474
workdir : example_dir,
75-
priority : -27)
75+
priority : -13)
7676
endforeach
7777

7878
endforeach

meson.build

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ foreach L : LD
148148
args : [geo_python_script],
149149
workdir : examples_dir,
150150
env : { 'PYTHONDONTWRITEBYTECODE' : '1' },
151-
priority : 10)
151+
priority : 20)
152152
endforeach
153153
endif
154154

@@ -176,7 +176,7 @@ foreach L : LD
176176
exe,
177177
env : project_test_env,
178178
args : arguments,
179-
priority : -10)
179+
priority : -20)
180180
endforeach
181181
endif
182182
foreach include_dir : additional_includes
@@ -259,7 +259,8 @@ foreach opt_dict : test_options
259259
gemc,
260260
args : test_arguments + gemc_test_sqlite,
261261
# suite : 'gemc',
262-
timeout : 60 # adjust as needed
262+
timeout : 60, # adjust as needed
263+
priority: -20
263264
)
264265
endforeach
265266
endforeach

0 commit comments

Comments
 (0)