Skip to content

Commit 1cd580b

Browse files
authored
Merge branch 'main' into fix_suffix_versioned_libs_link_opts
2 parents d09a52f + eb280fa commit 1cd580b

826 files changed

Lines changed: 27666 additions & 27987 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bazelci/presubmit.yml

Lines changed: 23 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ aspects_flags: &aspects_flags
1717
- "--config=rustfmt"
1818
- "--config=clippy"
1919
min_rust_version_shell_commands: &min_rust_version_shell_commands
20-
- sed -i 's|^rust_register_toolchains(|rust_register_toolchains(versions = ["1.74.0"],\n|' WORKSPACE.bazel
21-
- sed -i 's|^rust\.toolchain(|rust.toolchain(versions = ["1.74.0"],\n|' MODULE.bazel
20+
- sed -i 's|^rust_register_toolchains(|rust_register_toolchains(versions = ["1.85.0"],\n|' WORKSPACE.bazel
21+
- sed -i 's|^rust\.toolchain(|rust.toolchain(versions = ["1.85.0"],\n|' MODULE.bazel
2222
nightly_flags: &nightly_flags
2323
- "--//rust/toolchain/channel=nightly"
2424
nightly_aspects_flags: &nightly_aspects_flags
@@ -88,10 +88,19 @@ coverage_validation_post_shell_commands: &coverage_validation_post_shell_command
8888
; 1>&2 cat bazel-out/_coverage/_coverage_report.dat \
8989
; exit 1 \
9090
; }
91+
- |
92+
grep -q '^LF:[1-9]' bazel-out/_coverage/_coverage_report.dat \
93+
|| { 1>&2 echo "Coverage report has no line data" \
94+
; 1>&2 head -50 bazel-out/_coverage/_coverage_report.dat \
95+
; exit 1 \
96+
; }
9197
split_coverage_postprocessing_shell_commands: &split_coverage_postprocessing_shell_commands
9298
- echo "coverage --experimental_fetch_all_coverage_outputs" >> user.bazelrc
9399
- echo "coverage --experimental_split_coverage_postprocessing" >> user.bazelrc
94100
- echo "build --//rust/settings:experimental_use_coverage_metadata_files" >> user.bazelrc
101+
rbe_coverage_flags: &rbe_coverage_flags
102+
# https://github.com/bazelbuild/bazel/issues/20578
103+
- "--strategy=CoverageReport=local"
95104
tasks:
96105
ubuntu2204:
97106
build_targets: *default_linux_targets
@@ -106,6 +115,9 @@ tasks:
106115
- sed -i 's/^# rbe_preconfig/rbe_preconfig/' WORKSPACE.bazel
107116
build_targets: *default_rbe_targets
108117
test_targets: *default_rbe_targets
118+
coverage_targets: *default_rbe_targets
119+
coverage_flags: *rbe_coverage_flags
120+
post_shell_commands: *coverage_validation_post_shell_commands
109121
macos:
110122
platform: macos_arm64
111123
build_targets: *default_macos_targets
@@ -133,6 +145,9 @@ tasks:
133145
shell_commands: *no_bzlmod_rbe_shell_commands
134146
build_targets: *default_rbe_targets
135147
test_targets: *default_rbe_targets
148+
coverage_targets: *default_rbe_targets
149+
coverage_flags: *rbe_coverage_flags
150+
post_shell_commands: *coverage_validation_post_shell_commands
136151
macos_no_bzlmod:
137152
name: No Bzlmod
138153
platform: macos_arm64
@@ -213,6 +228,9 @@ tasks:
213228
build_flags: *aspects_flags
214229
build_targets: *default_rbe_targets
215230
test_targets: *default_rbe_targets
231+
coverage_targets: *default_rbe_targets
232+
coverage_flags: *rbe_coverage_flags
233+
post_shell_commands: *coverage_validation_post_shell_commands
216234
rbe_ubuntu2204_rolling_with_aspects:
217235
name: RBE Rolling Bazel Version With Aspects
218236
platform: rbe_ubuntu2204
@@ -221,6 +239,9 @@ tasks:
221239
- sed -i 's/^# rbe_preconfig/rbe_preconfig/' WORKSPACE.bazel
222240
build_targets: *default_rbe_targets
223241
test_targets: *default_rbe_targets
242+
coverage_targets: *default_rbe_targets
243+
coverage_flags: *rbe_coverage_flags
244+
post_shell_commands: *coverage_validation_post_shell_commands
224245
build_flags: *aspects_flags
225246
soft_fail: yes
226247
bazel: "rolling"
@@ -949,12 +970,6 @@ tasks:
949970
working_directory: examples/proto
950971
build_targets:
951972
- "//..."
952-
bzlmod_protoc:
953-
name: Proto and Prost with prebuilt protoc with bzlmod
954-
platform: ubuntu2204
955-
working_directory: examples/proto_with_toolchain
956-
build_targets:
957-
- "//..."
958973
compile_one_dependency:
959974
name: --compile_one_dependency flag
960975
platform: ubuntu2204
@@ -1095,49 +1110,6 @@ tasks:
10951110
- "//..."
10961111
test_targets:
10971112
- "//..."
1098-
extensions_protobuf_linux:
1099-
platform: ubuntu2204
1100-
name: Extensions Protobuf
1101-
working_directory: extensions/protobuf
1102-
build_flags: *aspects_flags
1103-
test_flags: *aspects_flags
1104-
build_targets:
1105-
- "//..."
1106-
test_targets:
1107-
- "//..."
1108-
extensions_protobuf_linux_rbe:
1109-
platform: rbe_ubuntu2204
1110-
name: Extensions Protobuf
1111-
working_directory: extensions/protobuf
1112-
shell_commands:
1113-
- sed -i 's/^# load("@bazel_ci_rules/load("@bazel_ci_rules/' WORKSPACE.bazel
1114-
- sed -i 's/^# rbe_preconfig/rbe_preconfig/' WORKSPACE.bazel
1115-
build_flags: *aspects_flags
1116-
test_flags: *aspects_flags
1117-
build_targets:
1118-
- "//..."
1119-
test_targets:
1120-
- "//..."
1121-
extensions_protobuf_macos:
1122-
platform: macos_arm64
1123-
name: Extensions Protobuf
1124-
working_directory: extensions/protobuf
1125-
build_flags: *aspects_flags
1126-
test_flags: *aspects_flags
1127-
build_targets:
1128-
- "//..."
1129-
test_targets:
1130-
- "//..."
1131-
extensions_protobuf_windows:
1132-
platform: windows
1133-
name: Extensions Protobuf
1134-
working_directory: extensions/protobuf
1135-
build_flags: *aspects_flags
1136-
test_flags: *aspects_flags
1137-
build_targets:
1138-
- "//..."
1139-
test_targets:
1140-
- "//..."
11411113
extensions_pyo3_linux:
11421114
platform: ubuntu2204
11431115
name: Extensions PyO3

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ coverage --combined_report=lcov
1818
# Avoid fully cached builds reporting no coverage and failing CI
1919
# https://bazel.build/reference/command-line-reference#flag--experimental_fetch_all_coverage_outputs
2020
coverage --experimental_fetch_all_coverage_outputs
21+
coverage --experimental_split_coverage_postprocessing
2122

