From da6a4460a6e08779aace6d8684dfaf1f933d2088 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Wed, 8 Nov 2023 05:52:38 -0800 Subject: [PATCH] [CI] Add sqlalchemy 2.0 unit testing Change-Id: I9a6ea8e18152ab9e2c26bfd68fa4129c01bc312f --- zuul.d/ironic-inspector-jobs.yaml | 18 ++++++++++++++++++ zuul.d/project.yaml | 2 ++ 2 files changed, 20 insertions(+) diff --git a/zuul.d/ironic-inspector-jobs.yaml b/zuul.d/ironic-inspector-jobs.yaml index 25b0277c5..b03ca54d6 100644 --- a/zuul.d/ironic-inspector-jobs.yaml +++ b/zuul.d/ironic-inspector-jobs.yaml @@ -47,6 +47,24 @@ ironic-inspector: True ironic-inspector-dhcp: True +# TODO(stephenfin): Remove this when we raise the upper-constraint globally +- job: + name: ironic-inspector-tox-unit-with-sqlalchemy-2x + parent: openstack-tox + description: | + Run unit tests with main branch of SQLAlchemy, alembic and oslo.db. + Takes advantage of the base tox job's install-siblings feature. + vars: + tox_envlist: py3 + # The job only tests the latest and shouldn't be run on the stable branches + branches: ^master$ + required-projects: + - name: github.com/sqlalchemy/sqlalchemy + override-checkout: main + - name: github.com/sqlalchemy/alembic + override-checkout: main + - name: openstack/oslo.db + - job: name: ironic-inspector-tempest-managed-non-standalone description: The boot is managed by ironic, ironic-inspector runs in non-standalone mode. diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index 049454b2e..22d89962f 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -7,6 +7,7 @@ - release-notes-jobs-python3 check: jobs: + - ironic-inspector-tox-unit-with-sqlalchemy-2x - ironic-inspector-grenade - ironic-inspector-tempest - ironic-inspector-tempest-discovery @@ -17,6 +18,7 @@ voting: false gate: jobs: + - ironic-inspector-tox-unit-with-sqlalchemy-2x - ironic-inspector-grenade - ironic-inspector-tempest - ironic-inspector-tempest-discovery