Debian Codegraph @

tools/remote_build/include/rbe_remote_execution.bazelrc

raw
1 #@IgnoreInspection BashAddShebang
2 # Copyright 2022 The gRPC Authors
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 # bazelrc to configure bazel to use RBE remote executors to build and run tests.
17
18 import %workspace%/tools/remote_build/include/rbe_base_config.bazelrc
19
20 # configure backend for remote execution
21 build --remote_executor=grpcs://remotebuildexecution.googleapis.com
22
23 build --spawn_strategy=remote
24 build --strategy=Javac=remote
25 build --strategy=Closure=remote
26 build --genrule_strategy=remote
27 build --remote_timeout=7200 # very large value to avoid problems like https://github.com/grpc/grpc/issues/20777
28
29 # In the remote execution environment, each test gets its own docker containers
30 # and port server won't be available.
31 build --define GRPC_PORT_ISOLATED_RUNTIME=1
32
33 # TODO(jtattermusch): is this still required for remote execution to work?
34 build --experimental_strict_action_env=true
35 build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1