1
1
---
2
2
minimum_bazel_version : &minimum_bazel_version "7.4.1"
3
+ minimum_bazel_shell_commands : &minimum_bazel_shell_commands
4
+ - echo "build --build_runfile_links" >> user.bazelrc
3
5
no_bzlmod_bazel_version : &no_bzlmod_bazel_version "7.4.1"
4
6
no_bzlmod_shell_commands : &no_bzlmod_shell_commands
5
7
- echo "common --noenable_bzlmod --enable_workspace" >> user.bazelrc
8
+ - echo "build --build_runfile_links" >> user.bazelrc
6
9
- echo "7.4.1" > .bazelversion
7
10
no_bzlmod_rbe_shell_commands : &no_bzlmod_rbe_shell_commands
8
11
- sed -i 's/^# load("@bazel_ci_rules/load("@bazel_ci_rules/' WORKSPACE.bazel
9
12
- sed -i 's/^# rbe_preconfig/rbe_preconfig/' WORKSPACE.bazel
10
13
- echo "common --noenable_bzlmod --enable_workspace" >> user.bazelrc
14
+ - echo "build --build_runfile_links" >> user.bazelrc
11
15
- echo "7.4.1" > .bazelversion
12
16
aspects_flags : &aspects_flags
13
17
- " --config=rustfmt"
@@ -52,13 +56,18 @@ single_rust_channel_min_version_targets: &single_rust_channel_min_version_target
52
56
default_linux_targets : &default_linux_targets
53
57
- " --"
54
58
- " //..."
59
+ default_rbe_targets : &default_rbe_targets
60
+ - " --"
61
+ - " //..."
62
+ # These require the upstream tools wrapper to include a stdlib, which doesn't currently work on RBE.
63
+ # We should fix this. See https://github.com/bazelbuild/rules_rust/issues/3252
64
+ - " -//cargo/cargo_toml_variable_extractor/testdata/..."
55
65
default_macos_targets : &default_macos_targets
56
66
- " --"
57
67
- " //..."
58
68
default_windows_targets : &default_windows_targets
59
69
- " --" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245
60
70
- " //..."
61
- - " -//test/unit/pipelined_compilation/..."
62
71
default_windows_no_runfiles_targets : &default_windows_no_runfiles_targets
63
72
- " --" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245
64
73
- " //..."
@@ -70,15 +79,16 @@ default_windows_no_runfiles_targets: &default_windows_no_runfiles_targets
70
79
- " -//test/test_env_launcher:test"
71
80
- " -//test/test_env:test_manifest_dir"
72
81
- " -//test/test_env:test_run"
73
- - " -//test/unit/pipelined_compilation/..."
74
82
- " -//test/unit/rustdoc/..."
75
83
- " -//rust/runfiles/..."
76
84
# Runfiles used by the test only.
77
85
- " -//test/empty_suite:deps_test"
86
+ - " -//cargo/cargo_toml_variable_extractor/testdata/..."
78
87
crate_universe_vendor_example_targets : &crate_universe_vendor_example_targets
79
88
- " //vendor_external:crates_vendor"
80
89
- " //vendor_local_manifests:crates_vendor"
81
90
- " //vendor_local_pkgs:crates_vendor"
91
+ - " //vendor_local_patching:crates_vendor"
82
92
- " //vendor_remote_manifests:crates_vendor"
83
93
- " //vendor_remote_pkgs:crates_vendor"
84
94
- " @rules_rust//tools/rust_analyzer:gen_rust_project"
@@ -105,8 +115,8 @@ tasks:
105
115
shell_commands :
106
116
- sed -i 's/^# load("@bazel_ci_rules/load("@bazel_ci_rules/' WORKSPACE.bazel
107
117
- sed -i 's/^# rbe_preconfig/rbe_preconfig/' WORKSPACE.bazel
108
- build_targets : *default_linux_targets
109
- test_targets : *default_linux_targets
118
+ build_targets : *default_rbe_targets
119
+ test_targets : *default_rbe_targets
110
120
macos :
111
121
platform : macos_arm64
112
122
build_targets : *default_macos_targets
@@ -132,8 +142,8 @@ tasks:
132
142
platform : rbe_ubuntu2004
133
143
bazel : *no_bzlmod_bazel_version
134
144
shell_commands : *no_bzlmod_rbe_shell_commands
135
- build_targets : *default_linux_targets
136
- test_targets : *default_linux_targets
145
+ build_targets : *default_rbe_targets
146
+ test_targets : *default_rbe_targets
137
147
macos_no_bzlmod :
138
148
name : No Bzlmod
139
149
platform : macos_arm64
@@ -213,16 +223,16 @@ tasks:
213
223
- sed -i 's/^# load("@bazel_ci_rules/load("@bazel_ci_rules/' WORKSPACE.bazel
214
224
- sed -i 's/^# rbe_preconfig/rbe_preconfig/' WORKSPACE.bazel
215
225
build_flags : *aspects_flags
216
- build_targets : *default_linux_targets
217
- test_targets : *default_linux_targets
226
+ build_targets : *default_rbe_targets
227
+ test_targets : *default_rbe_targets
218
228
rbe_ubuntu2004_rolling_with_aspects :
219
229
name : RBE Rolling Bazel Version With Aspects
220
230
platform : rbe_ubuntu2004
221
231
shell_commands :
222
232
- sed -i 's/^# load("@bazel_ci_rules/load("@bazel_ci_rules/' WORKSPACE.bazel
223
233
- sed -i 's/^# rbe_preconfig/rbe_preconfig/' WORKSPACE.bazel
224
- build_targets : *default_linux_targets
225
- test_targets : *default_linux_targets
234
+ build_targets : *default_rbe_targets
235
+ test_targets : *default_rbe_targets
226
236
build_flags : *aspects_flags
227
237
soft_fail : yes
228
238
bazel : " rolling"
@@ -332,6 +342,7 @@ tasks:
332
342
# If updating the minimum bazel version, please also update /docs/index.md
333
343
bazel : *minimum_bazel_version
334
344
platform : ubuntu1804
345
+ shell_commands : *minimum_bazel_shell_commands
335
346
build_targets : *default_linux_targets
336
347
test_targets : *default_linux_targets
337
348
coverage_targets : *default_linux_targets
@@ -340,6 +351,7 @@ tasks:
340
351
name : " Min Bazel Version With Aspects"
341
352
bazel : *minimum_bazel_version
342
353
platform : ubuntu1804
354
+ shell_commands : *minimum_bazel_shell_commands
343
355
build_targets : *default_linux_targets
344
356
test_targets : *default_linux_targets
345
357
build_flags : *aspects_flags
@@ -520,77 +532,69 @@ tasks:
520
532
cc_common_link_ubuntu2004 :
521
533
name : Build via cc_common.link
522
534
platform : ubuntu2004
523
- working_directory : test/cc_common_link
535
+ working_directory : test/integration/cc_common_link
536
+ build_targets :
537
+ - " //..."
538
+ test_targets :
539
+ - " //..."
540
+ cc_common_link_macos :
541
+ name : Build via cc_common.link
542
+ platform : macos_arm64
543
+ working_directory : test/integration/cc_common_link
524
544
build_targets :
525
- - " --"
526
545
- " //..."
527
- # The with_global_alloc directory is a repository on its own tested in the 'Build via cc_common.link using a global allocator' task.
528
- - " -//with_global_alloc/..."
529
546
test_targets :
530
- - " --"
531
547
- " //..."
532
- # The with_global_alloc directory is a repository on its own tested in the 'Build via cc_common.link using a global allocator' task.
533
- - " -//with_global_alloc/..."
534
- build_flags :
535
- - " --@rules_rust//rust/settings:experimental_use_cc_common_link=True"
536
- test_flags :
537
- - " --@rules_rust//rust/settings:experimental_use_cc_common_link=True"
538
548
cc_common_link_with_global_alloc_ubuntu2004 :
539
549
name : Build via cc_common.link using a global allocator
540
550
platform : ubuntu2004
541
- working_directory : test/cc_common_link/with_global_alloc
551
+ working_directory : test/integration/cc_common_link_with_global_alloc
552
+ build_targets :
553
+ - " //..."
554
+ test_targets :
555
+ - " //..."
556
+ cc_common_link_with_global_alloc_macos :
557
+ name : Build via cc_common.link using a global allocator
558
+ platform : macos_arm64
559
+ working_directory : test/integration/cc_common_link_with_global_alloc
542
560
build_targets :
543
561
- " //..."
544
562
test_targets :
545
563
- " //..."
546
- build_flags :
547
- - " --@rules_rust//rust/settings:experimental_use_cc_common_link=True"
548
- - " --@rules_rust//rust/settings:experimental_use_global_allocator=True"
549
- test_flags :
550
- - " --@rules_rust//rust/settings:experimental_use_cc_common_link=True"
551
- - " --@rules_rust//rust/settings:experimental_use_global_allocator=True"
552
564
cc_common_link_no_std_ubuntu2004 :
553
565
name : Build with no_std + alloc using cc_common.link infrastructure for linking
554
566
platform : ubuntu2004
555
- working_directory : test/no_std
567
+ working_directory : test/integration/ no_std
556
568
build_targets :
557
569
- " //..."
558
570
test_targets :
559
571
- " //..."
560
572
build_flags :
561
- - " --@rules_rust//rust/toolchain/channel=nightly"
562
- - " --@rules_rust//rust/settings:experimental_use_cc_common_link=True"
563
- - " --@rules_rust//rust/settings:experimental_use_global_allocator=True"
564
- - " --@rules_rust//rust/settings:no_std=alloc"
573
+ - " --config=no_std_alloc_using_cc_common_link"
565
574
test_flags :
566
- - " --@rules_rust//rust/toolchain/channel=nightly"
567
- - " --@rules_rust//rust/settings:experimental_use_cc_common_link=True"
568
- - " --@rules_rust//rust/settings:experimental_use_global_allocator=True"
569
- - " --@rules_rust//rust/settings:no_std=alloc"
575
+ - " --config=no_std_alloc_using_cc_common_link"
570
576
no_std_ubuntu2004 :
571
577
name : Build with no_std + alloc
572
578
platform : ubuntu2004
573
- working_directory : test/no_std
579
+ working_directory : test/integration/ no_std
574
580
build_targets :
575
581
- " //..."
576
582
test_targets :
577
583
- " //..."
578
584
build_flags :
579
- - " --@rules_rust//rust/toolchain/channel=nightly"
580
- - " --@rules_rust//rust/settings:no_std=alloc"
585
+ - " --config=no_std_alloc"
581
586
test_flags :
582
- - " --@rules_rust//rust/toolchain/channel=nightly"
583
- - " --@rules_rust//rust/settings:no_std=alloc"
587
+ - " --config=no_std_alloc"
584
588
bzlmod_repo_mapping_runfiles :
585
589
name : bzlmod repo mapping test
586
590
platform : ubuntu2004
587
- working_directory : test/bzlmod_repo_mapping/module_a
591
+ working_directory : test/integration/ bzlmod_repo_mapping/module_a
588
592
test_targets :
589
593
- " //..."
590
594
aliased_toolchains :
591
595
name : aliased toolchains test
592
596
platform : ubuntu2004
593
- working_directory : test/aliased_toolchains
597
+ working_directory : test/integration/ aliased_toolchains
594
598
build_targets :
595
599
- " @rust_toolchains//:all"
596
600
- " //..."
@@ -1073,6 +1077,8 @@ tasks:
1073
1077
platform : ubuntu2004
1074
1078
name : Extensions wasm-bindgen
1075
1079
working_directory : extensions/wasm_bindgen
1080
+ shell_commands :
1081
+ - " bash ./test/bazelci_unix_setup.sh"
1076
1082
build_flags : *aspects_flags
1077
1083
test_flags : *aspects_flags
1078
1084
build_targets :
@@ -1090,22 +1096,22 @@ tasks:
1090
1096
test_flags : *aspects_flags
1091
1097
build_targets :
1092
1098
- " //..."
1093
- test_targets :
1094
- - " --"
1095
- - " //..."
1096
- # TODO: https://github.com/bazelbuild/rules_rust/issues/3039
1097
- - " -//rules_js/test:hello_world_wasm_lib_test"
1098
- - " -//rules_js/test:hello_world_wasm_direct_test"
1099
+ # TODO: https://github.com/bazelbuild/rules_rust/issues/3039
1100
+ # test_targets:
1101
+ # - "//..."
1099
1102
extensions_wasm_bindgen_macos :
1100
1103
platform : macos_arm64
1101
1104
name : Extensions wasm-bindgen
1102
- working_directory : extensions
1105
+ working_directory : extensions/wasm_bindgen
1106
+ shell_commands :
1107
+ - " bash ./test/bazelci_unix_setup.sh"
1103
1108
build_flags : *aspects_flags
1104
1109
test_flags : *aspects_flags
1105
1110
build_targets :
1106
1111
- " //..."
1107
- test_targets :
1108
- - " //..."
1112
+ # TODO: https://github.com/bazelbuild/rules_rust/issues/3039
1113
+ # test_targets:
1114
+ # - "//..."
1109
1115
extensions_wasm_bindgen_windows :
1110
1116
platform : windows
1111
1117
name : Extensions wasm-bindgen
0 commit comments