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
This commit is contained in:
yatinkarel 2022-02-03 12:17:34 +05:30
parent f92eacf7eb
commit 77bfe311d2
2 changed files with 12 additions and 24 deletions

View File

@ -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

View File

@ -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