From 77bfe311d25417a90d9b7761e789d6a08c3f50c4 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Thu, 3 Feb 2022 12:17:34 +0530 Subject: [PATCH] Update irrelevant-files to skip run of untouched jobs Currently when a job config is updated, all other jobs are triggered unnecessary. This patch updates irrelevant files to ignore changes in all job config files except zuul.d/project.yaml(as this contains the list of jobs to run not their definitions). With this only the jobs whose definitions are updated(along with it's child jobs) will be triggered because by default match-on-config-updates is set to true for a job[1] and that ignores files or irrelevant-files for a job inclusion. [1] https://zuul-ci.org/docs/zuul/latest/config/job.html#attr-job.match-on-config-updates Change-Id: I6ae7891912d9c3dda9349a6e11a1011fd5bc4012 --- zuul.d/base.yaml | 3 +-- zuul.d/master_jobs.yaml | 33 +++++++++++---------------------- 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/zuul.d/base.yaml b/zuul.d/base.yaml index bd2ae09e..e524c0b5 100644 --- a/zuul.d/base.yaml +++ b/zuul.d/base.yaml @@ -99,8 +99,7 @@ - ^tox.ini$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-scenario diff --git a/zuul.d/master_jobs.yaml b/zuul.d/master_jobs.yaml index 468128af..397f3189 100644 --- a/zuul.d/master_jobs.yaml +++ b/zuul.d/master_jobs.yaml @@ -132,8 +132,7 @@ - ^neutron_tempest_plugin/scenario/.*$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-scenario-openvswitch @@ -221,8 +220,7 @@ - ^neutron_tempest_plugin/services/bgp/.*$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-scenario-openvswitch-iptables_hybrid @@ -320,8 +318,7 @@ - ^neutron_tempest_plugin/services/bgp/.*$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-scenario-openvswitch-distributed-dhcp @@ -452,8 +449,7 @@ - ^neutron_tempest_plugin/services/bgp/.*$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-scenario-ovn @@ -587,8 +583,7 @@ - ^neutron_tempest_plugin/services/bgp/.*$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-dvr-multinode-scenario @@ -830,8 +825,7 @@ - ^neutron_tempest_plugin/services/bgp/.*$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-sfc @@ -894,8 +888,7 @@ - ^tox.ini$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-bgpvpn-bagpipe @@ -954,8 +947,7 @@ - ^tox.ini$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-dynamic-routing @@ -1019,8 +1011,7 @@ - ^tox.ini$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-vpnaas @@ -1079,8 +1070,7 @@ - ^tox.ini$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml - job: name: neutron-tempest-plugin-tap-as-a-service @@ -1183,5 +1173,4 @@ - ^tox.ini$ - ^rally-jobs/.*$ - ^vagrant/.*$ - - ^zuul.d/(queens|rocky|stein|train|ussuri)_jobs.yaml$ - - ^zuul.d/base-nested-switch.yaml$ + - ^zuul.d/(?!(project)).*\.yaml