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
This commit is contained in:
yatinkarel 2022-02-25 11:38:10 +05:30
parent 999bb965f7
commit 22f1c99453
2 changed files with 109 additions and 79 deletions

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

@ -0,0 +1,106 @@
- project-template:
name: neutron-tox-override-jobs
check:
jobs:
- openstack-tox-py36: # from openstack-python3-yoga-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-py39: # from openstack-python3-yoga-jobs template
timeout: 3600
irrelevant-files: *irrelevant-files
- openstack-tox-lower-constraints: # from openstack-tox-lower-constraints template
timeout: 3600
irrelevant-files: *irrelevant-files
- openstack-tox-cover: # from openstack-cover-jobs template
timeout: 4800
irrelevant-files: *irrelevant-files
check-arm64:
jobs:
- openstack-tox-py38-arm64: # from openstack-python3-yoga-jobs-arm64 template
timeout: 4800
irrelevant-files: *irrelevant-files
- openstack-tox-py39-arm64: # from openstack-python3-yoga-jobs-arm64 template
timeout: 4800
irrelevant-files: *irrelevant-files
gate:
jobs:
- openstack-tox-py36: # from openstack-python3-yoga-jobs template
timeout: 3600
irrelevant-files: *irrelevant-files
- openstack-tox-py39: # from openstack-python3-yoga-jobs template
timeout: 3600
irrelevant-files: *irrelevant-files
- openstack-tox-lower-constraints: # from openstack-tox-lower-constraints 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
# NOTE(slaweq): those two FIPS jobs will fail until paramiko module will
# not be fixed to work properly with FIPS enabled. See
# https://review.opendev.org/c/openstack/tempest/+/810809
# for details
- neutron-ovs-tempest-fips
- neutron-ovn-tempest-ovs-release-fips
- neutron-ovn-grenade-multinode
- neutron-ovn-tempest-with-uwsgi-loki
- neutron-ovn-tempest-full-multinode-ovs-master
- neutron-ovn-tempest-ovs-master
- neutron-ovn-tempest-with-neutron-lib-master
- neutron-ovs-tempest-with-neutron-lib-master
- neutron-fullstack-with-uwsgi-with-neutron-lib-master
- neutron-functional-with-uwsgi-with-neutron-lib-master
- project-template:
name: neutron-periodic-jobs
periodic:
jobs:
- neutron-functional
- neutron-fullstack
- neutron-ovs-tempest-slow
- neutron-ovn-tempest-slow
- neutron-ovs-tempest-with-os-ken-master
- neutron-ovn-tempest-postgres-full
- neutron-ovn-tempest-mariadb-full
- neutron-ovn-tempest-ovs-release
- neutron-ovn-tempest-ovs-release-ipv6-only
- neutron-ovn-tempest-ovs-master-fedora
- neutron-ovn-tempest-with-neutron-lib-master
- devstack-tobiko-neutron:
voting: true
- ironic-tempest-ipa-wholedisk-bios-agent_ipmitool-tinyipa
- openstacksdk-functional-devstack-networking
- tripleo-ci-centos-9-content-provider
- neutron-centos-9-tripleo-standalone:
voting: true
vars: &consumer_vars
consumer_job: true
build_container_images: false
remove_tags:
- build
dependencies: &consumer_deps
- tripleo-ci-centos-9-content-provider
- neutron-ovn-tripleo-ci-centos-9-containers-multinode:
vars: *consumer_vars
dependencies: *consumer_deps
- neutron-linuxbridge-tempest-plugin-scenario-nftables
- neutron-ovs-tempest-plugin-scenario-iptables_hybrid-nftables

View File

@ -13,6 +13,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
@ -25,27 +28,6 @@
- neutron-ovn-tempest-ipv6-only
- 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-yoga-jobs template
timeout: 3600
- openstack-tox-py39: # from openstack-python3-yoga-jobs template
timeout: 3600
- openstack-tox-lower-constraints: # from openstack-tox-lower-constraints template
timeout: 3600
- openstack-tox-cover: # from openstack-cover-jobs template
timeout: 4800
check-arm64:
jobs:
- openstack-tox-py38-arm64: # from openstack-python3-yoga-jobs-arm64 template
timeout: 4800
- openstack-tox-py39-arm64: # from openstack-python3-yoga-jobs-arm64 template
timeout: 4800
gate:
jobs:
- neutron-functional-with-uwsgi
@ -54,61 +36,3 @@
- neutron-ovs-grenade-multinode
- neutron-ovs-grenade-dvr-multinode
- neutron-ovn-tempest-ipv6-only
- openstack-tox-py36: # from openstack-python3-yoga-jobs template
timeout: 3600
- openstack-tox-py39: # from openstack-python3-yoga-jobs template
timeout: 3600
- openstack-tox-lower-constraints: # from openstack-tox-lower-constraints template
timeout: 3600
experimental:
jobs:
- neutron-functional-with-uwsgi-fips
- neutron-fullstack-with-uwsgi-fips
# NOTE(slaweq): those two FIPS jobs will fail until paramiko module will
# not be fixed to work properly with FIPS enabled. See
# https://review.opendev.org/c/openstack/tempest/+/810809
# for details
- neutron-ovs-tempest-fips
- neutron-ovn-tempest-ovs-release-fips
- neutron-ovn-grenade-multinode
- neutron-ovn-tempest-with-uwsgi-loki
- neutron-ovn-tempest-full-multinode-ovs-master
- neutron-ovn-tempest-ovs-master
- neutron-ovn-tempest-with-neutron-lib-master
- neutron-ovs-tempest-with-neutron-lib-master
- neutron-fullstack-with-uwsgi-with-neutron-lib-master
- neutron-functional-with-uwsgi-with-neutron-lib-master
periodic:
jobs:
- neutron-functional
- neutron-fullstack
- neutron-ovs-tempest-slow
- neutron-ovn-tempest-slow
- neutron-ovs-tempest-with-os-ken-master
- neutron-ovn-tempest-postgres-full
- neutron-ovn-tempest-mariadb-full
- neutron-ovn-tempest-ovs-release
- neutron-ovn-tempest-ovs-release-ipv6-only
- neutron-ovn-tempest-ovs-master-fedora
- neutron-ovn-tempest-with-neutron-lib-master
- devstack-tobiko-neutron:
voting: true
- ironic-tempest-ipa-wholedisk-bios-agent_ipmitool-tinyipa
- openstacksdk-functional-devstack-networking
- tripleo-ci-centos-9-content-provider
- neutron-centos-9-tripleo-standalone:
voting: true
vars: &consumer_vars
consumer_job: true
build_container_images: false
remove_tags:
- build
dependencies: &consumer_deps
- tripleo-ci-centos-9-content-provider
- neutron-ovn-tripleo-ci-centos-9-containers-multinode:
vars: *consumer_vars
dependencies: *consumer_deps
- neutron-linuxbridge-tempest-plugin-scenario-nftables
- neutron-ovs-tempest-plugin-scenario-iptables_hybrid-nftables