diff --git a/.zuul.yaml b/.zuul.yaml index 2e1443335c7a..2d6a2abb8ae5 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -114,10 +114,31 @@ name: nova-lvm parent: nova-dsvm-base description: | - Run standard integration tests using LVM image backend. This is useful if - there are tests touching this code. + Run tempest compute API tests using LVM image backend. This only runs + against nova/virt/libvirt/* changes. run: playbooks/legacy/nova-lvm/run.yaml post-run: playbooks/legacy/nova-lvm/post.yaml + # Copy irrelevant-files from nova-dsvm-base and then exclude anything + # that is not in the nova/virt/libvirt/* tree (besides the actual zuul + # playbook and tempest rc files so this can be self-testing). + irrelevant-files: + - ^(?!.zuul.yaml)(?!playbooks/legacy/nova-lvm/)(?!devstack/tempest-dsvm-lvm-rc)(?!nova/virt/libvirt/).*$ + - ^(placement-)?api-.*$ + - ^(test-|)requirements.txt$ + - ^.*\.rst$ + - ^.git.*$ + - ^doc/.*$ + - ^nova/hacking/.*$ + - ^nova/locale/.*$ + - ^nova/tests/.*$ + - ^releasenotes/.*$ + - ^setup.cfg$ + - ^tests-py3.txt$ + - ^tools/.*$ + - ^tox.ini$ + # TODO(mriedem): Make this voting and gating once bug 1771700 is fixed + # and we've had enough runs to feel comfortable with this setup. + voting: false - job: name: nova-multiattach @@ -150,6 +171,7 @@ jobs: - nova-cells-v1 - nova-live-migration + - nova-lvm - nova-multiattach - nova-next - nova-tox-functional @@ -167,4 +189,3 @@ experimental: jobs: - nova-caching-scheduler - - nova-lvm diff --git a/devstack/tempest-dsvm-lvm-rc b/devstack/tempest-dsvm-lvm-rc index ba6aef9f670b..eb87ba445b08 100644 --- a/devstack/tempest-dsvm-lvm-rc +++ b/devstack/tempest-dsvm-lvm-rc @@ -33,6 +33,11 @@ r="^(?!.*" r="$r(?:.*\[.*\bslow\b.*\])" +# Only run compute API tests. The ! here looks confusing but it's to negate +# the ! at the beginning of the regex since the rest of this is meant to be +# a backlist. +r="$r|(?!.*api.compute.*)" + # NOTE(mriedem): resize of non-volume-backed lvm instances does not yet work # tempest.api.compute.admin.test_migrations.MigrationsAdminTest.test_list_migrations_in_flavor_resize_situation r="$r|(?:.*id\-1b512062\-8093\-438e\-b47a\-37d2f597cd64.*)"