/
github.yaml
145 lines (142 loc) · 4.42 KB
/
github.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
---
- pipeline: &defaults
name: github-check
description: |
Newly uploaded patchsets on GitHub enter this pipeline to receive an
initial +/-1 Verified vote. Should be used by production ready jobs,
for experimental ones github-manual pipeline.
success-message: Build succeeded (check pipeline).
failure-message: |
Build failed (check pipeline). Post `recheck` (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.
manager: independent
precedence: high
require:
rdoproject.org:
open: True
current-patchset: True
trigger:
github.com:
- event: pull_request
action:
- opened
- changed
- reopened
- event: pull_request
action: comment
comment: (?i)^\s*(recheck|check-rdo|\/test all)
start:
github.com:
status: 'pending'
status-url: "https://review.rdoproject.org/zuul/status/change/{change.number},{change.patchset}"
comment: false
success:
github.com:
status: 'success'
status-url: 'https://review.rdoproject.org/zuul/buildset/{buildset.uuid}'
comment: false
mqtt:
topic: "zuul/{pipeline}/result/{project}/{branch}/{change}"
opensearch_rdoproject_org:
failure:
github.com:
status: 'failure'
status-url: 'https://review.rdoproject.org/zuul/buildset/{buildset.uuid}'
comment: true
mqtt:
topic: "zuul/{pipeline}/result/{project}/{branch}/{change}"
opensearch_rdoproject_org:
- pipeline:
<<: *defaults
name: github-manual
description: |
Used for testing new or experimental jobs by manually trigerring them
with magic comment `check-github`.
success-message: Build succeeded (check pipeline).
trigger:
github.com:
- event: pull_request
action: comment
comment: (?i)^\s*(check-github|check-rdo)\s*$
- pipeline:
name: github-gate
description: |
Changes that have been approved by core developers are enqueued
in order in this pipeline, and if they pass tests, will be
merged.
success-message: Build succeeded (gate pipeline).
failure-message: |
Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing
manager: dependent
precedence: high
supercedes: check
require:
github.com:
review: []
# Require label
label:
- lgtm
- approved
open: True
current-patchset: True
trigger:
github.com:
- event: pull_request_review
action: submitted
state: approved
- event: pull_request
action: comment
comment: (?i)^\s*recheck-gate\s*$
- event: pull_request_review
action: submitted
state: approved
- event: pull_request_review
action: dismissed
state: request_changes
- event: pull_request
action: status
status: "softwarefactory-project-zuul\\[bot\\]:ansible/check:success"
- event: pull_request
action: labeled
label:
- lgtm
- approved
start:
github.com:
status: 'pending'
status-url: "https://review.rdoproject.org/zuul/status/change/{change.number},{change.patchset}"
comment: false
mqtt:
topic: "zuul/{pipeline}/start/{project}/{branch}"
success:
github.com:
status: 'success'
status-url: 'https://review.rdoproject.org/zuul/buildset/{buildset.uuid}'
merge: true
comment: true
mqtt:
topic: "zuul/{pipeline}/result/{project}/{branch}/{change}"
opensearch_rdoproject_org:
failure:
github.com:
status: 'failure'
status-url: 'https://review.rdoproject.org/zuul/buildset/{buildset.uuid}'
comment: true
mqtt:
topic: "zuul/{pipeline}/result/{project}/{branch}/{change}"
opensearch_rdoproject_org:
window-floor: 20
window-increase-factor: 2
- pipeline:
name: github-post
post-review: true
description: |
This pipeline runs jobs that operate after each change is merged.
manager: supercedent
precedence: low
trigger:
github.com:
- event: push
ref: ^refs/heads/.*$