2223
# Required for some of the tests
2324
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library

.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.

.bcr/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ moduleRoots:
33
- "extensions/bindgen"
44
- "extensions/mdbook"
55
- "extensions/prost"
6-
- "extensions/protobuf"
76
- "extensions/pyo3"
87
- "extensions/wasm_bindgen"

.bcr/extensions/bindgen/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ bcr_test_module:
66
- "ubuntu2004"
77
# # TODO: https://github.com/bazelbuild/rules_rust/issues/2009
88
# - "windows"
9-
bazel: ["7.x", "8.x"]
9+
bazel: ["7.x", "8.x", "9.x"]
1010
tasks:
1111
run_tests:
1212
name: "Run test module"

.bcr/extensions/mdbook/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ bcr_test_module:
22
module_path: ""
33
matrix:
44
platform: ["macos_arm64", "ubuntu2004", "windows"]
5-
bazel: ["7.x", "8.x"]
5+
bazel: ["7.x", "8.x", "9.x"]
66
tasks:
77
run_tests:
88
name: "Run test module"

.bcr/extensions/prost/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ bcr_test_module:
22
module_path: ""
33
matrix:
44
platform: ["macos_arm64", "ubuntu2004", "windows"]
5-
bazel: ["7.x", "8.x"]
5+
bazel: ["7.x", "8.x", "9.x"]
66
tasks:
77
run_tests:
88
name: "Run test module"

.bcr/extensions/protobuf/metadata.template.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

.bcr/extensions/protobuf/presubmit.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.bcr/extensions/protobuf/source.template.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)