-
Notifications
You must be signed in to change notification settings - Fork 808
/
Copy pathpipeline-pull-request.yml
309 lines (294 loc) · 9.32 KB
/
pipeline-pull-request.yml
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
299
300
301
302
303
304
305
306
307
308
309
# `yq 'explode(.)' .buildkite/pipeline-pull-request.yml` to see expanded anchor/aliases
container:
kubernetes: &kubernetes
sidecars:
- image: us-west1-docker.pkg.dev/ci-compute/buildkite-images/buildkite-dind:v1
volumeMounts:
- mountPath: /var/run/
name: docker-sock
securityContext:
privileged: true
allowPrivilegeEscalation: true
mirrorVolumeMounts: true # CRITICAL: this must be at the same indentation level as sidecars
podSpec: &podSpec
containers:
- &commandContainer
image: us-west1-docker.pkg.dev/ci-compute/buildkite-images/buildkite-command-container:v2
command:
- |-
echo "Command step was not overridden."
exit 1
volumeMounts:
- mountPath: /var/run/
name: docker-sock
resources:
requests:
cpu: 7500m
memory: 30G
volumes:
- name: docker-sock
emptyDir: {}
agents:
queue: buildkite-gcp
steps:
- label: ":on: IDL submodule points to master"
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
make .idl-status
- label: ":golang: unit test"
artifact_paths:
- ".build/coverage/*.out"
- ".build/coverage/metadata.txt"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
# make install-schema is needed for a server startup test. See main_test.go
CASSANDRA_HOST=cassandra make install-schema && make cover_profile
./scripts/buildkite/gen_coverage_metadata.sh .build/coverage/metadata.txt
- docker-compose#v3.0.0:
run: unit-test
config: docker/buildkite/docker-compose.yml
- label: ":lint: validate code is clean"
artifact_paths: []
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
./scripts/buildkite/golint.sh
- docker-compose#v3.0.0:
run: coverage-report
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration test with cassandra"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
make cover_integration_profile
- docker-compose#v3.0.0:
run: integration-test-cassandra
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration test with cassandra with ElasticSearch V7"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
make cover_integration_profile
- docker-compose#v3.0.0:
run: integration-test-cassandra
config: docker/buildkite/docker-compose-es7.yml
- label: ":golang: integration test with cassandra with pinot"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
go test -timeout 600s -run ^TestPinotIntegrationSuite -tags pinotintegration -count 1 -v github.com/uber/cadence/host
- docker-compose#v3.0.0:
run: integration-test-cassandra-pinot
config: docker/buildkite/docker-compose-pinot.yml
- label: ":golang: integration test with cassandra with OpenSearch v2"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
make cover_integration_profile
- docker-compose#v3.0.0:
run: integration-test-cassandra
config: docker/buildkite/docker-compose-opensearch2.yml
- label: ":golang: integration ndc test with cassandra"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
make cover_ndc_profile
- docker-compose#v3.0.0:
run: integration-test-ndc-cassandra
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration test with mysql"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
make cover_integration_profile
- docker-compose#v3.0.0:
run: integration-test-mysql
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration ndc test with mysql"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
make cover_ndc_profile
- docker-compose#v3.0.0:
run: integration-test-ndc-mysql
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration test with postgres"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
make cover_integration_profile
- docker-compose#v3.0.0:
run: integration-test-postgres
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration ndc test with postgres"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
make cover_ndc_profile
- docker-compose#v3.0.0:
run: integration-test-ndc-postgres
config: docker/buildkite/docker-compose.yml
- label: ":golang: async wf integration test with kafka"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
go test -timeout 60s -run ^TestAsyncWFIntegrationSuite -tags asyncwfintegration -count 1 -v github.com/uber/cadence/host
- docker-compose#v3.0.0:
run: integration-test-async-wf
config: docker/buildkite/docker-compose.yml