summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2021-11-19 14:29:27 +0100
committerDmitry Tantsur <dtantsur@protonmail.com>2021-11-25 10:00:03 +0100
commit028448afe45a420407b0a52f3ea0a5d049d696f7 (patch)
tree3cfb73159d9302abecbe3176c039ed876d272b6a
parent2ddd8ef2ca2e14287bd36c59f381138bc2a3b7b7 (diff)
downloadironic-028448afe45a420407b0a52f3ea0a5d049d696f7.tar.gz
Add a unit test job with Sushy from source
The final goal is to run it on sushy itself to make sure there are no regressions. Change-Id: I6f4bee9a3fa439b1477c41c82304652a801ea55e
-rw-r--r--zuul.d/ironic-jobs.yaml24
-rw-r--r--zuul.d/project.yaml2
2 files changed, 26 insertions, 0 deletions
diff --git a/zuul.d/ironic-jobs.yaml b/zuul.d/ironic-jobs.yaml
index ee25c61b6..b4c4533a0 100644
--- a/zuul.d/ironic-jobs.yaml
+++ b/zuul.d/ironic-jobs.yaml
@@ -1043,3 +1043,27 @@
EBTABLES_RACE_FIX: True
LIBVIRT_STORAGE_POOL_PATH: /opt/libvirt/images
IRONIC_VM_LOG_DIR: '/opt/stack/ironic-bm-logs'
+
+- job:
+ name: ironic-cross-sushy
+ description: Ironic unit tests run with Sushy from source
+ parent: openstack-tox
+ required-projects:
+ - opendev.org/openstack/ironic
+ - opendev.org/openstack/sushy
+ irrelevant-files:
+ - ^.*\.rst$
+ - ^api-ref/.*$
+ - ^devstack/.*$
+ - ^doc/.*$
+ - ^releasenotes/.*$
+ - ^tools/.*$
+ vars:
+ # NOTE(dtantsur): change this every release cycle if needed.
+ bindep_profile: test py38
+ tox_envlist: py38
+ # This variable ensures that sushy is installed from source.
+ tox_install_siblings: true
+ # NOTE(dtantsur): this job will be run on sushy as well, so it's
+ # important to set the working dir to the Ironic checkout.
+ zuul_work_dir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/ironic'].src_dir }}"
diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml
index a6a8f35bd..869144ba3 100644
--- a/zuul.d/project.yaml
+++ b/zuul.d/project.yaml
@@ -11,6 +11,8 @@
check:
jobs:
- ironic-tox-unit-with-driver-libs
+ - ironic-cross-sushy:
+ voting: false
- ironic-tempest-functional-python3
- ironic-tempest-functional-rbac-scope-enforced
- ironic-grenade