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: Ida7c3ac974058769eb7ff901715e9b17a998bf79
(cherry picked from commit ca8b40403f)
(cherry picked from commit 67f36f0c5c)
Conflicts: zuul.d/base.yaml
 	zuul.d/grenade.yaml
 	zuul.d/rally.yaml
 	zuul.d/tempest-multinode.yaml
 	zuul.d/tempest-singlenode.yaml
 	zuul.d/tripleo.yaml
This commit is contained in:
yatinkarel 2022-02-03 15:12:52 +05:30
parent afb0c633f8
commit e755baa279
6 changed files with 15 additions and 0 deletions

View File

@ -22,6 +22,7 @@
- ^tools/.*$
- ^vagrant/.*$
- ^devstack/.*\.sample$
- ^zuul.d/(?!(project)).*\.yaml
vars:
OVN_BRANCH: v20.06.1
# TODO(jlibosva): v2.13.0 is incompatible with kernel 4.15.0, sticking to commit hash until new v2.13 tag is created.
@ -66,6 +67,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/plugins/ml2/drivers/ovn/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job:
name: neutron-fullstack-with-uwsgi

View File

@ -20,6 +20,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/plugins/ml2/drivers/ovn/.*$
- ^zuul.d/(?!(project)).*\.yaml
vars:
devstack_services:
etcd: false
@ -160,6 +161,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/scheduler/.*$
- ^zuul.d/(?!(project)).*\.yaml
roles:
- zuul: openstack/neutron-tempest-plugin
required-projects:

View File

@ -50,6 +50,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/plugins/ml2/drivers/ovn/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job:
name: neutron-ovn-rally-task
@ -84,6 +85,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/scheduler/.*$
- ^zuul.d/(?!(project)).*\.yaml
vars:
devstack_plugins:
neutron: https://opendev.org/openstack/neutron

View File

@ -24,6 +24,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/plugins/ml2/drivers/ovn/.*$
- ^zuul.d/(?!(project)).*\.yaml
voting: false
vars:
tox_envlist: integrated-network
@ -220,6 +221,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/scheduler/.*$
- ^zuul.d/(?!(project)).*\.yaml
roles:
- zuul: zuul/zuul-jobs
- zuul: openstack/neutron-tempest-plugin

View File

@ -65,6 +65,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/plugins/ml2/drivers/ovn/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job:
name: neutron-tempest-dvr
@ -100,6 +101,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/plugins/ml2/drivers/ovn/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job:
name: neutron-tempest-iptables_hybrid
@ -191,6 +193,7 @@
- ^vagrant/.*$
- ^neutron/agent/.*$
- ^neutron/plugins/ml2/drivers/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job:
name: neutron-tempest-mariadb-full
@ -260,6 +263,7 @@
- ^vagrant/.*$
- ^migration/.*$
- ^devstack/.*\.sample$
- ^zuul.d/(?!(project)).*\.yaml
- job:
name: neutron-ovn-base
@ -369,6 +373,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/scheduler/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job:
name: neutron-tempest-ipv6-only

View File

@ -32,6 +32,7 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/plugins/ml2/drivers/ovn/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job:
name: neutron-ovn-tripleo-ci-centos-8-containers-multinode
@ -65,3 +66,4 @@
- ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^neutron/scheduler/.*$
- ^zuul.d/(?!(project)).*\.yaml