Make project-config gating in zuul v3

So that we can land a changes to project-config after v2 has been turned
off, shift project-config to v3 and remove from v2.

Change-Id: I67fc88a86d4e8b094cab88929bb6b8c47198964a
Depends-On: I7cfb90df4eb49defce7aa41453918347a2c6742e
This commit is contained in:
Monty Taylor 2017-09-25 12:15:58 -05:00 committed by James E. Blair
parent d5e62922eb
commit 57c7899cf0
4 changed files with 56 additions and 120 deletions

View File

@ -0,0 +1,7 @@
- hosts: all
tasks:
- name: Propose constraints update
command: "./tools/propose_projects_yaml_update.sh"
args:
chdir: "src/{{ zuul.project.canonical_name }}"

View File

@ -244,6 +244,11 @@
dependencies:
- release-openstack-python
- job:
name: propose-project-config-update
parent: propose-updates
run: playbooks/proposal/propose-project-config-update
- semaphore:
name: wheel-mirror
max: 1

View File

@ -48,9 +48,52 @@
- project:
name: openstack-infra/project-config
templates:
- bindep-fallback
- merge-check
check:
jobs:
- project-config-check-main-yaml
- build-openstack-specs-site
- openstack-tox-linters:
files:
- ^.*\.sh$
- ^.*\.py$
- bindep.txt
- other-requirements.txt
- test-requirements.txt
- tox.ini
- project-config-dib
- project-config-gerrit
- project-config-grafyaml
- project-config-infra-docs-index
- project-config-irc-access
- project-config-nodepool
- zuul-migrate:
files:
- zuul/mapping.yaml
gate:
queue: project-config
jobs:
- build-openstack-specs-site
- openstack-tox-linters:
files:
- ^.*\.sh$
- ^.*\.py$
- bindep.txt
- other-requirements.txt
- test-requirements.txt
- tox.ini
- project-config-dib
- project-config-gerrit
- project-config-grafyaml
- project-config-infra-docs-index
- project-config-irc-access
- project-config-nodepool
post:
jobs:
- publish-openstack-python-docs-infra-index
- publish-openstack-specs-site
periodic:
jobs:
- propose-project-config-update
- project-config-build-openafs-centos

View File

@ -2698,97 +2698,11 @@ jobs:
- name: gate-bashate-devstack
voting: false
- name: gate-project-config-irc-access
files:
- 'bindep.txt'
- 'accessbot/channels.yaml'
- 'gerritbot/channels.yaml'
- 'other-requirements.txt'
- 'tools/check_irc_access.py'
- 'tools/check_channels_yaml.sh'
- 'tools/irc_tests.py'
- 'tools/normalize_channels_yaml.py'
- 'tools/projectconfig_yamllib.py'
- 'tox.ini'
- name: gate-project-config-jenkins-project
files:
- 'bindep.txt'
- 'jenkins/jobs/.*'
- 'other-requirements.txt'
- 'tools/jenkins-projects-checks.py'
- 'tox.ini'
- name: ^gate-project-config-linters-ubuntu-xenial$
files:
- '^.*\.sh$'
- '^.*\.py$'
- 'bindep.txt'
- 'other-requirements.txt'
- 'test-requirements.txt'
- 'tox.ini'
- name: gate-infra-docs-index
files:
- 'bindep.txt'
- 'docs-site/.*'
- 'other-requirements.txt'
- 'tox.ini'
- name: gate-generate-specs-site
files:
- 'bindep.txt'
- 'specs/.*'
- 'other-requirements.txt'
- 'tox.ini'
- name: gate-project-config-grafyaml
files:
- '^grafana/.*$'
- 'bindep.txt'
- 'other-requirements.txt'
- 'tools/grafyaml-validate.sh'
- 'tox.ini'
- name: gate-project-config-dib
files:
- '^nodepool/elements/.*$'
- 'bindep.txt'
- 'other-requirements.txt'
- 'tox.ini'
- name: gate-project-config-gerrit
files:
- '^gerrit/acls/.*$'
- 'bindep.txt'
- 'check_valid_gerrit_projects.py'
- 'gerrit/projects.yaml'
- 'other-requirements.txt'
- 'tools/check_projects_yaml_alphabetized.sh'
- 'tools/check_valid_gerrit_config.sh'
- 'tox.ini'
- name: gate-project-config-nodepool
files:
- '^nodepool/nodepool.yaml'
- 'bindep.txt'
- 'other-requirements.txt'
- 'tox.ini'
- name: ^gate-bindep-bindep-fallback.*$
# Add explicit branch so that this overrides earlier
# restrictions.
branch: master
- name: ^gate-project-config-bindep-fallback.*$
# Add explicit branch so that this overrides earlier
# restrictions.
branch: master
files:
- 'bindep.txt'
- 'jenkins/data/bindep-fallback.txt'
- 'other-requirements.txt'
- name: ^gate-i18n-tox-doc-publish-docs.*$
success-pattern: http://docs-draft.openstack.org/{build.parameters[LOG_PATH]}/publish-docs/i18n/latest
@ -4280,39 +4194,6 @@ projects:
experimental:
- gate-dsvm-os-loganalyze-nv
- name: openstack-infra/project-config
template:
- name: bindep-fallback
- name: merge-check
check:
- gate-project-config-gerrit
- gate-project-config-grafyaml
- gate-project-config-layout
- gate-project-config-linters-ubuntu-xenial
- gate-project-config-irc-access
- gate-project-config-jenkins-project
- gate-project-config-nodepool
- gate-infra-docs-index
- gate-generate-specs-site
- gate-project-config-dib
gate:
- gate-project-config-gerrit
- gate-project-config-grafyaml
- gate-project-config-layout
- gate-project-config-linters-ubuntu-xenial
- gate-project-config-irc-access
- gate-project-config-nodepool
- gate-project-config-jenkins-project
- gate-infra-docs-index
- gate-generate-specs-site
- gate-project-config-dib
post:
- publish-infra-docs-index
- publish-specs-site
periodic:
- propose-project-config-update
- periodic-package-afs-centos7
- name: openstack-infra/project-config-example
template:
- name: merge-check