File tree Expand file tree Collapse file tree
tools/roles/tools_stage_results/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 104104 - name : Mark the openshift tests as UNSTABLE
105105 ansible.builtin.include_role :
106106 name : tools_stage_results
107- tasks_from : mark_stage_unstable .yml
107+ tasks_from : mark_test_stage_unstable .yml
108108 vars :
109109 unstable_msg : >-
110110 The openshift test Suite failed.
Original file line number Diff line number Diff line change 2828 - name : Mark the CPMS {{ cpms_tests_type }} tests as UNSTABLE
2929 ansible.builtin.include_role :
3030 name : tools_stage_results
31- tasks_from : mark_stage_unstable .yml
31+ tasks_from : mark_test_stage_unstable .yml
3232 vars :
3333 unstable_msg : >-
3434 The {{ cpms_test_name }} {{ cpms_tests_type }} test suite failed.
Original file line number Diff line number Diff line change 2828 - name : Mark the openshift tests as UNSTABLE
2929 ansible.builtin.include_role :
3030 name : tools_stage_results
31- tasks_from : mark_stage_unstable .yml
31+ tasks_from : mark_test_stage_unstable .yml
3232 vars :
3333 unstable_msg : >-
3434 The openshift test Suite failed.
Original file line number Diff line number Diff line change 9393 - name : Mark the egressip tests as UNSTABLE
9494 ansible.builtin.include_role :
9595 name : tools_stage_results
96- tasks_from : mark_stage_unstable .yml
96+ tasks_from : mark_test_stage_unstable .yml
9797 vars :
9898 unstable_msg : >-
9999 The EgressIP test suite failed.
Original file line number Diff line number Diff line change 207207 - name : Mark the openshift tests as UNSTABLE
208208 ansible.builtin.include_role :
209209 name : tools_stage_results
210- tasks_from : mark_stage_unstable .yml
210+ tasks_from : mark_test_stage_unstable .yml
211211 vars :
212212 unstable_msg : >-
213213 The openshift test Suite failed.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ cinder_csi_project_name: cinder-test # project for testing cinder-csi sc provide
55manila_project_name : manila-test # project for testing manila sc provider
66demo_project_name : demo # project for testing demo app
77verify_existing_namespace : false
8- soft_checks : true # run checks that won't stop the playbook but will generate the jenkins message to mark the run as unstable .
8+ soft_checks : true # run checks that won't stop the playbook but will mark the run as UNSTABLE via stage_unstable_flag .
99alerts_to_ignore :
1010 # - 'Watchdog' # Should not be considered as severity is none
1111 - ' NodeClockNotSynchronising'
Original file line number Diff line number Diff line change 1+ ---
2+ - name : Set the test stage unstable var as true
3+ ansible.builtin.set_fact :
4+ test_stage_unstable : true
5+ unstable_warning : " Warning! {{ unstable_msg }}"
6+
7+ - name : Print the test stage UNSTABLE message
8+ ansible.builtin.debug :
9+ msg : " {{ unstable_warning }}"
10+
11+ - name : Mark the test stage result as UNSTABLE
12+ ansible.builtin.lineinfile :
13+ path : " {{ test_stage_unstable_flag }}"
14+ line : " {{ unstable_warning }}"
15+ create : yes
16+ mode : u=rw,g=rw,o=r
17+ delegate_to : localhost
Original file line number Diff line number Diff line change @@ -32,9 +32,14 @@ report_dir: "{{ artifacts_dir }}/test_results"
3232
3333# Sets the Ansible Controller Node machine's HOME environment variable
3434controller_home_dir : " {{ lookup('ansible.builtin.env', 'HOME') }}"
35- # The resources_file and stage_unstable_flag are in the Ansible control node's HOME environment variable
35+ # The resources_file and stage_unstable flags are on the Ansible control node's HOME.
36+ # test_stage_unstable_flag is written only by testing-stage rescues. The ci-framework
37+ # shiftstack role fails the Zuul job when this file is present in rsynced artifacts;
38+ # pair with failure-message: unstable on monolithic shiftstack Zuul jobs for yellow UI.
39+ # stage_unstable_flag is used by soft verification/install workarounds (no end-of-run fail).
3640resources_file : " {{ controller_home_dir }}/artifacts/resources.yml"
3741stage_unstable_flag : " {{ controller_home_dir }}/artifacts/stage_unstable_flag"
42+ test_stage_unstable_flag : " {{ controller_home_dir }}/artifacts/test_stage_unstable_flag"
3843
3944admin_cloud : " default"
4045admin_env_file : " {{ osp_config_dir }}/{{ admin_cloud }}rc"
Original file line number Diff line number Diff line change 1010 path : " {{ stage_unstable_flag }}"
1111 state : absent
1212
13+ - name : Cleanup workspace flags - Remove the test_stage_unstable_flag if it exists
14+ ansible.builtin.file :
15+ path : " {{ test_stage_unstable_flag }}"
16+ state : absent
17+
1318 - name : Update ocp_deployment_topology with overrides if defined
1419 # Apply ocp_deployment_topology_override on top of the base topology
1520 # The base configuration comes from `configs/global.yml`
You can’t perform that action at this time.
0 commit comments