From 75e11003ff49a3f0977074164ac45f2c48b8a1f0 Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Tue, 1 Sep 2026 13:05:04 +0000 Subject: [PATCH] test(bcr): cover both prefer_prebuilt_protoc cases in .bcr/presubmit.yml --- .bcr/presubmit.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml index c4e620367e9ca..f9ddff10994c4 100644 --- a/.bcr/presubmit.yml +++ b/.bcr/presubmit.yml @@ -4,12 +4,17 @@ bcr_test_module: matrix: platform: ["debian12", "macos_arm64", "ubuntu2404", "windows"] bazel: [8.x, 9.x] + prefer_prebuilt_protoc: ["true", "false"] tasks: verify_targets: - name: "Verify build targets" + name: "Verify build targets (prefer_prebuilt_protoc=${{ prefer_prebuilt_protoc }})" platform: ${{ platform }} bazel: ${{ bazel }} + build_flags: + - '--@com_google_protobuf//bazel/toolchains:prefer_prebuilt_protoc=${{ prefer_prebuilt_protoc }}' + test_flags: + - '--@com_google_protobuf//bazel/toolchains:prefer_prebuilt_protoc=${{ prefer_prebuilt_protoc }}' build_targets: - '//...' - '@com_google_protobuf//:protobuf' @@ -19,4 +24,6 @@ bcr_test_module: - '@com_google_protobuf//:protoc' - '@com_google_protobuf//:test_messages_proto2_cc_proto' - '@com_google_protobuf//:test_messages_proto3_cc_proto' + test_targets: + - '//...' # LINT.ThenChange(/.bazelci/presubmit.yml)