Skip to content

Commit 6bae119

Browse files
authored
Merge pull request #870 from stackhpc/feat/pingpong-summary
Write summary from hpctests pingpong to repo
2 parents ef9ca2a + a5e6738 commit 6bae119

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

ansible/roles/hpctests/tasks/pingpong.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@
6464
become: false
6565
when: hpctests_pingpong_plot | bool
6666

67-
- ansible.builtin.debug:
68-
# yamllint disable rule:line-length
69-
msg: |
67+
- name: Set fact for summary
68+
ansible.builtin.set_fact:
69+
# yamllint disable rule:line-length
70+
hpctests_pingpong_summary: |
7071
Summary for pingpong using 2x scheduler-selected nodes in '{{ hpctests_partition }}' partition, job ID {{ _pingpong_jobid }}, device '{{ hpctests_ucx_net_devices }}':
7172
7273
Nodes: {{ hpctests_pingpong_run_nodes.stdout.split()[1] }}
@@ -78,3 +79,15 @@
7879
{{ _pingpong_plot.stdout }}
7980
{% endif %}
8081
# yamllint enable rule:line-length
82+
83+
- ansible.builtin.debug:
84+
msg: |
85+
{{ hpctests_pingpong_summary }}
86+
87+
- name: Write summary
88+
ansible.builtin.copy:
89+
dest: "{{ _pingpong_local_output | dirname }}/summary.txt"
90+
content: "{{ hpctests_pingpong_summary }}"
91+
mode: "0644"
92+
delegate_to: localhost
93+
become: false

0 commit comments

Comments
 (0)