From 25c1fe8a451d1236baa860ce8ff8c8b1d1147471 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 6 Nov 2020 10:34:40 +1100 Subject: [PATCH] Initial setup Change-Id: I9c53328df5a8ccc615906753cb63e0a1f13fb9cf --- zuul.d/README.rst | 5 ++ zuul.d/pipelines.yaml | 146 ++++++++++++++++++++++++++++++++++++++++++ zuul.d/projects.yaml | 8 +++ 3 files changed, 159 insertions(+) create mode 100644 zuul.d/README.rst create mode 100644 zuul.d/pipelines.yaml create mode 100644 zuul.d/projects.yaml diff --git a/zuul.d/README.rst b/zuul.d/README.rst new file mode 100644 index 0000000..701946d --- /dev/null +++ b/zuul.d/README.rst @@ -0,0 +1,5 @@ +pypa Zuul jobs and config +========================= + +This repo contains various Zuul configuration used by the pypa tenant +in OpenDev's Zuul. diff --git a/zuul.d/pipelines.yaml b/zuul.d/pipelines.yaml new file mode 100644 index 0000000..37cb3c8 --- /dev/null +++ b/zuul.d/pipelines.yaml @@ -0,0 +1,146 @@ +# Shared zuul config specific to the pypa +# Contains definitions of pipelines + +- pipeline: + name: check + description: | + Newly uploaded patchsets enter this pipeline to receive an + initial +/-1 Verified vote. + success-message: Build succeeded (check pipeline). + failure-message: | + Build failed (check pipeline). For information on how to proceed, see + https://docs.opendev.org/opendev/infra-manual/latest/developers.html#automated-testing + manager: independent + precedence: low + require: + gerrit: + open: True + current-patchset: True + trigger: + gerrit: + - event: patchset-created + - event: change-restored + - event: comment-added + comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*recheck + - event: comment-added + require-approval: + - Verified: [-1, -2] + username: zuul + approval: + - Workflow: 1 + github: + - event: pull_request + action: + - opened + - changed + - reopened + - event: check_run + - event: pull_request + action: comment + comment: (?i)^\s*recheck\s*$ + start: + github: + check: 'in_progress' + comment: false + success: + gerrit: + # Note that gerrit keywords are case-sensitive. + Verified: 1 + github: + check: 'success' + comment: false + mysql: + failure: + gerrit: + Verified: -1 + github: + check: 'failure' + comment: false + mysql: + +- pipeline: + name: gate + description: | + Changes that have been approved by core reviewers are enqueued + in order in this pipeline, and if they pass tests, will be + merged. For documentation on how gating with Zuul works, please see + https://zuul-ci.org/docs/zuul/user/gating.html + success-message: Build succeeded (gate pipeline). + failure-message: | + Build failed (gate pipeline). For information on how to proceed, see + https://docs.opendev.org/opendev/infra-manual/latest/developers.html#automated-testing + manager: dependent + precedence: normal + post-review: True + require: + gerrit: + open: True + current-patchset: True + approval: + - Verified: [1, 2] + username: zuul + - Workflow: 1 + trigger: + gerrit: + - event: comment-added + approval: + - Workflow: 1 + - event: comment-added + approval: + - Verified: 1 + username: zuul + start: + gerrit: + Verified: 0 + success: + gerrit: + Verified: 2 + submit: true + mysql: + failure: + gerrit: + Verified: -2 + mysql: + window-floor: 20 + window-increase-factor: 2 + +- pipeline: + name: promote + description: | + This pipeline runs jobs that operate after each change is merged + in order to promote artifacts generated in the gate + pipeline. + success-message: Build succeeded (promote pipeline). + failure-message: | + Build failed (promote pipeline). For information on how to proceed, see + https://docs.opendev.org/opendev/infra-manual/latest/developers.html#automated-testing + manager: supercedent + precedence: high + post-review: True + trigger: + gerrit: + - event: change-merged + success: + gerrit: {} + mysql: + failure: + gerrit: {} + mysql: + +- pipeline: + name: release + description: This pipeline runs in response to any tag event + manager: independent + precedence: high + post-review: True + trigger: + gerrit: + - event: ref-updated + ref: ^refs/tags/.*$ + github: + - event: push + ref: ^refs/tags/.*$ + success: + mysql: + failure: + mysql: diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml new file mode 100644 index 0000000..a5d40a5 --- /dev/null +++ b/zuul.d/projects.yaml @@ -0,0 +1,8 @@ +- project: + name: pypa/project-config + check: + jobs: + - noop + gate: + jobs: + - noop