-
Notifications
You must be signed in to change notification settings - Fork 382
/
.prow.yaml
206 lines (198 loc) · 5.4 KB
/
.prow.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
presubmits:
- name: pull-kcp-verify
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.22.7-1
command:
- make
- verify-boilerplate
- verify-modules
- verify-k8s-deps
- verify-imports
resources:
requests:
memory: 1Gi
cpu: 1
- name: pull-kcp-verify-codegen
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.22.7-1
command:
- make
- verify-codegen
resources:
requests:
memory: 1Gi
cpu: 1
- name: pull-kcp-lint
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.22.7-1
command:
- make
- lint
resources:
requests:
memory: 4Gi
cpu: 2
- name: pull-kcp-build-image
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/containers/buildah:v1.30.0
command:
- hack/build-image.sh
env:
- name: DRY_RUN
value: '1'
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
memory: 1Gi
cpu: 1
- name: pull-kcp-test-unit
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.22.7-1
command:
- make
- test
env:
- name: USE_GOTESTSUM
value: '1'
resources:
requests:
memory: 4Gi
cpu: 2
- name: pull-kcp-test-e2e
decorate: true
# only run e2e tests if code changed.
run_if_changed: "(cmd|config|pkg|sdk|test|go.mod|go.sum|Makefile|.prow.yaml)"
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.22.7-1
command:
- ./hack/run-with-prometheus.sh
- make
- test-e2e
env:
- name: SUITES
value: control-plane
- name: USE_GOTESTSUM
value: '1'
- name: KUBE_CACHE_MUTATION_DETECTOR
value: '1'
- name: E2E_PARALLELISM
value: '3'
resources:
requests:
memory: 6Gi
cpu: 4
- name: pull-kcp-test-e2e-multiple-runs
decorate: true
# only run e2e tests if code changed.
run_if_changed: "(cmd|config|pkg|sdk|test|go.mod|go.sum|Makefile|.prow.yaml)"
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.22.7-1
command:
- ./hack/run-with-prometheus.sh
- make
- test-e2e
env:
- name: SUITES
value: control-plane
- name: USE_GOTESTSUM
value: '1'
- name: KUBE_CACHE_MUTATION_DETECTOR
value: '1'
- name: COUNT
value: '2'
- name: E2E_PARALLELISM
value: '3'
resources:
requests:
memory: 6Gi
cpu: 4
- name: pull-kcp-test-e2e-shared
decorate: true
# only run e2e tests if code changed.
run_if_changed: "(cmd|config|pkg|sdk|test|go.mod|go.sum|Makefile|.prow.yaml)"
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.22.7-1
command:
- ./hack/run-with-prometheus.sh
- make
- test-e2e-shared-minimal
env:
- name: SUITES
value: control-plane
- name: USE_GOTESTSUM
value: '1'
- name: KUBE_CACHE_MUTATION_DETECTOR
value: '1'
resources:
requests:
memory: 6Gi
cpu: 4
- name: pull-kcp-test-e2e-sharded
decorate: true
# only run e2e tests if code changed.
run_if_changed: "(cmd|config|pkg|sdk|test|go.mod|go.sum|Makefile|.prow.yaml)"
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.22.7-1
command:
- ./hack/run-with-prometheus.sh
- make
- test-e2e-sharded-minimal
env:
- name: SUITES
value: control-plane
- name: USE_GOTESTSUM
value: '1'
- name: KUBE_CACHE_MUTATION_DETECTOR
value: '1'
resources:
requests:
memory: 6Gi
cpu: 4