-
Notifications
You must be signed in to change notification settings - Fork 12
495 lines (403 loc) · 15 KB
/
integration_test_mysql.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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
name: Integration-Mysql
on:
push:
branches:
- master
- "release-[0-9].[0-9]*"
paths-ignore:
- '**/*.md'
- '**/OWNERS'
- 'OWNERS'
- 'OWNERS_ALIASES'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- master
- "release-[0-9].[0-9]*"
paths-ignore:
- '**/*.md'
- '**/OWNERS'
- 'OWNERS'
- 'OWNERS_ALIASES'
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
# To boost the test speed, we split every 15 test cases into a group.
e2e_test_group_1:
## Only run ci when PR is not draft
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: E2E Test Group 1
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Integration Build
run: |
tests/scripts/download-integration-test-binaries.sh master true
go build -o ./tools/bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl
make integration_test_build
ls -l bin/ && ls -l tools/bin/
- name: Test charset_gbk
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=charset_gbk
- name: Test changefeed_finish
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=changefeed_finish
- name: Test sql_mode
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=sql_mode
- name: Test changefeed_pause_resume
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=changefeed_pause_resume
- name: Test changefeed_reconstruct
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=changefeed_reconstruct
- name: Test common_1
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=common_1
- name: Test foreign_key
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=foreign_key
# The 7th case in this group
- name: Test generate_column
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=generate_column
# The 8th case in this group
- name: Test many_pk_or_uk
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=many_pk_or_uk
# The 9th case in this group
- name: Test drop_many_tables
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=drop_many_tables
# The 10th case in this group
- name: Test new_ci_collation
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=new_ci_collation
# The 11th case in this group
- name: Test region_merge
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=region_merge
# The 12th case in this group
- name: Test safe mode
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=safe_mode
# The 13th case in this group
- name: Test savepoint
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=savepoint
# The 14th case in this group
- name: Test server config compatibility
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=server_config_compatibility
# The 15th case in this group
- name: Test split region
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=split_region
- name: Upload test logs
if: always()
uses: ./.github/actions/upload-test-logs
with:
log-name: e2e_test_group_1
e2e_test_group_2:
## Only run ci when PR is not draft
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: E2E Test Group 2
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Integration Build
run: |
tests/scripts/download-integration-test-binaries.sh master true
go build -o ./tools/bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl
make integration_test_build
ls -l bin/ && ls -l tools/bin/
- name: Test api_v2
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=api_v2
- name: Test autorandom
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=autorandom
# - name: Test availability
# if: ${{ success() }}
# run: |
# export TICDC_NEWARCH=true && make integration_test CASE=availability
- name: Test bank
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=bank
- name: Test batch_add_table
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=batch_add_table
- name: Test batch_update_to_no_batch
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=batch_update_to_no_batch
- name: Test ci_collation_compatibility
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=ci_collation_compatibility
- name: Test multi_capture
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=multi_capture
- name: Test multi_cdc_cluster
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=multi_cdc_cluster
- name: Test multi_rocks
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=multi_rocks
- name: Test resourcecontrol
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=resourcecontrol
- name: Test row_format
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=row_format
- name: Test tiflash
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=tiflash
# The 14th case in this group
- name: Test vector
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=vector
# The 15th case in this group
- name: Test simple
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=simple
- name: Upload test logs
if: always()
uses: ./.github/actions/upload-test-logs
with:
log-name: e2e_test_group_2
e2e_test_group_3:
## Only run ci when PR is not draft
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: E2E Test Group 3
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Integration Build
run: |
tests/scripts/download-integration-test-binaries.sh master true
go build -o ./tools/bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl
make integration_test_build
ls -l bin/ && ls -l tools/bin/
- name: Test http_api
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=http_api
- name: Test partition_table
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=partition_table
- name: Test multi_tables_ddl
if: ${{ success() }}
run: |
export TICDC_NEWARCH=true && make integration_test CASE=multi_tables_ddl
- name: Upload test logs
if: always()
uses: ./.github/actions/upload-test-logs
with:
log-name: e2e_test_group_3
failover_e2e_test1:
## Only run ci when PR is not draft
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: Failover E2E Test [A-C]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Integration Build
run: |
tests/scripts/download-integration-test-binaries.sh master true
go build -o ./tools/bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl
make integration_test_build
ls -l bin/ && ls -l tools/bin/
- name: Test fail_over
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over
- name: Test fail_over_ddl_A
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_A
- name: Test fail_over_ddl_B
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_B
- name: Test fail_over_ddl_C
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_C
- name: Upload test logs
if: always()
uses: ./.github/actions/upload-test-logs
with:
log-name: failover_e2e_test1
failover_e2e_test2:
## Only run ci when PR is not draft
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: Failover E2E Test[D-G]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Integration Build
run: |
tests/scripts/download-integration-test-binaries.sh master true
go build -o ./tools/bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl
make integration_test_build
ls -l bin/ && ls -l tools/bin/
- name: Test fail_over_ddl_D
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_D
- name: Test fail_over_ddl_E
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_E
- name: Test fail_over_ddl_F
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_F
- name: Test fail_over_ddl_G
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_G
- name: Upload test logs
if: always()
uses: ./.github/actions/upload-test-logs
with:
log-name: failover_e2e_test2
failover_e2e_test3:
## Only run ci when PR is not draft
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: Failover E2E Test[H-K]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Integration Build
run: |
tests/scripts/download-integration-test-binaries.sh master true
go build -o ./tools/bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl
make integration_test_build
ls -l bin/ && ls -l tools/bin/
- name: Test fail_over_ddl_H
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_H
- name: Test fail_over_ddl_I
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_I
- name: Test fail_over_ddl_J
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_J
- name: Test fail_over_ddl_K
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_K
- name: Upload test logs
if: always()
uses: ./.github/actions/upload-test-logs
with:
log-name: failover_e2e_test3
failover_e2e_test4:
## Only run ci when PR is not draft
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: Failover E2E Test[L-O]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Integration Build
run: |
tests/scripts/download-integration-test-binaries.sh master true
go build -o ./tools/bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl
make integration_test_build
ls -l bin/ && ls -l tools/bin/
- name: Test fail_over_ddl_L
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_L
- name: Test fail_over_ddl_M
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_M
- name: Test fail_over_ddl_O
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_O
- name: Test fail_over_ddl_N
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_N
- name: Test fail_over_ddl_O
run: |
pwd && ls -l bin/ && ls -l tools/bin/
export TICDC_NEWARCH=true && make integration_test CASE=fail_over_ddl_O
- name: Upload test logs
if: always()
uses: ./.github/actions/upload-test-logs
with:
log-name: failover_e2e_test4