From 9c6ed2913567c4078facc7a355ae47fc62bbf2ef Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Tue, 18 Jul 2023 16:25:51 +0000 Subject: [PATCH] Add a tempest test job with sqlalchemy 2.x Now that nova removed the use of "migrate" we can add a tempest test job with sqlalchemy 2.x. Change-Id: Ibc6b1a67a14c8a83c1f679a9e3302e9c2eb25983 --- .zuul.yaml | 15 +++++++++++++++ devstack/plugin.sh | 3 +++ 2 files changed, 18 insertions(+) diff --git a/.zuul.yaml b/.zuul.yaml index 7ded2978c..572e34a29 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -81,6 +81,19 @@ parent: designate-bind9 nodeset: devstack-single-node-centos-9-stream +- job: + name: designate-bind9-sqlalchemy-2x + parent: designate-bind9 + description: | + Run tempest tests with main branch of SQLAlchemy, alembic and oslo.db. + # The job only tests the latest and shouldn't be run on the stable branches + branches: ^(?!stable) + required-projects: + - name: openstack/oslo.db + vars: + devstack_localrc: + USE_SQLALCHEMY_LATEST: true + - job: name: designate-pdns4 post-run: playbooks/designate-pdns4/post.yaml @@ -231,12 +244,14 @@ jobs: - neutron-tempest-plugin-designate-scenario - designate-tox-py310-with-sqlalchemy-2x + - designate-bind9-sqlalchemy-2x - designate-tox-dnspython-latest: voting: false gate: jobs: - neutron-tempest-plugin-designate-scenario - designate-tox-py310-with-sqlalchemy-2x + - designate-bind9-sqlalchemy-2x experimental: jobs: - designate-pdns4-postgres diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 03bf64c13..ce6c704f1 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -211,6 +211,9 @@ function init_designate { # (Re)create designate database recreate_database designate utf8 + if [[ "$USE_SQLALCHEMY_LATEST" == "True" ]]; then + pip3 install --upgrade alembic sqlalchemy + fi # Init and migrate designate database $DESIGNATE_BIN_DIR/designate-manage database sync