Skip to content

Commit d958f13

Browse files
author
Adrian Reber
authored
Merge pull request #67 from openhpc/2026-05-07-auto
ci: generalize version checks for multi-version support
2 parents 34ab3a1 + 1dc7a5d commit d958f13

5 files changed

Lines changed: 18 additions & 13 deletions

File tree

ansible/roles/repos/repos-aarch64.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
- results.conf
178178
- welcome.conf
179179
- ssl.conf
180-
register: httpd_conf
180+
register: repos_httpd_conf
181181
tags:
182182
- httpd-conf
183183

@@ -236,7 +236,7 @@
236236
with_items:
237237
- certbot-renewal.service
238238
- certbot-renewal.timer
239-
register: certbot_timer
239+
register: repos_certbot_timer
240240
notify:
241241
- Systemd daemon-reload
242242

@@ -245,7 +245,7 @@
245245
name: certbot-renewal.timer
246246
state: started
247247
enabled: true
248-
when: certbot_timer.changed
248+
when: repos_certbot_timer.changed
249249
tags:
250250
- skip_ansible_lint
251251

@@ -282,14 +282,14 @@
282282
owner: root
283283
group: root
284284
mode: "0644"
285-
register: rsyncd_conf
285+
register: repos_rsyncd_conf
286286

287287
- name: Enable rsyncd
288288
ansible.builtin.systemd_service:
289289
name: rsyncd
290290
state: started
291291
enabled: true
292-
when: rsyncd_conf.changed
292+
when: repos_rsyncd_conf.changed
293293
tags:
294294
- skip_ansible_lint
295295

@@ -319,7 +319,7 @@
319319
owner: root
320320
group: root
321321
mode: "0644"
322-
register: results_watcher_service
322+
register: repos_results_watcher_service
323323
notify:
324324
- Systemd daemon-reload
325325
tags:
@@ -330,7 +330,7 @@
330330
name: update-results-watcher
331331
state: started
332332
enabled: true
333-
when: results_watcher_service.changed
333+
when: repos_results_watcher_service.changed
334334
tags:
335335
- skip_ansible_lint
336336
- update-results-watcher
@@ -369,7 +369,7 @@
369369
version: 4d2ab27d6eff2f28f8be27540ed9182fb8ba2934
370370
become: true
371371
become_user: ohpc
372-
register: ohpc_log_analyzer_downloaded
372+
register: repos_ohpc_log_analyzer_downloaded
373373

374374
- name: Build ohpc-log-analyzer
375375
ansible.builtin.command: "cargo build --release"
@@ -378,7 +378,7 @@
378378
become: true
379379
become_user: ohpc
380380
register: ohpc_log_analyzer_built
381-
when: ohpc_log_analyzer_downloaded.changed
381+
when: repos_ohpc_log_analyzer_downloaded.changed
382382
tags:
383383
- skip_ansible_lint
384384

ansible/roles/test/files/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ inputTemplate=/opt/ohpc/pub/doc/recipes/${os_major}/input.local
171171
inputFile=/root/ci_ohpc_inputs
172172
status=0
173173

174-
# For OpenHPC 4, "warewulf" is Warewulf v4 (not v3 as in OHPC 2/3).
174+
# For OpenHPC 3+, "warewulf" is Warewulf v4 (not v3 as in OHPC 2).
175175
# Normalize Provisioner to "warewulf4" so that all existing conditionals
176176
# comparing against "warewulf4" are triggered correctly.
177-
if [[ "${VERSION_MAJOR}" == "4" ]] && [[ "${Provisioner}" == "warewulf" ]]; then
177+
if [[ "${VERSION_MAJOR}" != "2" ]] && [[ "${Provisioner}" == "warewulf" ]]; then
178178
Provisioner="warewulf4"
179179
fi
180180

ansible/roles/test/files/run-ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ USER_TEST_OPTIONS="${USER_TEST_OPTIONS} --disable-opencoarrays"
415415

416416
if [[ "${VERSION_MAJOR}" == "2" ]]; then
417417
USER_TEST_OPTIONS="${USER_TEST_OPTIONS} --with-mpi-families='mpich openmpi4'"
418-
elif [[ "${TEST_ARCH}" == "x86_64" ]]; then
418+
elif [[ "${TEST_ARCH}" == "x86_64" ]] && [[ "${VERSION_MAJOR}" == "4" ]]; then
419419
USER_TEST_OPTIONS="${USER_TEST_OPTIONS} --with-mpi-families='mpich mvapich2 openmpi5'"
420420
else
421421
USER_TEST_OPTIONS="${USER_TEST_OPTIONS} --with-mpi-families='mpich openmpi5'"

ansible/roles/test/files/support_functions.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ export SINGULARITY_TMPDIR=/var/tmp
222222
export FI_PROVIDER=sockets
223223
EOF
224224

225+
# shellcheck disable=SC2153
226+
if [[ "${VERSION_MAJOR}" -lt 4 ]]; then
227+
echo "export PATH=/opt/ohpc/pub/utils/autotools/bin:\$PATH" >>/tmp/user_integration_tests
228+
fi
229+
225230
if [[ ${CI_CLUSTER} == "linaro" ]]; then
226231
{
227232
echo "export FI_PROVIDER=\"tcp;ofi_rxm\""

ansible/roles/test/ohpc-huawei-sms.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
path: /etc/chrony.conf
1818
state: present
1919
line: 'server 175.200.16.14'
20-
register: chrony_changed
20+
register: test_chrony_changed
2121

2222
- name: Allow time jumps
2323
ansible.builtin.lineinfile:

0 commit comments

Comments
 (0)