-
Notifications
You must be signed in to change notification settings - Fork 161
/
config.yaml
298 lines (290 loc) · 9.76 KB
/
config.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
# Copyright 2020 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
plank:
job_url_template: 'https://prow.knative.dev/view/gcs/knative-prow/{{if or (eq .Spec.Type "presubmit") (eq .Spec.Type "batch")}}pr-logs/pull{{with .Spec.Refs}}/{{.Org}}_{{.Repo}}{{end}}{{else}}logs{{end}}{{if eq .Spec.Type "presubmit"}}/{{with index .Spec.Refs.Pulls 0}}{{.Number}}{{end}}{{else if eq .Spec.Type "batch"}}/batch{{end}}/{{.Spec.Job}}/{{.Status.BuildID}}/'
report_templates:
'*': '[Your PR dashboard](https://prow.knative.dev/pr).'
job_url_prefix_config:
'*': https://prow.knative.dev/view/
pod_pending_timeout: 60m
default_decoration_config_entries:
- config:
timeout: 2h
grace_period: 15s
utility_images:
# Update these versions when updating plank version in cluster.yaml
clonerefs: "gcr.io/k8s-prow/clonerefs:v20230519-bb3c69e522"
initupload: "gcr.io/k8s-prow/initupload:v20230519-bb3c69e522"
entrypoint: "gcr.io/k8s-prow/entrypoint:v20230519-bb3c69e522"
sidecar: "gcr.io/k8s-prow/sidecar:v20230519-bb3c69e522"
gcs_configuration:
bucket: "knative-prow"
path_strategy: "explicit"
gcs_credentials_secret: ""
resources:
sidecar:
requests:
cpu: 100m
memory: 20Mi
- cluster: prow-build
config:
timeout: 2h
grace_period: 15s
utility_images:
# Update these versions when updating plank version in cluster.yaml
clonerefs: "gcr.io/k8s-prow/clonerefs:v20230519-bb3c69e522"
initupload: "gcr.io/k8s-prow/initupload:v20230519-bb3c69e522"
entrypoint: "gcr.io/k8s-prow/entrypoint:v20230519-bb3c69e522"
sidecar: "gcr.io/k8s-prow/sidecar:v20230519-bb3c69e522"
gcs_configuration:
bucket: "knative-prow"
path_strategy: "explicit"
gcs_credentials_secret: gcs-upload
resources:
sidecar:
requests:
cpu: 100m
memory: 20Mi
slack_reporter_configs:
"*":
# Do not report any job types by default.
job_types_to_report:
# Do not report any job states by default.
job_states_to_report:
# By default reporting to the test channel, it is required so it has to be set here.
channel: knative-ci
report_template: "Job `{{.Spec.Job}}` ended with state *{{.Status.State}}*: <{{.Status.URL}}|View logs>"
deck:
google_analytics: G-Z5SCKHSFYJ
spyglass:
size_limit: 500000000 # 500MB
gcs_browser_prefix: https://gcsweb.knative.dev/gcs/
testgrid_config: gs://knative-testgrid/config
testgrid_root: https://testgrid.knative.dev/
announcement: "Please reach out on the #productivity slack channel to report issues with Knative Test Infrastructure."
lenses:
- lens:
name: metadata
required_files:
- started.json|finished.json
optional_files:
- podinfo.json
- lens:
name: buildlog
config:
highlight_regexes:
# timed out error in waiting for Kubernetes resources
- 'timed out waiting for the condition'
# go test timeout
- 'panic: test timed out after.*$'
# test case failure
- 'FAIL:'
# data race errors
- 'WARNING: DATA RACE'
# step failed
- 'Step failed:'
# boskos error
- 'boskos failed to acquire project'
# cluster creation error
- 'failed creating test cluster'
# Knative setup errors
- 'Knative setup failed'
- 'timeout waiting for pods to come up'
# Prow job killed
- 'Entrypoint received interrupt: terminated'
# Go build failure due to OOM
- '"go build": signal: killed'
# Code is outdated
# TODO(chizhg): this error message should be defined by the common test infrastructure
- 'Please run .*hack/update-codegen.sh'
# Metrics are logged only for Pods in a failed test.
- 'Metrics logs'
# Compile error - unused import.
- 'imported and not used:'
# Compile error - unused variable.
- 'declared but not used'
# Compile error - undefined variable.
- 'undefined:'
# Compile error - not enough arguments.
- 'not enough arguments in call to '
# Compile error - too many arguments.
- 'too many arguments in call to '
# Compile error - incorrect argument type.
- 'cannot use .* \\(type .*\\) as type .* in argument to'
required_files:
- build-log.txt
- lens:
name: junit
required_files:
# Nested folders is a valid use case
- artifacts(/.*/|/)junit.*\.xml
- lens:
name: podinfo
required_files:
- podinfo.json
tide_update_period: 1s
rerun_auth_configs:
'*':
github_team_slugs:
- org: 'knative'
slug: 'productivity-writers'
- org: 'knative'
slug: 'technical-oversight-committee'
- org: 'knative'
slug: 'knative-release-leads'
- org: 'knative'
slug: 'client-wg-leads'
- org: 'knative'
slug: 'docs-wg-leads'
- org: 'knative'
slug: 'eventing-wg-leads'
- org: 'knative'
slug: 'operations-wg-leads'
- org: 'knative'
slug: 'security-wg-leads'
- org: 'knative'
slug: 'serving-wg-leads'
- org: 'knative'
slug: 'ux-wg-leads'
prowjob_namespace: default
pod_namespace: test-pods
log_level: debug
sinker:
resync_period: 1m
max_prowjob_age: 240h
max_pod_age: 30m
terminated_pod_ttl: 30m
tide:
queries:
- orgs:
- "knative"
- "knative-sandbox"
excludedRepos: &knative_excluded_repos
- knative/build
- knative/build-templates
- knative/eventing-operator
- knative/serving-operator
- knative/observability
labels:
- lgtm
- approved
missingLabels: &knative_tide_missing_labels
- do-not-merge/hold
- do-not-merge/work-in-progress
- do-not-merge/invalid-owners-file
- needs-rebase
- orgs:
- "knative"
- "knative-sandbox"
excludedRepos: *knative_excluded_repos
labels:
- "skip-review"
missingLabels: *knative_tide_missing_labels
author: knative-automation
reviewApprovedRequired: false
- repos:
# Allow PRs for test-infra to be automatically merged without manual approval
- "knative/test-infra"
labels:
- "skip-review"
missingLabels: *knative_tide_missing_labels
author: knative-prow-updater-robot
reviewApprovedRequired: false
merge_method:
knative: squash
knative-sandbox: squash
target_url: https://prow.knative.dev/tide
pr_status_base_urls:
'*': https://prow.knative.dev/pr
blocker_label: tide/merge-blocker
squash_label: tide/merge-method-squash
rebase_label: tide/merge-method-rebase
merge_label: tide/merge-method-merge
# https://github.com/kubernetes/test-infra/blob/master/prow/cmd/tide/config.md#context-policy-options
context_options:
# Treat unknown contexts as optional
skip-unknown-contexts: false
orgs:
knative:
repos:
pkg:
skip-unknown-contexts: true
eventing:
skip-unknown-contexts: true
docs:
skip-unknown-contexts: true
knative-sandbox:
repos:
async-component:
skip-unknown-contexts: true
eventing-kafka-broker:
skip-unknown-contexts: true
reconciler-test:
skip-unknown-contexts: true
# orgs:
# org:
# required-contexts:
# - "check-required-for-all-repos"
# repos:
# repo:
# required-contexts:
# - "check-required-for-all-branches"
# branches:
# branch:
# from-branch-protection: false
# required-contexts:
# - "required_test"
# optional-contexts:
# - "optional_test"
# Configure GitHub branch protection rules according to the specified policy.
branch-protection:
# Allows a child to disable all protection even if the branch has inherited protection options from a parent.
allow_disabled_policies: true
orgs:
knative-sandbox:
# Protect all branches in knative-sandbox
protect: true
required_status_checks:
contexts:
- EasyCLA
- tide
exclude:
- "^dependabot/" # don't protect branches created by dependabot
- "^knative-*/" # don't protect branches created by Knative automation
include:
- "^main$"
- "^master$"
- "^release-"
# Enforce all configured restrictions above for administrators.
enforce_admins: true
knative:
# Protect all branches in knative
protect: true
required_status_checks:
contexts:
- EasyCLA
- tide
exclude:
- "^dependabot/" # don't protect branches created by dependabot
- "^knative-*/" # don't protect branches created by Knative automation
include:
- "^main$"
- "^master$"
- "^release-"
- "^gh-pages$"
# Enforce all configured restrictions above for administrators.
enforce_admins: true
repos:
.github:
protect: false