-
Notifications
You must be signed in to change notification settings - Fork 468
/
pipeline.template.yml
897 lines (827 loc) · 24.7 KB
/
pipeline.template.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
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
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
# Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0.
# This file is processed by mkpipeline.py to trim unnecessary steps in PR
# builds. The inputs for steps using the `mzcompose` plugin are computed
# automatically. Inputs for other steps need to be manually listed in the
# `inputs` key.
dag: true
env:
CI_BUILDER_SCCACHE: 1
CI_BAZEL_BUILD: 1
CI_BAZEL_REMOTE_CACHE: "https://bazel-remote.dev.materialize.com"
# Note: In .cargo/config we set the default build jobs to -1 so on developer machines we keep
# a single core open when compiling. But we want to use all of CI's resources, hence setting the
# build jobs to "default" which will use all cores.
CARGO_BUILD_JOBS: "default"
# When resources are constrained, run early since this might be blocking a PR from merging
priority: 20
steps:
- group: Builds
key: builds
steps:
- id: rust-build-x86_64
label: ":rust: Build x86_64"
env:
CI_BAZEL_BUILD: 0
command: bin/ci-builder run stable bin/pyactivate -m ci.test.build
inputs:
- "*"
depends_on: []
timeout_in_minutes: 60
priority: 50
agents:
queue: builder-linux-x86_64
- id: upload-debug-symbols-x86_64
label: "Upload debug symbols for x86_64"
env:
CI_BAZEL_BUILD: 0
command: bin/ci-builder run stable bin/pyactivate -m materialize.ci_util.upload_debug_symbols_to_polarsignals
inputs:
- "*"
depends_on: [build-x86_64]
timeout_in_minutes: 10
priority: 50
if: build.tag != null
agents:
queue: builder-linux-x86_64
coverage: skip
- id: rust-build-aarch64
label: ":rust: Build aarch64"
env:
CI_BAZEL_BUILD: 0
command: bin/ci-builder run stable bin/pyactivate -m ci.test.build
inputs:
- "*"
depends_on: []
priority: 50
timeout_in_minutes: 60
agents:
queue: builder-linux-aarch64-mem
- id: upload-debug-symbols-aarch64
label: "Upload debug symbols for aarch64"
env:
CI_BAZEL_BUILD: 0
command: bin/ci-builder run stable bin/pyactivate -m materialize.ci_util.upload_debug_symbols_to_polarsignals
inputs:
- "*"
depends_on: [build-aarch64]
priority: 50
timeout_in_minutes: 10
if: build.tag != null
agents:
queue: builder-linux-aarch64-mem
coverage: skip
- id: build-x86_64
label: ":bazel: Build x86_64"
env:
command: bin/ci-builder run stable bin/pyactivate -m ci.test.build
inputs:
- "*"
artifact_paths: bazel-explain.log
depends_on: []
timeout_in_minutes: 60
agents:
queue: builder-linux-x86_64
- id: build-aarch64
label: ":bazel: Build aarch64"
env:
command: bin/ci-builder run stable bin/pyactivate -m ci.test.build
inputs:
- "*"
artifact_paths: bazel-explain.log
depends_on: []
timeout_in_minutes: 60
agents:
queue: builder-linux-aarch64-mem
- id: build-wasm
label: Build WASM
command: bin/ci-builder run stable bin/pyactivate -m ci.deploy.npm --no-release
inputs:
- "*"
depends_on: []
timeout_in_minutes: 10
agents:
# Error: no prebuilt wasm-opt binaries are available for this platform: Unrecognized target!
queue: linux-x86_64-small
coverage: skip
sanitizer: skip
- id: check-merge-with-target
label: Merge skew cargo check
command: ci/test/check-merge-with-target.sh
inputs:
- Cargo.lock
- Cargo.toml
- "**/Cargo.toml"
- "**/*.rs"
depends_on: []
timeout_in_minutes: 30
agents:
queue: hetzner-aarch64-8cpu-16gb
if: "build.pull_request.id != null"
coverage: skip
sanitizer: skip
- id: devel-docker-tags
label: Tag development docker images
command: bin/ci-builder run stable bin/pyactivate -m ci.test.dev_tag
inputs:
- "*"
depends_on:
- build-x86_64
- build-aarch64
timeout_in_minutes: 10
agents:
queue: linux-aarch64-small
coverage: skip
sanitizer: skip
# Fortify against intermittent DockerHub issues
retry:
automatic:
- exit_status: 1
limit: 2
- group: Lints
key: lints
steps:
- id: lint-fast
label: Lint and rustfmt
command: bin/ci-builder run stable ci/test/lint-fast.sh
inputs:
- "*"
depends_on: []
timeout_in_minutes: 20
agents:
queue: linux-aarch64-small
coverage: skip
sanitizer: skip
- id: lint-slow
label: Clippy and doctests
command: bin/ci-builder run stable ci/test/lint-slow.sh
inputs:
- Cargo.lock
- Cargo.toml
- "**/Cargo.toml"
- "**/*.rs"
depends_on: []
timeout_in_minutes: 40
agents:
# note: the `x86_64-unknown-linux-gnu` target may not be installed
queue: builder-linux-x86_64
coverage: skip
sanitizer: skip
- id: lint-macos
label: ":rust: macOS Clippy"
command: cargo clippy --all-targets -- -D warnings
env:
CARGO_INCREMENTAL: "0"
RUSTUP_TOOLCHAIN: $RUST_VERSION
inputs:
- Cargo.lock
- Cargo.toml
- "**/Cargo.toml"
- "**/*.rs"
depends_on: []
timeout_in_minutes: 30
agents:
queue: mac
coverage: skip
sanitizer: skip
- id: lint-deps
label: Lint dependencies
command: bin/ci-builder run stable ci/test/lint-deps.sh
inputs:
- Cargo.lock
- Cargo.toml
- "**/Cargo.toml"
- "**/*.rs"
depends_on: []
timeout_in_minutes: 30
agents:
queue: hetzner-aarch64-4cpu-8gb
coverage: skip
sanitizer: skip
- id: vet-check
label: ":rust: Cargo vet Check"
command: bin/ci-builder run stable cargo vet check --locked
inputs:
- Cargo.lock
- misc/cargo-vet/config.toml
depends_on: []
timeout_in_minutes: 20
agents:
queue: hetzner-aarch64-4cpu-8gb
coverage: skip
sanitizer: skip
- group: Docs tests
key: docs-tests
label: ":rust: Docs tests"
steps:
- id: lint-docs
label: Lint docs
command: bin/ci-builder run stable ci/test/lint-docs.sh
inputs:
- doc/user
- src/adapter/src/catalog
- test/sqllogictest/autogenerated
depends_on: []
timeout_in_minutes: 30
agents:
# hugo: command not found
queue: hetzner-x86-64-4cpu-8gb
coverage: skip
sanitizer: skip
- id: preview-docs
label: Preview docs
command: bin/ci-builder run stable ci/test/preview-docs.sh
inputs: [doc/user]
depends_on: []
timeout_in_minutes: 30
agents:
# hugo: command not found
queue: linux-x86_64-small
coverage: skip
sanitizer: skip
- id: docs-widgets-test
label: Run Docs JS Widgets Tests
command: bin/ci-builder run stable ci/test/docs-widgets/docs-widgets.sh
inputs:
- ci/test/docs-widgets/**
- doc/user
depends_on: []
timeout_in_minutes: 15
agents:
queue: hetzner-aarch64-4cpu-8gb
coverage: skip
sanitizer: skip
- id: cargo-test
label: ":rust: Cargo test"
timeout_in_minutes: 60
inputs:
- Cargo.lock
- Cargo.toml
- ".config/nextest.toml"
- "**/Cargo.toml"
- "**/*.rs"
- "**/*.proto"
- "**/testdata/**"
depends_on: []
env:
AWS_DEFAULT_REGION: "us-east-1"
# cargo-test's coverage is handled separately by cargo-llvm-cov
BUILDKITE_MZCOMPOSE_PLUGIN_SKIP_COVERAGE: "true"
# some tests run into stack overflows
RUST_MIN_STACK: "4194304"
plugins:
- ./ci/plugins/scratch-aws-access: ~
- ./ci/plugins/mzcompose:
composition: cargo-test
agents:
# Because of scratch-aws-access
queue: builder-linux-aarch64-mem
- id: testdrive
label: "Testdrive %N"
depends_on: build-aarch64
timeout_in_minutes: 40
inputs: [test/testdrive]
parallelism: 8
plugins:
- ./ci/plugins/mzcompose:
composition: testdrive
agents:
queue: hetzner-aarch64-8cpu-16gb
- id: cluster-tests
label: "Cluster tests %N"
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/cluster]
parallelism: 4
plugins:
- ./ci/plugins/mzcompose:
composition: cluster
agents:
queue: hetzner-aarch64-8cpu-16gb
- id: sqllogictest-fast
label: "Fast SQL logic tests %N"
depends_on: build-aarch64
timeout_in_minutes: 30
parallelism: 5
inputs: [test/sqllogictest]
plugins:
- ./ci/plugins/mzcompose:
composition: sqllogictest
run: fast-tests
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: restarts
label: "Restart test"
depends_on: build-aarch64
timeout_in_minutes: 30
plugins:
- ./ci/plugins/mzcompose:
composition: restart
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: legacy-upgrade
label: "Legacy upgrade tests (last version from docs) %N"
parallelism: 2
depends_on: build-aarch64
timeout_in_minutes: 60
plugins:
- ./ci/plugins/mzcompose:
composition: legacy-upgrade
args: ["--versions-source=docs"]
agents:
queue: hetzner-aarch64-4cpu-8gb
- group: "Debezium tests"
key: debezium-tests
steps:
- id: debezium-postgres
label: "Debezium Postgres tests"
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/debezium]
plugins:
- ./ci/plugins/mzcompose:
composition: debezium
run: postgres
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: debezium-sql-server
label: "Debezium SQL Server tests"
depends_on: build-x86_64
timeout_in_minutes: 30
inputs: [test/debezium]
plugins:
- ./ci/plugins/mzcompose:
composition: debezium
run: sql-server
agents:
# too slow to run emulated on aarch64, SQL Server's docker image is not yet available for aarch64 natively yet: https://github.com/microsoft/mssql-docker/issues/802
queue: hetzner-x86-64-4cpu-8gb
- id: debezium-mysql
label: "Debezium MySQL tests"
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/debezium]
plugins:
- ./ci/plugins/mzcompose:
composition: debezium
run: mysql
agents:
queue: hetzner-aarch64-4cpu-8gb
- group: "MySQL tests"
key: mysql-tests
steps:
- id: mysql-cdc
label: "MySQL CDC tests %N"
parallelism: 2
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/mysql-cdc]
plugins:
- ./ci/plugins/mzcompose:
composition: mysql-cdc
args: ["--mysql-version=8.4.0"]
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: mysql-cdc-resumption
label: "MySQL CDC resumption tests %N"
parallelism: 4
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/mysql-cdc-resumption]
plugins:
- ./ci/plugins/mzcompose:
composition: mysql-cdc-resumption
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: mysql-rtr
label: "MySQL RTR tests"
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/mysql-rtr]
plugins:
- ./ci/plugins/mzcompose:
composition: mysql-rtr
agents:
queue: hetzner-aarch64-4cpu-8gb
- group: "Postgres tests"
key: postgres-tests
steps:
- id: pg-cdc
label: "Postgres CDC tests %N"
parallelism: 2
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/pg-cdc]
plugins:
- ./ci/plugins/mzcompose:
composition: pg-cdc
agents:
queue: hetzner-aarch64-4cpu-8gb
# the mzbuild postgres version will be used, which depends on the Dockerfile specification
- id: pg-cdc-resumption
label: "Postgres CDC resumption tests %N"
parallelism: 4
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/pg-cdc-resumption]
plugins:
- ./ci/plugins/mzcompose:
composition: pg-cdc-resumption
agents:
# Larger agent for faster runtime
queue: hetzner-aarch64-8cpu-16gb
- id: pg-rtr
label: "Postgres RTR tests"
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/pg-rtr]
plugins:
- ./ci/plugins/mzcompose:
composition: pg-rtr
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: yugabyte-cdc
label: "Yugabyte CDC tests"
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/yugabyte-cdc]
plugins:
- ./ci/plugins/mzcompose:
composition: yugabyte-cdc
agents:
queue: hetzner-aarch64-4cpu-8gb
- group: "Connection tests"
key: connection-tests
steps:
- id: ssh-connection
label: SSH connection tests
depends_on: build-aarch64
timeout_in_minutes: 40
inputs: [test/ssh-connection]
plugins:
- ./ci/plugins/mzcompose:
composition: ssh-connection
agents:
queue: hetzner-aarch64-8cpu-16gb
- id: fivetran-destination-tests
label: Fivetran Destination tests
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/fivetran-destination]
plugins:
- ./ci/plugins/mzcompose:
composition: fivetran-destination
agents:
queue: hetzner-aarch64-4cpu-8gb
- group: "Copy to S3 tests"
key: copy-to-s3-tests
steps:
- id: copy-to-s3
label: Copy to S3
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/copy-to-s3]
plugins:
- ./ci/plugins/mzcompose:
composition: copy-to-s3
run: ci
agents:
queue: hetzner-aarch64-4cpu-8gb
- group: "Kafka tests"
key: kafka-tests
steps:
- id: kafka-resumption
label: Kafka resumption tests
depends_on: build-aarch64
timeout_in_minutes: 30
plugins:
- ./ci/plugins/mzcompose:
composition: kafka-resumption
agents:
queue: hetzner-aarch64-8cpu-16gb
- id: kafka-auth
label: Kafka auth test
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/kafka-auth/smoketest.td]
plugins:
- ./ci/plugins/mzcompose:
composition: kafka-auth
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: kafka-exactly-once
label: Kafka exactly-once tests
depends_on: build-aarch64
timeout_in_minutes: 30
plugins:
- ./ci/plugins/mzcompose:
composition: kafka-exactly-once
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: kafka-rtr
label: Kafka RTR tests
depends_on: build-aarch64
timeout_in_minutes: 30
parallelism: 2
artifact_paths: junit_*.xml
plugins:
- ./ci/plugins/mzcompose:
composition: kafka-rtr
agents:
# Larger agent to run test faster
queue: hetzner-aarch64-8cpu-16gb
- id: zippy-kafka-sources-short
label: "Short Zippy"
depends_on: build-aarch64
inputs: [misc/python/materialize/zippy]
timeout_in_minutes: 30
agents:
queue: hetzner-aarch64-4cpu-8gb
plugins:
- ./ci/plugins/mzcompose:
composition: zippy
args: [--scenario=KafkaSources, --actions=100]
- group: "Platform checks"
key: platform-checks
steps:
- id: checks-restart-environmentd-clusterd-storage
label: "Checks + restart of environmentd & storage clusterd %N"
depends_on: build-aarch64
inputs: [misc/python/materialize/checks]
timeout_in_minutes: 45
parallelism: 6
agents:
queue: hetzner-aarch64-8cpu-16gb
plugins:
- ./ci/plugins/mzcompose:
composition: platform-checks
args:
[
--scenario=RestartEnvironmentdClusterdStorage,
"--seed=$BUILDKITE_JOB_ID",
]
- id: checks-no-restart-no-upgrade
label: "Checks without restart or upgrade %N"
depends_on: build-aarch64
inputs: [misc/python/materialize/checks]
timeout_in_minutes: 45
parallelism: 6
agents:
queue: hetzner-aarch64-8cpu-16gb
plugins:
- ./ci/plugins/mzcompose:
composition: platform-checks
args: [--scenario=NoRestartNoUpgrade, "--seed=$BUILDKITE_JOB_ID"]
- id: source-sink-errors
label: "Source/Sink Error Reporting %N"
depends_on: build-aarch64
parallelism: 2
timeout_in_minutes: 30
agents:
queue: hetzner-aarch64-4cpu-8gb
plugins:
- ./ci/plugins/mzcompose:
composition: source-sink-errors
- id: feature-benchmark-kafka-only
label: "Feature benchmark (Kafka only)"
depends_on: build-aarch64
timeout_in_minutes: 45
plugins:
- ./ci/plugins/mzcompose:
composition: feature-benchmark
args:
[
--scenario=KafkaUpsertUnique,
--other-tag=common-ancestor,
--ignore-other-tag-missing,
]
coverage: skip
agents:
queue: linux-aarch64-small
# Fast tests closer to the end, doesn't matter as much if they have to wait
# for an agent
- id: replica-isolation
label: Replica isolation
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/replica-isolation]
plugins:
- ./ci/plugins/mzcompose:
composition: replica-isolation
agents:
# Runs faster with larger agent
queue: hetzner-aarch64-8cpu-16gb
- id: persistence
label: Persistence tests
depends_on: build-aarch64
timeout_in_minutes: 30
plugins:
- ./ci/plugins/mzcompose:
composition: persistence
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: cluster-isolation
label: Cluster isolation test
depends_on: build-aarch64
timeout_in_minutes: 20
inputs: [test/cluster-isolation]
plugins:
- ./ci/plugins/mzcompose:
composition: cluster-isolation
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: chbench-demo
label: chbench smoke test
depends_on: build-aarch64
plugins:
- ./ci/plugins/mzcompose:
composition: chbench
run: no-load
args: [--run-seconds=10, --wait]
timeout_in_minutes: 30
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: metabase-demo
label: Metabase smoke test
depends_on: build-x86_64
timeout_in_minutes: 30
plugins:
- ./ci/plugins/mzcompose:
composition: metabase
agents:
# too slow to run emulated on aarch64, Metabase'ss docker image is not yet available for aarch64 natively yet: https://github.com/metabase/metabase/issues/13119
queue: hetzner-x86-64-4cpu-8gb
- id: dbt-materialize
label: dbt-materialize tests
depends_on: build-aarch64
timeout_in_minutes: 30
plugins:
- ./ci/plugins/mzcompose:
composition: dbt-materialize
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: storage-usage
label: "Storage Usage Table Test"
depends_on: build-aarch64
timeout_in_minutes: 30
agents:
queue: hetzner-aarch64-4cpu-8gb
plugins:
- ./ci/plugins/mzcompose:
composition: storage-usage
- id: tracing
label: "Tracing Fast Path"
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/tracing]
plugins:
- ./ci/plugins/mzcompose:
composition: tracing
agents:
# Requires BUILDKITE_SENTRY_DSN
queue: linux-aarch64-small
- id: 0dt
label: Zero downtime
depends_on: build-aarch64
timeout_in_minutes: 30
plugins:
- ./ci/plugins/mzcompose:
composition: 0dt
agents:
queue: hetzner-aarch64-8cpu-16gb
- id: rtr-combined
label: RTR with all sources
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [test/rtr-combined]
plugins:
- ./ci/plugins/mzcompose:
composition: rtr-combined
agents:
queue: hetzner-aarch64-8cpu-16gb
skip: "Flakes because of database-issues#8489"
- id: skip-version-upgrade
label: "Skip Version Upgrade"
depends_on: build-aarch64
timeout_in_minutes: 30
inputs: [doc/user/content/releases]
plugins:
- ./ci/plugins/mzcompose:
composition: skip-version-upgrade
agents:
queue: hetzner-aarch64-4cpu-8gb
- id: deploy-website
label: Deploy website
depends_on: lint-docs
trigger: deploy-website
async: true
branches: main
build:
commit: "$BUILDKITE_COMMIT"
branch: "$BUILDKITE_BRANCH"
env:
BUILDKITE_TAG: "$BUILDKITE_TAG"
coverage: skip
sanitizer: skip
- id: release-qualification
label: Release qualification
depends_on: devel-docker-tags
trigger: release-qualification
async: true
build:
commit: "$BUILDKITE_COMMIT"
branch: "$BUILDKITE_BRANCH"
env:
BUILDKITE_TAG: "$BUILDKITE_TAG"
if: build.tag != "" && build.branch =~ /^v.*\..*\$/
coverage: skip
sanitizer: skip
- id: nightly-if-release
label: Nightly for releases
depends_on: devel-docker-tags
trigger: nightly
async: true
build:
commit: "$BUILDKITE_COMMIT"
branch: "$BUILDKITE_BRANCH"
env:
BUILDKITE_TAG: "$BUILDKITE_TAG"
if: build.tag != "" && build.branch =~ /^v.*\..*\$/
coverage: skip
sanitizer: skip
- id: nightly-if-risky
label: Nightly for risky PRs
skip: "Temporary disabled until a cost/beneft analysis"
depends_on: devel-docker-tags
trigger: nightly
async: true
build:
commit: "$BUILDKITE_COMMIT"
branch: "$BUILDKITE_BRANCH"
env:
BUILDKITE_TAG: "$BUILDKITE_TAG"
BUILDKITE_PULL_REQUEST: "${BUILDKITE_PULL_REQUEST}"
BUILDKITE_PULL_REQUEST_BASE_BRANCH: "${BUILDKITE_PULL_REQUEST_BASE_BRANCH}"
BUILDKITE_PULL_REQUEST_REPO: "${BUILDKITE_PULL_REQUEST_REPO}"
if: build.tag != "" && build.branch != "main" && build.branch !~ /^v.*\..*\$/
inputs:
# Changes to dependencies
- Cargo.lock
# Changes to the SQL syntax
- src/sql-parser/src
- src/expr-parser/src
# Changes to SHOW
- src/sql/src/plan/statement/show.rs
# Changes to feature flags and other settings
- src/adapter/src/flags.rs
- src/persist-client/src/cfg*
- src/compute-client/src/protocol/command*
- src/sql/src/session/vars.rs
# Changes to command-line options
- src/environmentd/src/bin/environmentd/
- src/clusterd/src/bin/
# Changes to test frameworks
- src/testdrive/src
- misc/python/materialize
- test/feature-benchmark
- test/limits
# Changes to the CI inputs
- "**/Dockerfile"
- misc/images
- ci/builder
- bin/ci-builder
- ci/nightly
- ci/plugins
coverage: skip
sanitizer: skip
- wait: ~
continue_on_failure: true
- id: coverage-pr-analyze
label: Analyze code coverage for PR
timeout_in_minutes: 20
command: bin/ci-builder run stable ci/test/coverage_report.sh
inputs: ["*"]
priority: 1
agents:
queue: hetzner-aarch64-16cpu-32gb
coverage: only
- wait: ~
continue_on_failure: true
- id: deploy
label: Deploy
trigger: deploy
async: true
branches: "main v*.*"
build:
commit: "$BUILDKITE_COMMIT"
branch: "$BUILDKITE_BRANCH"
env:
BUILDKITE_TAG: "$BUILDKITE_TAG"
coverage: skip
sanitizer: skip