Skip to content

Commit 3def472

Browse files
authored
Combine metrics and autoscaling fvt into one job (#254)
Add metrics tests to autoscaling-osp18 job * Rename run_autoscaling_metrics_osp18.yml to run_cloudops_tests_osp18.yml * add patch_observabilityclient to run_cloudops_tests_osp18.yml
1 parent d99ae84 commit 3def472

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

.zuul.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
name: functional-autoscaling-tests-osp18
44
parent: telemetry-operator-multinode-autoscaling
55
description: |
6-
Run the autoscaling functional tests and tempest tests on osp18+patched
7-
versions of aodh and heat.
6+
Run autoscaling functional tests, tempest tests and metrics
7+
functional tests on osp18+patched versions of aodh and heat.
88
vars:
9-
patch_openstackversions: true
9+
patch_observabilityclient: true
1010
cifmw_extras:
1111
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/multinode-ci.yml"
1212
- "@{{ 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-power-monitoring.yml"
1314
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling-tempest.yml"
1415
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-functional-test.yml"
1516
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-use-master-containers.yml"
17+
1618
roles:
1719
- zuul: github.com/openstack-k8s-operators/ci-framework
1820
required-projects: &required_projects
@@ -47,6 +49,11 @@
4749
- roles/test_sensubility/.*
4850
- roles/test_snmp_traps/.*
4951
- roles/test_verify_email/.*
52+
files:
53+
- roles/telemetry_verify_metrics/.*
54+
- .zuul.yaml
55+
- ci/vars-metric-verification-test.yml
56+
- ci/report_result.yml
5057

5158
- job:
5259
name: functional-tests-on-osp18
@@ -137,11 +144,13 @@
137144
- roles/telemetry_autoscaling/.*
138145
- .zuul.yaml
139146
- ci/vars-functional-test.yml
140-
- ci/run_autoscaling_osp18.yml
147+
- ci/run_cloudops_tests_osp18.yml
141148
- ci/vars-use-master-containers.yml
142149
- ci/use-master-containers.yml
143150
- ci/patch-openstack-version.yaml
144151
- ci/report_result.yml
152+
- roles/telemetry_verify_metrics/.*
153+
- ci/vars-metric-verification-test.yml
145154
- functional-logging-tests-osp18:
146155
irrelevant-files: *irrelevant_files
147156
files:
@@ -162,11 +171,3 @@
162171
- ci/vars-graphing-test.yml
163172
- ci/run_graphing_test.yml
164173
- ci/report_result.yml
165-
- functional-metric-verification-tests-osp18:
166-
irrelevant-files: *irrelevant_files
167-
files:
168-
- roles/telemetry_verify_metrics/.*
169-
- .zuul.yaml
170-
- ci/vars-metric-verification-test.yml
171-
- ci/run_verify_metrics_osp18.yml
172-
- ci/report_result.yml

ci/run_autoscaling_osp18.yml renamed to ci/run_cloudops_tests_osp18.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@
2626
oc exec openstackclient -- python3 -m ensurepip --upgrade
2727
oc exec openstackclient -- python3 -m pip install --upgrade aodhclient
2828
oc exec openstackclient -- python3 -m pip install --upgrade python-observabilityclient
29-
when: "{{ patch_openstackversions | bool }}"
29+
when: "{{ patch_observabilityclient | bool }}"
3030
tags:
3131
- setup
3232

3333
- name: "Run Telemetry Autoscaling tests"
3434
ansible.builtin.import_role:
3535
name: telemetry_autoscaling
3636
ignore_errors: true
37+
38+
- name: "Run Telemetry Verify Metrics tests"
39+
ansible.builtin.import_role:
40+
name: telemetry_verify_metrics
41+
ignore_errors: true

ci/vars-functional-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# skip os-net-setup
77
cifmw_os_net_setup_config: []
88
pre_tests_00_run_functional_test:
9-
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/run_autoscaling_osp18.yml"
9+
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/run_cloudops_tests_osp18.yml"
1010
type: playbook
1111
config_file: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/ansible.cfg"
1212

0 commit comments

Comments
 (0)