Restructure layout for periodic, experimental and tox jobs

Following changes are done to make future changes
to these job layouts efficient:-
- Move periodic, experimental and tox jobs overrides
  to seperate project-template and file. This will
  avoid running other jobs when changes are done
  to periodic and experimental pipelines(as these
  pipelines do not run on new patch sets).
- Update irrelevant-files for tox jobs so that those
  can be skipped on file changes which these jobs
  do not test.

Also drop comment for TripleO job as that's no
longer valid after moving those jobs to periodic
pipeline.

Change-Id: Ib50875acd872d8aaecc7c874a1429788c6bf2445
(cherry picked from commit 22f1c99453)
Conflicts: zuul.d/project.yaml
(cherry picked from commit b0b17dad0a)
This commit is contained in:
yatinkarel 2022-02-25 11:38:10 +05:30
parent 61a027a8a0
commit f9740fcbb5
2 changed files with 71 additions and 46 deletions

68
zuul.d/job-templates.yaml Normal file
View File

@ -0,0 +1,68 @@
- project-template:
name: neutron-tox-override-jobs
check:
jobs:
- openstack-tox-py36: # from openstack-python3-wallaby-jobs template
timeout: 3600
irrelevant-files: &irrelevant-files
- ^.*\.conf\.sample$
- ^.*\.rst$
- ^doc/.*$
- ^neutron/locale/.*$
- ^neutron/tests/fullstack/.*$
- ^neutron/tests/functional/.*$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tools/.*$
- ^vagrant/.*$
- ^devstack/.*$
- ^playbooks/.*$
- ^roles/.*$
- ^rally-jobs/.*$
- ^zuul.d/(?!(job-templates)).*\.yaml
- openstack-tox-py38: # from openstack-python3-wallaby-jobs template
timeout: 3600
irrelevant-files: *irrelevant-files
- openstack-tox-cover: # from openstack-cover-jobs template
timeout: 4800
irrelevant-files: *irrelevant-files
gate:
jobs:
- openstack-tox-py36: # from openstack-python3-wallaby-jobs template
timeout: 3600
irrelevant-files: *irrelevant-files
- project-template:
name: neutron-experimental-jobs
experimental:
jobs:
- neutron-functional-with-uwsgi-fips
- neutron-fullstack-with-uwsgi-fips
- neutron-grenade-ovn
- neutron-tempest-with-uwsgi-loki
- project-template:
name: neutron-periodic-jobs
periodic:
jobs:
- neutron-functional
- neutron-fullstack
- neutron-tempest-postgres-full
- neutron-tempest-mariadb-full
- devstack-tobiko-neutron:
voting: true
- ironic-tempest-ipa-wholedisk-bios-agent_ipmitool-tinyipa
- openstacksdk-functional-devstack-networking
- tripleo-ci-centos-8-content-provider
- neutron-centos-8-tripleo-standalone:
voting: true
vars: &consumer_vars
consumer_job: true
build_container_images: false
remove_tags:
- build
dependencies: &consumer_deps
- tripleo-ci-centos-8-content-provider
- neutron-ovn-tripleo-ci-centos-8-containers-multinode:
vars: *consumer_vars
dependencies: *consumer_deps

View File

@ -12,6 +12,9 @@
- periodic-stable-jobs
- check-requirements
- release-notes-jobs-python3
- neutron-experimental-jobs
- neutron-periodic-jobs
- neutron-tox-override-jobs
check:
jobs:
- neutron-functional-with-uwsgi
@ -35,19 +38,6 @@
# voting: false
- neutron-ovn-rally-task:
voting: false
# TripleO jobs that deploy OVN.
# Note we don't use a project-template here, so it's easier
# to disable voting on one specific job if things go wrong.
# In Stein and beyond, fs010 will run using
# networking-ovn-tripleo-ci-centos-7-containers-multinode.
# If you need any support to debug these jobs in case of
# failures, please reach us on #tripleo IRC channel.
- openstack-tox-py36: # from openstack-python3-wallaby-jobs template
timeout: 3600
- openstack-tox-py38: # from openstack-python3-wallaby-jobs template
timeout: 3600
- openstack-tox-cover: # from openstack-cover-jobs template
timeout: 4800
- neutron-ovn-tempest-slow
gate:
jobs:
@ -63,39 +53,6 @@
- neutron-tempest-ipv6-only
- neutron-ovn-tempest-ovs-release
- neutron-ovn-tempest-ovs-release-ipv6-only
- openstack-tox-py36: # from openstack-python3-wallaby-jobs template
timeout: 3600
- neutron-ovn-tempest-slow
#- neutron-ovn-rally-task
#- neutron-ovn-tripleo-ci-centos-8-containers-multinode
experimental:
jobs:
- neutron-functional-with-uwsgi-fips
- neutron-fullstack-with-uwsgi-fips
- neutron-grenade-ovn
- neutron-tempest-with-uwsgi-loki
periodic:
jobs:
- neutron-functional
- neutron-fullstack
- neutron-tempest-postgres-full
- neutron-tempest-mariadb-full
- devstack-tobiko-neutron:
voting: true
- ironic-tempest-ipa-wholedisk-bios-agent_ipmitool-tinyipa
- openstacksdk-functional-devstack-networking
- tripleo-ci-centos-8-content-provider
- neutron-centos-8-tripleo-standalone:
voting: true
vars: &consumer_vars
consumer_job: true
build_container_images: false
remove_tags:
- build
dependencies: &consumer_deps
- tripleo-ci-centos-8-content-provider
- neutron-ovn-tripleo-ci-centos-8-containers-multinode:
vars: *consumer_vars
dependencies: *consumer_deps