Fix PBR integration testing

The openstack installation test is failing because it checks for a file
that doesn't exist. This occurs because Nova no longer uses
sqlalchemy-migrate [1] which means it won't have a 'migrate.cfg' file.
Update references to use 'alembic.ini' instead.

The tempest-full job fails because stable/train is not a valid branch on
some projects like neutron, nova, and placement. We fix this by having
the job checkout train-eol for those projects. We also reduce the
tempest test set to the smoke tests to reduce the possibility for test
failures. We don't actually need to run all tempest tests to have a good
indiciation of whether or not package installation was successful. Smoke
tests should be sufficient for that.

[1] https://github.com/openstack/nova/commit/fd39e4b4b

Change-Id: Idfd234cf4f968d646346a0e2fc0dd1be2332bb52
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Co-authored-by: Clark Boylan <clark.boylan@gmail.com>
This commit is contained in:
Stephen Finucane 2023-11-01 13:55:27 +00:00 committed by Clark Boylan
parent d03d617c09
commit 6df16432aa
2 changed files with 40 additions and 1 deletions

View File

@ -131,7 +131,20 @@
- pbr-installation-openstack-focal
- pbr-installation-openstack-pip-dev
- tempest-full:
# Default to stable/train as we want to integration test PBR
# against python2.7 and train is the last 2.7 release.
override-checkout: stable/train
# Provide tag specific overrides for projects that have dropped
# train.
required-projects:
- name: opendev.org/openstack/placement
override-checkout: train-eol
- name: opendev.org/openstack/neutron
override-checkout: train-eol
- name: opendev.org/openstack/nova
override-checkout: train-eol
vars:
tox_envlist: smoke
gate:
jobs:
- openstack-tox-pep8
@ -145,10 +158,36 @@
- pbr-installation-openstack-focal
- pbr-installation-openstack-pip-dev
- tempest-full:
# Default to stable/train as we want to integration test PBR
# against python2.7 and train is the last 2.7 release.
override-checkout: stable/train
# Provide tag specific overrides for projects that have dropped
# train.
required-projects:
- name: opendev.org/openstack/placement
override-checkout: train-eol
- name: opendev.org/openstack/neutron
override-checkout: train-eol
- name: opendev.org/openstack/nova
override-checkout: train-eol
vars:
tox_envlist: smoke
periodic:
jobs:
- pbr-installation-openstack
- pbr-installation-openstack-pip-dev
- tempest-full:
# Default to stable/train as we want to integration test PBR
# against python2.7 and train is the last 2.7 release.
override-checkout: stable/train
# Provide tag specific overrides for projects that have dropped
# train.
required-projects:
- name: opendev.org/openstack/placement
override-checkout: train-eol
- name: opendev.org/openstack/neutron
override-checkout: train-eol
- name: opendev.org/openstack/nova
override-checkout: train-eol
vars:
tox_envlist: smoke

View File

@ -138,7 +138,7 @@ class TestIntegration(base.BaseTestCase):
if self.short_name == 'nova':
found = False
for _, _, filenames in os.walk(root):
if 'migrate.cfg' in filenames:
if 'alembic.ini' in filenames:
found = True
self.assertTrue(found)
venv = self.useFixture(