Skip to content

Commit 8c035d7

Browse files
authored
Merge pull request #295 from stackhpc/fix/eessi-tests
Disable EESSI tests in CI and make them debuggable
2 parents b4c0279 + aa6fb9c commit 8c035d7

File tree

3 files changed

+29
-12
lines changed

3 files changed

+29
-12
lines changed

.github/workflows/stackhpc.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ jobs:
9090
. environments/.stackhpc/activate
9191
ansible-playbook -vv ansible/adhoc/hpctests.yml
9292
93-
- name: Run EESSI tests
94-
run: |
95-
. venv/bin/activate
96-
. environments/.stackhpc/activate
97-
ansible-playbook -vv ansible/ci/check_eessi.yml
93+
# - name: Run EESSI tests
94+
# run: |
95+
# . venv/bin/activate
96+
# . environments/.stackhpc/activate
97+
# ansible-playbook -vv ansible/ci/check_eessi.yml
9898

9999
- name: Confirm Open Ondemand is up (via SOCKS proxy)
100100
run: |

ansible/ci/check_eessi.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,34 @@
1717
repo: "https://github.com/eessi/eessi-demo.git"
1818
dest: "{{ eessi_test_rootdir }}/eessi-demo"
1919

20-
- name: Run test job
21-
ansible.builtin.shell:
22-
cmd: |
20+
- name: Create batch script
21+
copy:
22+
dest: "{{ eessi_test_rootdir }}/eessi-demo/TensorFlow/tensorflow.sh"
23+
content: |
24+
#!/usr/bin/env bash
25+
#SBATCH --output=%x.out
26+
#SBATCH --error=%x.out
2327
source /cvmfs/pilot.eessi-hpc.org/latest/init/bash
2428
srun ./run.sh
29+
30+
- name: Run test job
31+
ansible.builtin.shell:
32+
cmd: sbatch --wait tensorflow.sh
2533
chdir: "{{ eessi_test_rootdir }}/eessi-demo/TensorFlow"
26-
executable: /bin/bash
2734
register: job_output
2835

36+
- name: Retrieve job output
37+
slurp:
38+
src: "{{ eessi_test_rootdir }}/eessi-demo/TensorFlow/tensorflow.sh.out"
39+
register: _tensorflow_out
40+
no_log: true # as its base64 encoded so useless
41+
42+
- name: Show job output
43+
debug:
44+
msg: "{{ _tensorflow_out.content | b64decode }}"
45+
2946
- name: Fail if job output contains error
3047
fail:
3148
# Note: Job prints live progress bar to terminal, so use regex filter to remove this from stdout
3249
msg: "Test job using EESSI modules failed. Job output was: {{ job_output.stdout | regex_replace('\b', '') }}"
33-
when: '"Epoch 5/5" not in job_output.stdout'
34-
50+
when: '"Epoch 5/5" not in _tensorflow_out.content | b64decode'

environments/.stackhpc/ansible.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ roles_path = ../../ansible/roles
1111
filter_plugins = ../../ansible/filter_plugins
1212

1313
[ssh_connection]
14-
ssh_args = -o ControlMaster=auto -o ControlPersist=240s -o PreferredAuthentications=publickey -o UserKnownHostsFile=/dev/null
14+
#ssh_args = -o ControlMaster=auto -o ControlPersist=240s -o PreferredAuthentications=publickey -o UserKnownHostsFile=/dev/null
15+
ssh_args = -o PreferredAuthentications=publickey -o UserKnownHostsFile=/dev/null
1516
pipelining = True

0 commit comments

Comments
 (0)