From 531c5062c4cff602e455522c90fd9ce546f5ade1 Mon Sep 17 00:00:00 2001 From: Carlos Goncalves Date: Sun, 23 Jun 2019 15:18:06 +0200 Subject: [PATCH] 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 --- zuul.d/jobs.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 4692d826..20aafb62 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -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