Merge pull request #20264 from jtattermusch/win_rbe_fixes

Use bazel 0.29.1 for RBE windows
pull/19609/head
Jan Tattermusch 5 years ago committed by GitHub
commit b3b00ad858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tools/internal_ci/windows/bazel_rbe.bat
  2. 2
      tools/remote_build/README.md
  3. 7
      tools/remote_build/manual.bazelrc
  4. 2
      tools/remote_build/windows.bazelrc

@ -14,8 +14,7 @@
@rem TODO(jtattermusch): make this generate less output @rem TODO(jtattermusch): make this generate less output
@rem TODO(jtattermusch): use tools/bazel script to keep the versions in sync @rem TODO(jtattermusch): use tools/bazel script to keep the versions in sync
@rem TODO(jtattermusch): https://github.com/bazelbuild/bazel/issues/9369 prevents upgrade to 0.29.1 choco install bazel -y --version 0.29.1 --limit-output
choco install bazel -y --version 0.29.0 --limit-output
cd github/grpc cd github/grpc
set PATH=C:\tools\msys64\usr\bin;C:\Python27;%PATH% set PATH=C:\tools\msys64\usr\bin;C:\Python27;%PATH%

@ -32,7 +32,7 @@ bazel --bazelrc=tools/remote_build/manual.bazelrc test --config=asan //test/...
Run on Windows MSVC: Run on Windows MSVC:
``` ```
# RBE manual run only for c-core (must be run on a Windows host machine) # RBE manual run only for c-core (must be run on a Windows host machine)
bazel --bazelrc=tools/remote_build/windows.bazelrc build :all [--credentials_json=(path to service account credentials)] bazel --bazelrc=tools/remote_build/windows.bazelrc build :all
``` ```
Available command line options can be found in Available command line options can be found in

@ -20,11 +20,10 @@ import %workspace%/tools/remote_build/rbe_common.bazelrc
build --remote_cache=grpcs://remotebuildexecution.googleapis.com build --remote_cache=grpcs://remotebuildexecution.googleapis.com
build --remote_executor=grpcs://remotebuildexecution.googleapis.com build --remote_executor=grpcs://remotebuildexecution.googleapis.com
# Enable authentication. This will pick up application default credentials by # Enable authentication. Bazel will use application default credentials
# default. You can use --auth_credentials=some_file.json to use a service # unless overridden by --google_credentials=service_account_credentials.json
# account credential instead.
# How to setup credentials: # How to setup credentials:
# See https://cloud.google.com/remote-build-execution/docs/getting-started#set_credentials # https://cloud.google.com/remote-build-execution/docs/results-ui/getting-started-results-ui
build --auth_enabled=true build --auth_enabled=true
# Set flags for uploading to BES in order to view results in the Bazel Build # Set flags for uploading to BES in order to view results in the Bazel Build

@ -3,6 +3,8 @@ startup --host_jvm_args=-Dbazel.DigestFunction=SHA256
build --remote_cache=grpcs://remotebuildexecution.googleapis.com build --remote_cache=grpcs://remotebuildexecution.googleapis.com
build --remote_executor=grpcs://remotebuildexecution.googleapis.com build --remote_executor=grpcs://remotebuildexecution.googleapis.com
build --auth_enabled=true
build --host_crosstool_top=//third_party/toolchains/bazel_0.26.0_rbe_windows:toolchain build --host_crosstool_top=//third_party/toolchains/bazel_0.26.0_rbe_windows:toolchain
build --crosstool_top=//third_party/toolchains/bazel_0.26.0_rbe_windows:toolchain build --crosstool_top=//third_party/toolchains/bazel_0.26.0_rbe_windows:toolchain
build --extra_toolchains=//third_party/toolchains/bazel_0.26.0_rbe_windows:cc-toolchain-x64_windows build --extra_toolchains=//third_party/toolchains/bazel_0.26.0_rbe_windows:cc-toolchain-x64_windows

Loading…
Cancel
Save