Skip to content

Commit 00b0d39

Browse files
authored
[ci] Try to combine the FVT and tempest (#256)
* [ci] Try to combine the FVT and tempest This approach runs the FVTs before tempest and then collects the results after running test-operator This means that the tempest tests will trigger a failure if they fail, and the FVTs will trigger a failure only after the tempest tests are run, which means that the results are reported as expected. This will work for github-check pipeline and the component pipeline. However, this approach may not be usable with the unified jobs. This change adds a tempest config to the logging, graphing, metrics-verification tests.
1 parent 9dbc277 commit 00b0d39

File tree

5 files changed

+41
-11
lines changed

5 files changed

+41
-11
lines changed

.zuul.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
name: functional-autoscaling-tests-osp18
44
parent: telemetry-operator-multinode-autoscaling
55
description: |
6-
Run the autoscaling functional test on osp18+patched version of aodh and heat.
6+
Run the autoscaling functional tests and tempest tests on osp18+patched
7+
versions of aodh and heat.
78
vars:
89
patch_openstackversions: true
910
cifmw_extras:
1011
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/multinode-ci.yml"
1112
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling.yml"
13+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling-tempest.yml"
1214
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-functional-test.yml"
1315
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-use-master-containers.yml"
1416
roles:
@@ -58,11 +60,14 @@
5860
name: functional-logging-tests-osp18
5961
parent: telemetry-operator-multinode-logging
6062
description: |
61-
Run the logging functional tests on osp18
63+
Run the logging functional tests and tempest smoketests on osp18
6264
vars:
6365
cifmw_extras:
6466
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/multinode-ci.yml"
6567
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-logging.yml"
68+
# Use the tempest config we have for autoscaling tests
69+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling-tempest.yml"
70+
# There's an override in here to modify the enabled tests to include only the smoke tests
6671
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-logging-test.yml"
6772
roles:
6873
- zuul: github.com/openstack-k8s-operators/ci-framework
@@ -73,12 +78,15 @@
7378
name: functional-metric-verification-tests-osp18
7479
parent: telemetry-operator-multinode-autoscaling
7580
description: |
76-
Run the metric verification functional test on osp18.
81+
Run the metric verification functional test and tempest smoketests on osp18.
7782
vars:
7883
patch_observabilityclient: true
7984
cifmw_extras:
8085
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/multinode-ci.yml"
8186
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling.yml"
87+
# Use the tempest config we have for autoscaling tests
88+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling-tempest.yml"
89+
# tempest enabled tests list is overwritten in the metrics-verification-tests, so needs to be added after the autoscaling-tempest, so that we only run the smoke-tests
8290
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-metric-verification-test.yml"
8391
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-power-monitoring.yml"
8492
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-use-master-containers.yml"
@@ -100,13 +108,15 @@
100108
name: functional-graphing-tests-osp18
101109
parent: telemetry-operator-multinode-autoscaling
102110
description: |
103-
Run the UI Graphing test on osp18.
111+
Run the UI Graphing test and tempest smoketests on osp18.
104112
vars:
105-
cifmw_run_tests: false
106113
cifmw_extras:
107114
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/multinode-ci.yml"
108115
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling.yml"
109116
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-power-monitoring.yml"
117+
# Use the tempest config we have for autoscaling tests
118+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling-tempest.yml"
119+
# Currently, this runs tempest smoketests after the dashboards have been disabled again
110120
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-graphing-test.yml"
111121
roles:
112122
- zuul: github.com/openstack-k8s-operators/ci-framework

ci/vars-functional-test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@
55
# tests.
66
# skip os-net-setup
77
cifmw_os_net_setup_config: []
8-
post_deploy_00_run_functional_test:
8+
pre_tests_00_run_functional_test:
99
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/run_autoscaling_osp18.yml"
1010
type: playbook
1111
config_file: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/ansible.cfg"
12-
post_deploy_99_collect_results:
12+
13+
cifmw_run_tests: true
14+
# redefine this to clear the skipped test
15+
# this should be done in the parent job IF the openstack versions are updated
16+
cifmw_test_operator_tempest_exclude_list: ""
17+
18+
post_tests_99_collect_results:
1319
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/report_result.yml"
1420
type: playbook

ci/vars-graphing-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
post_deploy_00_run_graphing_test:
33
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/run_graphing_test.yml"
44
config_file: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/ansible.cfg"
5-
type: playbook
6-
post_deploy_99_collect_results:
5+
type: playbook
6+
7+
cifmw_run_tests: true
8+
# run only smoke tests
9+
cifmw_test_operator_tempest_include_list: |
10+
^tempest.*\[.*\bsmoke\b.*\]
11+
post_tests_99_collect_results:
712
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/report_result.yml"
813
type: playbook

ci/vars-logging-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ post_deploy_00_fvt_logging:
44
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/logging_tests_all.yml"
55
config_file: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/ansible.cfg"
66
type: playbook
7-
post_deploy_99_collect_results:
7+
8+
cifmw_run_tests: true
9+
# enable only the smoketests
10+
cifmw_test_operator_tempest_include_list: |
11+
^tempest.*\[.*\bsmoke\b.*\]
12+
13+
post_tests_99_collect_results:
814
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/report_result.yml"
915
type: playbook

ci/vars-metric-verification-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ post_deploy_00_fvt_verify_metrics:
33
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/run_verify_metrics_osp18.yml"
44
type: playbook
55
config_file: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/ansible.cfg"
6-
post_deploy_99_collect_results:
6+
cifmw_run_tests: true
7+
cifmw_test_operator_tempest_include_list: |
8+
^tempest.*\[.*\bsmoke\b.*\]
9+
post_tests_99_collect_results:
710
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/report_result.yml"
811
type: playbook

0 commit comments

Comments
 (0)