-
Notifications
You must be signed in to change notification settings - Fork 110
/
config.yaml
187 lines (186 loc) · 7.24 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
plank:
job_url_template: 'https://tekton-releases.appspot.com/build/tekton-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_template: '[Full PR test history](https://tekton-releases.appspot.com/pr/{{.Spec.Refs.Org}}_{{.Spec.Refs.Repo}}/{{with index .Spec.Refs.Pulls 0}}{{.Number}}{{end}}). [Your PR dashboard](https://prow.tekton.dev/pr/{{with index .Spec.Refs.Pulls 0}}{{.Author}}{{end}}).'
pod_pending_timeout: 60m
default_decoration_config:
timeout: 7200000000000 # 2h
grace_period: 15000000000 # 15s
utility_images:
clonerefs: "gcr.io/k8s-prow/clonerefs@sha256:b62ba1f379ac19c5ec9ee7bcab14d3f0b3c31cea9cdd4bc491e98e2c5f346c07"
initupload: "gcr.io/k8s-prow/initupload@sha256:58f89f2aae68f7dc46aaf05c7e8204c4f26b53ec9ce30353d1c27ce44a60d121"
entrypoint: "gcr.io/k8s-prow/entrypoint:v20180512-0255926d1"
sidecar: "gcr.io/k8s-prow/sidecar@sha256:8807b2565f4d2699920542fcf890878824b1ede4198d7ff46bca53feb064ed44"
gcs_configuration:
bucket: "tekton-prow"
path_strategy: "explicit"
gcs_credentials_secret: "test-account"
branch-protection:
orgs:
tektoncd:
# Protect all branches in tekton
# This means all prow jobs with "always_run" set are required
# to pass before tide can merge the PR.
# Currently this is manually enabled by the tekton org admins,
# but it's stated here for documentation and reference purposes.
protect: true
# Admins can overrule checks
enforce_admins: false
tide:
queries:
- repos:
- tektoncd/pipeline
labels:
- lgtm
- approved
missingLabels:
- do-not-merge/hold
- do-not-merge/work-in-progress
- repos:
- tektoncd/community
labels:
- lgtm
- approved
missingLabels:
- do-not-merge/hold
- do-not-merge/work-in-progress
merge_method:
tektoncd/pipeline: rebase
target_url: https://prow.tekton.dev/tide
presubmits:
tektoncd/pipeline:
- name: pull-tekton-pipeline-build-tests
agent: kubernetes
context: pull-tekton-pipeline-build-tests
always_run: true
rerun_command: "/test pull-tekton-pipeline-build-tests"
trigger: "(?m)^/test (all|pull-tekton-pipeline-build-tests),?(\\s+|$)"
spec:
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests@sha256:39296f6df4f29812689b41c47c78bdb00fbbec5ee63407fcbfefec0f48f5b6b1
imagePullPolicy: Always
args:
- "--scenario=kubernetes_execute_bazel"
- "--clean"
- "--job=$(JOB_NAME)"
- "--repo=github.com/$(REPO_OWNER)/$(REPO_NAME)=$(PULL_REFS)"
- "--root=/go/src"
- "--service-account=/etc/test-account/service-account.json"
- "--upload=gs://tekton-prow/pr-logs"
- "--" # end bootstrap args, scenario args below
- "--" # end kubernetes_execute_bazel flags (consider following flags as text)
- "./test/presubmit-tests.sh"
- "--build-tests"
volumeMounts:
- name: test-account
mountPath: /etc/test-account
readOnly: true
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/test-account/service-account.json
- name: E2E_CLUSTER_REGION
value: us-central1
volumes:
- name: test-account
secret:
secretName: test-account
- name: pull-tekton-pipeline-unit-tests
agent: kubernetes
context: tekton-pipeline-unit-tests
always_run: true
rerun_command: "/test tekton-pipeline-unit-tests"
trigger: "(?m)^/test (all|tekton-pipeline-unit-tests),?(\\s+|$)"
spec:
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests@sha256:39296f6df4f29812689b41c47c78bdb00fbbec5ee63407fcbfefec0f48f5b6b1
imagePullPolicy: Always
args:
- "--scenario=kubernetes_execute_bazel"
- "--clean"
- "--job=$(JOB_NAME)"
- "--repo=github.com/$(REPO_OWNER)/$(REPO_NAME)=$(PULL_REFS)"
- "--root=/go/src"
- "--service-account=/etc/test-account/service-account.json"
- "--upload=gs://tekton-prow/pr-logs"
- "--" # end bootstrap args, scenario args below
- "--" # end kubernetes_execute_bazel flags (consider following flags as text)
- "./test/presubmit-tests.sh"
- "--unit-tests"
volumeMounts:
- name: test-account
mountPath: /etc/test-account
readOnly: true
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/test-account/service-account.json
- name: E2E_CLUSTER_REGION
value: us-central1
volumes:
- name: test-account
secret:
secretName: test-account
- name: pull-tekton-pipeline-integration-tests
agent: kubernetes
context: pull-tekton-pipeline-integration-tests
always_run: true
rerun_command: "/test pull-tekton-pipeline-integration-tests"
trigger: "(?m)^/test (all|pull-tekton-pipeline-integration-tests),?(\\s+|$)"
spec:
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests@sha256:39296f6df4f29812689b41c47c78bdb00fbbec5ee63407fcbfefec0f48f5b6b1
imagePullPolicy: Always
args:
- "--scenario=kubernetes_execute_bazel"
- "--clean"
- "--job=$(JOB_NAME)"
- "--repo=github.com/$(REPO_OWNER)/$(REPO_NAME)=$(PULL_REFS)"
- "--root=/go/src"
- "--service-account=/etc/test-account/service-account.json"
- "--upload=gs://tekton-prow/pr-logs"
- "--" # end bootstrap args, scenario args below
- "--" # end kubernetes_execute_bazel flags (consider following flags as text)
- "./test/presubmit-tests.sh"
- "--integration-tests"
volumeMounts:
- name: test-account
mountPath: /etc/test-account
readOnly: true
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/test-account/service-account.json
- name: E2E_CLUSTER_REGION
value: us-central1
volumes:
- name: test-account
secret:
secretName: test-account
- name: pull-tekton-pipeline-go-coverage
agent: kubernetes
context: pull-tekton-pipeline-go-coverage
always_run: true
rerun_command: "/test pull-tekton-pipeline-go-coverage"
trigger: "(?m)^/test (all|pull-tekton-pipeline-go-coverage),?(\\s+|$)"
optional: true
decorate: true
clone_uri: "https://github.com/tektoncd/pipeline.git"
spec:
containers:
- image: gcr.io/knative-tests/test-infra/coverage:latest
imagePullPolicy: Always
command:
- "/coverage"
args:
- "--postsubmit-gcs-bucket=tekton-prow"
- "--postsubmit-job-name=pull-tekton-pipeline-go-coverage"
- "--artifacts=$(ARTIFACTS)"
- "--profile-name=coverage_profile.txt"
- "--cov-target=."
- "--cov-threshold-percentage=80"
- "--github-token=/etc/github-token/oauth"
volumeMounts:
- name: github-token
mountPath: /etc/github-token
readOnly: true
volumes:
- name: github-token
secret:
secretName: oauth-token