Set irrelevant files on CI jobs

All jobs are triggered regardless of files changed, except for files
already defined in octavia-dsvm-base. This means many jobs that are not
impacted by a given change will be run in CI. Not only this is a waste
of CI resources but undeeded jobs may also fail (e.g. timeouts), thus
blocking changes from merging.

This patch defines a more granular set of irrelevant files per job. For
example, it prevents active-standby jobs from running when a change is
limited to normal scenario files.

Change-Id: I9eba013fb0b87afc44187e259b594f9b93bcc5d9
This commit is contained in:
Carlos Goncalves 2019-06-23 15:18:06 +02:00
parent 2261d112b2
commit 531c5062c4
1 changed files with 29 additions and 0 deletions

View File

@ -293,6 +293,13 @@
tempest_concurrency: 2
tempest_test_regex: ^octavia_tempest_plugin.tests.api.v2
tox_envlist: all
irrelevant-files:
- ^.*\.rst$
- ^api-ref/.*$
- ^doc/.*$
- ^etc/.*$
- ^releasenotes/.*$
- ^octavia_tempest_plugin/tests/(?!api/|\w+\.py).*
- job:
name: octavia-v2-dsvm-noop-py2-api
@ -328,6 +335,13 @@
tempest_concurrency: 2
tempest_test_regex: ^octavia_tempest_plugin.tests.scenario.v2
tox_envlist: all
irrelevant-files:
- ^.*\.rst$
- ^api-ref/.*$
- ^doc/.*$
- ^etc/.*$
- ^releasenotes/.*$
- ^octavia_tempest_plugin/tests/(?!scenario/|\w+\.py).*
- job:
name: octavia-v2-dsvm-py2-scenario
@ -358,6 +372,13 @@
tempest_concurrency: 2
tempest_test_regex: ^octavia_tempest_plugin.tests.scenario.v2
tox_envlist: all
irrelevant-files:
- ^.*\.rst$
- ^api-ref/.*$
- ^doc/.*$
- ^etc/.*$
- ^releasenotes/.*$
- ^octavia_tempest_plugin/tests/(?!scenario/|\w+\.py).*
- job:
name: octavia-v2-dsvm-py2-scenario-two-node
@ -413,6 +434,13 @@
barbican: https://opendev.org/openstack/barbican.git
devstack_localrc:
TEMPEST_PLUGINS: '"/opt/stack/octavia-tempest-plugin /opt/stack/barbican-tempest-plugin"'
irrelevant-files:
- ^.*\.rst$
- ^api-ref/.*$
- ^doc/.*$
- ^etc/.*$
- ^releasenotes/.*$
- ^octavia_tempest_plugin/tests/(?!barbican_scenario/|\w+\.py).*
- job:
name: octavia-v2-dsvm-tls-barbican-stable-stein
@ -468,6 +496,7 @@
tempest_test_regex: ^octavia_tempest_plugin.tests.act_stdby_scenario.v2.test_active_standby_iptables
tox_envlist: all
- job:
name: octavia-v2-act-stdby-dsvm-py2-scenario
parent: octavia-v2-act-stdby-dsvm-scenario