Skip to content

Commit

Permalink
common: print sds
Browse files Browse the repository at this point in the history
  • Loading branch information
osalyk committed Sep 5, 2024
1 parent 6f27fc2 commit c8254aa
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions utils/gha-runners/run-ras-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,18 @@
- mountPoint: /mnt/{{item}}
with_items: "{{ uuids }}"

- name: "Print SDS"
shell: ndctl list --dimms --human
register: output

- name: "SDS - output"
debug:
msg: |
::group::Print_sds
{{ output.stderr_lines | to_nice_yaml }}
{{ output.stdout_lines | to_nice_yaml }}
::endgroup::
- name: "Phase 1 - run tests"
shell:
cmd: PATH=$PATH:{{ pmdk_install_dir_path }}/bin ./UNSAFE_SHUTDOWN_LOCAL 1 inject all --gtest_output=xml:{{ logs_dir_path }}/phase1.xml
Expand All @@ -271,6 +283,18 @@
- name: "Flush filesystems before power cycle"
shell: "sync"

- name: "Print SDS"
shell: ndctl list --regions --human
register: output

- name: "SDS - output"
debug:
msg: |
::group::Print_sds
{{ output.stderr_lines | to_nice_yaml }}
{{ output.stdout_lines | to_nice_yaml }}
::endgroup::
# Combination of "async:1, poll:0 and ignore_errors: true" means more or less "fire and forget";
# "fire and forget" (and later waiting for connection) approach is required here because Ansible
# was not handling gracefully when SSH connection was broken while restarting the platform.
Expand All @@ -297,6 +321,18 @@
- "{{ uuids }}"
- "{{ pmem_devices }}"

- name: "Print SDS"
shell: ndctl list --regions --human
register: output

- name: "SDS - output"
debug:
msg: |
::group::Print_sds
{{ output.stderr_lines | to_nice_yaml }}
{{ output.stdout_lines | to_nice_yaml }}
::endgroup::
- name: "Phase 2 - run tests"
shell:
cmd: PATH=$PATH:{{ pmdk_install_dir_path }}/bin ./UNSAFE_SHUTDOWN_LOCAL 2 cleanup all --gtest_output=xml:{{ logs_dir_path }}/phase2.xml
Expand Down

0 comments on commit c8254aa

Please sign in to comment.