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
This commit is contained in:
yatinkarel 2022-02-03 15:12:52 +05:30 committed by yatin
parent 1a16c35f30
commit ca8b40403f
6 changed files with 16 additions and 0 deletions

View File

@ -26,6 +26,7 @@
- ^playbooks/.*$ - ^playbooks/.*$
- ^roles/.*$ - ^roles/.*$
- ^rally-jobs/.*$ - ^rally-jobs/.*$
- ^zuul.d/(?!(project)).*\.yaml
vars: vars:
Q_BUILD_OVS_FROM_GIT: True Q_BUILD_OVS_FROM_GIT: True
INSTALL_OVN: True INSTALL_OVN: True
@ -79,6 +80,7 @@
- ^playbooks/.*$ - ^playbooks/.*$
- ^roles/.*$ - ^roles/.*$
- ^rally-jobs/.*$ - ^rally-jobs/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job: - job:
name: neutron-fullstack-with-uwsgi name: neutron-fullstack-with-uwsgi

View File

@ -31,6 +31,7 @@
- ^neutron/cmd/ovn/.*$ - ^neutron/cmd/ovn/.*$
- ^neutron/common/ovn/.*$ - ^neutron/common/ovn/.*$
- ^vagrant/.*$ - ^vagrant/.*$
- ^zuul.d/(?!(project)).*\.yaml
vars: vars:
devstack_services: devstack_services:
etcd: false etcd: false
@ -195,6 +196,7 @@
- ^neutron/services/trunk/drivers/openvswitch/.*$ - ^neutron/services/trunk/drivers/openvswitch/.*$
- ^neutron/scheduler/.*$ - ^neutron/scheduler/.*$
- ^vagrant/.*$ - ^vagrant/.*$
- ^zuul.d/(?!(project)).*\.yaml
roles: roles:
- zuul: openstack/neutron-tempest-plugin - zuul: openstack/neutron-tempest-plugin
required-projects: required-projects:

View File

@ -77,6 +77,7 @@
- ^neutron/services/trunk/drivers/ovn/.*$ - ^neutron/services/trunk/drivers/ovn/.*$
- ^neutron/cmd/ovn/.*$ - ^neutron/cmd/ovn/.*$
- ^neutron/common/ovn/.*$ - ^neutron/common/ovn/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job: - job:
name: neutron-ovn-rally-task name: neutron-ovn-rally-task
@ -116,6 +117,7 @@
- ^neutron/services/trunk/drivers/linuxbridge/.*$ - ^neutron/services/trunk/drivers/linuxbridge/.*$
- ^neutron/services/trunk/drivers/openvswitch/.*$ - ^neutron/services/trunk/drivers/openvswitch/.*$
- ^neutron/scheduler/.*$ - ^neutron/scheduler/.*$
- ^zuul.d/(?!(project)).*\.yaml
vars: vars:
devstack_plugins: devstack_plugins:
neutron: https://opendev.org/openstack/neutron neutron: https://opendev.org/openstack/neutron

View File

@ -35,6 +35,7 @@
- ^neutron/cmd/ovn/.*$ - ^neutron/cmd/ovn/.*$
- ^neutron/common/ovn/.*$ - ^neutron/common/ovn/.*$
- ^vagrant/.*$ - ^vagrant/.*$
- ^zuul.d/(?!(project)).*\.yaml
vars: vars:
tox_envlist: integrated-network tox_envlist: integrated-network
devstack_localrc: devstack_localrc:
@ -291,6 +292,7 @@
- ^neutron/services/trunk/drivers/linuxbridge/.*$ - ^neutron/services/trunk/drivers/linuxbridge/.*$
- ^neutron/services/trunk/drivers/openvswitch/.*$ - ^neutron/services/trunk/drivers/openvswitch/.*$
- ^neutron/scheduler/.*$ - ^neutron/scheduler/.*$
- ^zuul.d/(?!(project)).*\.yaml
roles: roles:
- zuul: zuul/zuul-jobs - zuul: zuul/zuul-jobs
- zuul: openstack/neutron-tempest-plugin - zuul: openstack/neutron-tempest-plugin

View File

@ -80,6 +80,7 @@
- ^neutron/services/trunk/drivers/ovn/.*$ - ^neutron/services/trunk/drivers/ovn/.*$
- ^neutron/cmd/ovn/.*$ - ^neutron/cmd/ovn/.*$
- ^neutron/common/ovn/.*$ - ^neutron/common/ovn/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job: - job:
name: neutron-ovs-tempest-dvr name: neutron-ovs-tempest-dvr
@ -132,6 +133,7 @@
- ^neutron/services/trunk/drivers/ovn/.*$ - ^neutron/services/trunk/drivers/ovn/.*$
- ^neutron/cmd/ovn/.*$ - ^neutron/cmd/ovn/.*$
- ^neutron/common/ovn/.*$ - ^neutron/common/ovn/.*$
- ^zuul.d/(?!(project)).*\.yaml
# TODO(ralonsoh): remove this duplicated definition when "devstack" and "nova" # TODO(ralonsoh): remove this duplicated definition when "devstack" and "nova"
# adopt the new name. # adopt the new name.
@ -236,6 +238,7 @@
- ^vagrant/.*$ - ^vagrant/.*$
- ^neutron/agent/.*$ - ^neutron/agent/.*$
- ^neutron/plugins/ml2/drivers/.*$ - ^neutron/plugins/ml2/drivers/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job: - job:
name: neutron-ovn-tempest-mariadb-full name: neutron-ovn-tempest-mariadb-full
@ -309,6 +312,7 @@
- ^neutron/plugins/ml2/drivers/linuxbridge/.*$ - ^neutron/plugins/ml2/drivers/linuxbridge/.*$
- ^neutron/plugins/ml2/drivers/macvtap/.*$ - ^neutron/plugins/ml2/drivers/macvtap/.*$
- ^neutron/plugins/ml2/drivers/mech_sriov/.*$ - ^neutron/plugins/ml2/drivers/mech_sriov/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job: - job:
name: neutron-ovn-tempest-with-neutron-lib-master name: neutron-ovn-tempest-with-neutron-lib-master
@ -383,6 +387,7 @@
- ^tools/.*$ - ^tools/.*$
- ^tox.ini$ - ^tox.ini$
- ^vagrant/.*$ - ^vagrant/.*$
- ^zuul.d/(?!(project)).*\.yaml
- job: - job:
name: neutron-ovn-tempest-with-uwsgi-loki name: neutron-ovn-tempest-with-uwsgi-loki
@ -505,6 +510,7 @@
- ^neutron/services/trunk/drivers/linuxbridge/.*$ - ^neutron/services/trunk/drivers/linuxbridge/.*$
- ^neutron/services/trunk/drivers/openvswitch/.*$ - ^neutron/services/trunk/drivers/openvswitch/.*$
- ^neutron/scheduler/.*$ - ^neutron/scheduler/.*$
- ^zuul.d/(?!(project)).*\.yaml
# TODO(slaweq): move this to be multinode job when it will be possible in Zuul # TODO(slaweq): move this to be multinode job when it will be possible in Zuul
- job: - job:

View File

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