Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit 4a76d80

Browse files
committed
CI: always return host configure test results
Currently, the overcloud host configure test results are only returned on success, when they are least useful. This is because the zuul_return task is not reached when the test task fails. This change reorders the tasks to fix the issue. Change-Id: Ie572eda567782cc377767bd8d925145e2ad4bd61 (cherry picked from commit c2ae611)
1 parent fb86cd1 commit 4a76d80

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • playbooks/kayobe-overcloud-host-configure-base

playbooks/kayobe-overcloud-host-configure-base/run.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
cmd: "{{ kayobe_src_dir }}/dev/overcloud-deploy.sh &> {{ logs_dir }}/ansible/overcloud-deploy"
1717
executable: /bin/bash
1818

19+
- name: Return artifact to Zuul
20+
zuul_return:
21+
data:
22+
zuul:
23+
artifacts:
24+
- name: "Unit Test Report"
25+
url: "{{ inventory_hostname }}/test-results.html"
26+
metadata:
27+
type: unit_test_report
28+
1929
- name: Run testinfra tests
2030
command: "{{ testinfra_venv }}/bin/py.test {{ test_path }} --html={{ logs_dir }}/test-results.html --self-contained-html"
2131
environment:
@@ -30,13 +40,3 @@
3040
decrypt
3141
--vault-password-file {{ kayobe_venv }}/bin/kayobe-vault-password-helper
3242
{{ kayobe_config_src_dir }}/etc/kayobe/kolla/passwords.yml
33-
34-
- name: Return artifact to Zuul
35-
zuul_return:
36-
data:
37-
zuul:
38-
artifacts:
39-
- name: "Unit Test Report"
40-
url: "{{ inventory_hostname }}/test-results.html"
41-
metadata:
42-
type: unit_test_report

0 commit comments

Comments
 (0)