Skip to content

Commit c0e35de

Browse files
author
Scott Davidson
committed
Add EESSI test job playbook
1 parent 059dab8 commit c0e35de

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

ansible/ci/check_eessi.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
- name: Run EESSI test job
3+
hosts: login # TODO: Limit this to single node when there are multiple?
4+
tasks:
5+
- name: Clone eessi-demo repo
6+
ansible.builtin.git:
7+
repo: "https://github.com/eessi/eessi-demo.git"
8+
dest: ~/eessi-demo
9+
10+
- name: Run test job
11+
ansible.builtin.shell:
12+
cmd: |
13+
source /cvmfs/pilot.eessi-hpc.org/latest/init/bash
14+
srun ./run.sh
15+
chdir: ~/eessi-demo/TensorFlow
16+
executable: /bin/bash
17+
register: job_output
18+
19+
- name: Fail if job output contains error
20+
fail:
21+
# Note: Job prints live progress bar to terminal, so use regex filter to remove this from stdout
22+
msg: "Test job using EESSI modules failed. Job output was: {{ job_output.stdout | regex_replace('\b', '') }}"
23+
when: '"Epoch 5/5" not in job_output.stdout'
24+

0 commit comments

Comments
 (0)