Add managed jobs to periodic-weekly

To avoid getting zuul-jobs getting rotten without known, we need
to run them weekly.

This should solve issue where some less common job get broken and
we find out much later, when we have to make other unrelated changes.

Change-Id: I3a95526fdb83b8aef12ee2ee09a089990e75cb59
Depends-On: https://review.opendev.org/#/c/748706
This commit is contained in:
Sorin Sbarnea 2020-08-28 15:46:57 +01:00 committed by zbr
parent c5c9f7d862
commit 0d886253f6
20 changed files with 54 additions and 7 deletions

View File

@ -132,6 +132,15 @@ def handle_file(fn):
# (i.e. check is the same as gate); this gives nicer YAML output
# using dictionary anchors
project['gate']['jobs'] = joblist_gate if has_non_voting else joblist_check
# gate jobs should also be in periodic in order to assure they do not rot
periodic_pipeline = 'periodic-weekly'
if periodic_pipeline not in project:
project[periodic_pipeline] = {}
if 'jobs' not in project[periodic_pipeline]:
project[periodic_pipeline]['jobs'] = []
project[periodic_pipeline]['jobs'] = joblist_gate \
if has_non_voting else joblist_check
with open(fn, 'w') as f:
yaml.dump(outdata, stream=f)

View File

@ -14,3 +14,5 @@
- zuul-jobs-test-ansible-lint-rules
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -16,3 +16,5 @@
- zuul-jobs-test-ensure-bazel
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -18,3 +18,5 @@
- zuul-jobs-test-ensure-devstack
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -416,3 +416,5 @@
- zuul-jobs-test-ensure-podman-ubuntu-bionic
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -15,3 +15,5 @@
- zuul-jobs-test-dhall-diff
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -680,7 +680,7 @@
- zuul-jobs-test-upload-git-mirror
- zuul-jobs-test-shake-build
gate:
jobs:
jobs: &id001
- zuul-jobs-test-add-authorized-keys
- zuul-jobs-test-add-gpgkey
- zuul-jobs-test-add-sshkey
@ -718,3 +718,5 @@
- zuul-jobs-test-upload-artifactory
- zuul-jobs-test-upload-git-mirror
- zuul-jobs-test-shake-build
periodic-weekly:
jobs: *id001

View File

@ -131,7 +131,7 @@
- zuul-jobs-test-golang-go-ubuntu-xenial
- zuul-jobs-test-golang-go-ubuntu-focal
gate:
jobs:
jobs: &id001
- zuul-jobs-test-golang-go-centos-7
- zuul-jobs-test-golang-go-centos-8
- zuul-jobs-test-golang-go-debian-stretch
@ -141,3 +141,5 @@
- zuul-jobs-test-golang-go-ubuntu-bionic
- zuul-jobs-test-golang-go-ubuntu-xenial
- zuul-jobs-test-golang-go-ubuntu-focal
periodic-weekly:
jobs: *id001

View File

@ -54,3 +54,5 @@
- zuul-jobs-test-hlint
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -12,3 +12,5 @@
- zuul-jobs-test-ensure-java
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -21,3 +21,5 @@
- zuul-jobs-tox-linters
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -52,3 +52,5 @@
- zuul-jobs-test-fetch-javascript-tarball-synchronize
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -22,3 +22,5 @@
- zuul-jobs-test-add-launchpad-credentials
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -26,3 +26,5 @@
- zuul-jobs-test-upload-logs-s3
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -133,7 +133,7 @@
- zuul-jobs-test-packer-ubuntu-xenial
- zuul-jobs-test-packer-ubuntu-focal
gate:
jobs:
jobs: &id001
- zuul-jobs-test-packer-centos-7
- zuul-jobs-test-packer-centos-8
- zuul-jobs-test-packer-debian-stretch
@ -143,3 +143,5 @@
- zuul-jobs-test-packer-ubuntu-bionic
- zuul-jobs-test-packer-ubuntu-xenial
- zuul-jobs-test-packer-ubuntu-focal
periodic-weekly:
jobs: *id001

View File

@ -18,3 +18,5 @@
- zuul-jobs-test-ensure-pdk-dependencies
gate:
jobs: *id001
periodic-weekly:
jobs: *id001

View File

@ -489,7 +489,7 @@
- zuul-jobs-test-fetch-sphinx-tarball-with-zuul-output
- zuul-jobs-test-fetch-sphinx-tarball-synchronize
gate:
jobs:
jobs: &id001
- zuul-jobs-test-ensure-pip-centos-7
- zuul-jobs-test-ensure-pip-centos-8
- zuul-jobs-test-ensure-pip-debian-stretch
@ -527,3 +527,5 @@
- zuul-jobs-test-fetch-sphinx-output-synchronize
- zuul-jobs-test-fetch-sphinx-tarball-with-zuul-output
- zuul-jobs-test-fetch-sphinx-tarball-synchronize
periodic-weekly:
jobs: *id001

View File

@ -247,7 +247,7 @@
- zuul-jobs-test-ensure-python-pyenv-ubuntu-xenial
- zuul-jobs-test-ensure-python-pyenv-ubuntu-focal
gate:
jobs:
jobs: &id001
- zuul-jobs-test-build-python-release-jobs-centos-7
- zuul-jobs-test-build-python-release-jobs-centos-8
- zuul-jobs-test-build-python-release-jobs-debian-stretch
@ -266,3 +266,5 @@
- zuul-jobs-test-ensure-python-pyenv-ubuntu-bionic
- zuul-jobs-test-ensure-python-pyenv-ubuntu-xenial
- zuul-jobs-test-ensure-python-pyenv-ubuntu-focal
periodic-weekly:
jobs: *id001

View File

@ -128,7 +128,7 @@
- zuul-jobs-test-rust-ubuntu-xenial
- zuul-jobs-test-rust-ubuntu-focal
gate:
jobs:
jobs: &id001
- zuul-jobs-test-rust-centos-7
- zuul-jobs-test-rust-centos-8
- zuul-jobs-test-rust-debian-stretch
@ -138,3 +138,5 @@
- zuul-jobs-test-rust-ubuntu-bionic
- zuul-jobs-test-rust-ubuntu-xenial
- zuul-jobs-test-rust-ubuntu-focal
periodic-weekly:
jobs: *id001

View File

@ -246,7 +246,7 @@
- project:
check: &id001
jobs:
jobs: &id002
- zuul-jobs-test-terraform-centos-7
- zuul-jobs-test-terraform-centos-8
- zuul-jobs-test-terraform-debian-stretch
@ -266,3 +266,5 @@
- zuul-jobs-test-terraform-role-ubuntu-xenial
- zuul-jobs-test-terraform-role-ubuntu-focal
gate: *id001
periodic-weekly:
jobs: *id002