summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2022-05-10 15:42:48 +0200
committerRiccardo Pittau <elfosardo@gmail.com>2022-05-11 15:28:14 +0200
commit4c7d0d47f058459b2ab5b5a230462a242f039490 (patch)
treec8f634ffbe89f9ece4ebc2a6020927cb58ef1943
parent45fa718c7e586536ac1dc47a425244f034819f5d (diff)
downloadironic-python-agent-4c7d0d47f058459b2ab5b5a230462a242f039490.tar.gz
Use Yoga constraints for bugfix/8.4
Change-Id: I5e95fae1f2846a19c859b5d61e224ad198c1a8c5
-rw-r--r--tox.ini8
-rw-r--r--zuul.d/ironic-python-agent-jobs.yaml37
-rw-r--r--zuul.d/project.yaml22
3 files changed, 58 insertions, 9 deletions
diff --git a/tox.ini b/tox.ini
index ccbe9fa5..4c47f960 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,7 +15,7 @@ setenv =
LANGUAGE=en_US
LC_ALL=en_US.utf-8
deps =
- -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
@@ -71,7 +71,7 @@ setenv = PYTHONHASHSEED=0
sitepackages = False
# NOTE(dtantsur): documentation building process requires importing IPA
deps =
- -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands =
@@ -89,7 +89,7 @@ commands =
[testenv:releasenotes]
usedevelop = False
deps =
- -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga}
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
@@ -128,7 +128,7 @@ commands =
[testenv:bandit]
usedevelop = False
deps =
- -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga}
-r{toxinidir}/test-requirements.txt
commands = bandit -r ironic_python_agent -x tests -n5 -ll -c tools/bandit.yml
diff --git a/zuul.d/ironic-python-agent-jobs.yaml b/zuul.d/ironic-python-agent-jobs.yaml
index a5cb2977..a5716c62 100644
--- a/zuul.d/ironic-python-agent-jobs.yaml
+++ b/zuul.d/ironic-python-agent-jobs.yaml
@@ -157,3 +157,40 @@
devstack_localrc:
IRONIC_RAMDISK_TYPE: tinyipa
IRONIC_VM_SPECS_RAM: 1024
+
+- project-template:
+ name: openstack-python3-yoga-jobs-ironic-bugfix
+ description: |
+ Runs unit tests for an OpenStack Python project under the CPython
+ version 3 releases designated for testing in the Yoga release.
+ check:
+ jobs:
+ - openstack-tox-pep8:
+ required-projects:
+ - name: openstack/requirements
+ override-checkout: stable/yoga
+ - openstack-tox-py36:
+ required-projects:
+ - name: openstack/requirements
+ override-checkout: stable/yoga
+ - openstack-tox-py39:
+ required-projects:
+ - name: openstack/requirements
+ override-checkout: stable/yoga
+ gate:
+ jobs:
+ - openstack-tox-pep8:
+ required-projects:
+ - name: openstack/requirements
+ override-checkout: stable/yoga
+ - openstack-tox-py36:
+ required-projects:
+ - name: openstack/requirements
+ override-checkout: stable/yoga
+ - openstack-tox-py39:
+ required-projects:
+ - name: openstack/requirements
+ override-checkout: stable/yoga
+ post:
+ jobs:
+ - publish-openstack-python-branch-tarball
diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml
index fa87feaf..c04ee4d5 100644
--- a/zuul.d/project.yaml
+++ b/zuul.d/project.yaml
@@ -1,14 +1,19 @@
- project:
templates:
- check-requirements
- - openstack-cover-jobs
- - openstack-lower-constraints-master-branch-jobs
- - openstack-python3-yoga-jobs
+ - openstack-python3-yoga-jobs-ironic-bugfix
- publish-openstack-docs-pti
- release-notes-jobs-python3
check:
jobs:
- - openstack-tox-functional
+ - openstack-tox-functional:
+ required-projects:
+ - name: openstack/requirements
+ override-checkout: stable/yoga
+ - openstack-tox-cover:
+ required-projects:
+ - name: openstack/requirements
+ override-checkout: stable/yoga
- ipa-tox-examples
# NOTE(iurygregory) Only run this two jobs since we are testing
# wholedisk + partition on tempest
@@ -30,7 +35,14 @@
gate:
queue: ironic
jobs:
- - openstack-tox-functional
+ - openstack-tox-functional:
+ required-projects:
+ - name: openstack/requirements
+ override-checkout: stable/yoga
+ - openstack-tox-cover:
+ required-projects:
+ - name: openstack/requirements
+ override-checkout: stable/yoga
- ipa-tempest-bios-ipmi-direct-src
- ipa-tempest-uefi-redfish-vmedia-src
- metalsmith-integration-ipa-src-uefi