From 335beb80da4b731c2f7c3c043a3681d370cf6795 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Tue, 24 Dec 2024 12:15:42 +0100 Subject: [PATCH 1/2] KUTTL: generate JUnitXML reports - switch the type to XML (the accepted value is 'xml' lowercase, not uppercase); - tune the name a bit to highlight it is a report; - add the new reportGranularity parameter which is supported by kuttl 0.20.0 and will restore the pre-1.17 JUnitXML format (granularity by test case, instead of by step); - remove the URL of kuttl, so that it is not tied to a specific release. Signed-off-by: Luigi Toscano --- kuttl-test.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kuttl-test.yaml b/kuttl-test.yaml index dd55930a..5ac7fa2b 100644 --- a/kuttl-test.yaml +++ b/kuttl-test.yaml @@ -6,16 +6,14 @@ # ASSUMPTIONS: # # 1. Latest version of kuttl is installed at /usr/local/bin/kubectl-kuttl -# - wget https://github.com/kudobuilder/kuttl/releases/download/v0.11.1/kubectl-kuttl_0.11.1_linux_x86_64 -# - mv kubectl-kuttl_0.11.1_linux_x86_64 /usr/local/bin/kubectl-kuttl -# - chmod 755 /usr/local/bin/kubectl-kuttl # 2. An OCP 4.10+ CRC cluster with Podified Operators has been deployed # 3. CLI user has access to $KUBECONFIG apiVersion: kuttl.dev/v1beta1 kind: TestSuite -reportFormat: JSON -reportName: kuttl-test-glance +reportFormat: xml +reportName: kuttl-report-glance +reportGranularity: test timeout: 180 namespace: glance-kuttl-tests parallel: 1 From 34557ae2934d5fe0fe2e9a1671d75d90b0a74e20 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Tue, 24 Dec 2024 17:32:20 +0100 Subject: [PATCH 2/2] Add KUTTL and tempest zuul jobs They are meant to replace the prow ones in the long term. Signed-off-by: Luigi Toscano --- zuul.d/jobs.yaml | 30 ++++++++++++++++++++++++++++++ zuul.d/projects.yaml | 14 ++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 zuul.d/jobs.yaml create mode 100644 zuul.d/projects.yaml diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml new file mode 100644 index 00000000..5e0cce88 --- /dev/null +++ b/zuul.d/jobs.yaml @@ -0,0 +1,30 @@ +--- +- job: + name: glance-operator-kuttl + parent: cifmw-base-multinode-kuttl + attempts: 1 + required-projects: + - github.com/openstack-k8s-operators/glance-operator + irrelevant-files: + - .*/*.md + - ^\..*$ + - ^LICENSE$ + - ^OWNERS$ + - ^OWNERS_ALIASES$ + - ^PROJECT$ + - ^README.md$ + - tests?\/functional + vars: + cifmw_kuttl_tests_env_vars: + CEPH_TIMEOUT: 90 + PV_NUM: 20 + cifmw_kuttl_tests_operator_list: + - glance + +- job: + name: glance-operator-tempest + parent: podified-multinode-hci-deployment-crc-1comp-backends + vars: + cifmw_test_operator_concurrency: 3 + cifmw_test_operator_tempest_include_list: | + ^tempest.api.image. diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml new file mode 100644 index 00000000..caaf01f9 --- /dev/null +++ b/zuul.d/projects.yaml @@ -0,0 +1,14 @@ +--- +- project: + name: openstack-k8s-operators/glance-operator + github-check: + jobs: + - openstack-k8s-operators-content-provider + - glance-operator-kuttl: + dependencies: + - openstack-k8s-operators-content-provider + voting: false + - glance-operator-tempest: + dependencies: + - openstack-k8s-operators-content-provider + voting: false