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