mirror of https://github.com/grpc/grpc.git
Cleanup bazel RBE configs (#29281)
* refactor RBE configs * better naming for linux specific RBE configs * update names of RBE configs elsewhere * move partial configs to tools/remote_build/includepull/29178/head
parent
a6419dde06
commit
1973b4f9b1
9 changed files with 100 additions and 110 deletions
@ -0,0 +1,35 @@ |
||||
#@IgnoreInspection BashAddShebang |
||||
# Copyright 2022 The gRPC Authors |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
# bazelrc to configure bazel to use RBE remote executors to build and run tests. |
||||
|
||||
import %workspace%/tools/remote_build/include/rbe_base_config.bazelrc |
||||
|
||||
# configure backend for remote execution |
||||
build --remote_executor=grpcs://remotebuildexecution.googleapis.com |
||||
|
||||
build --spawn_strategy=remote |
||||
build --strategy=Javac=remote |
||||
build --strategy=Closure=remote |
||||
build --genrule_strategy=remote |
||||
build --remote_timeout=7200 # very large value to avoid problems like https://github.com/grpc/grpc/issues/20777 |
||||
|
||||
# In the remote execution environment, each test gets its own docker containers |
||||
# and port server won't be available. |
||||
build --define GRPC_PORT_ISOLATED_RUNTIME=1 |
||||
|
||||
# TODO(jtattermusch): is this still required for remote execution to work? |
||||
build --experimental_strict_action_env=true |
||||
build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 |
@ -0,0 +1,24 @@ |
||||
#@IgnoreInspection BashAddShebang |
||||
# Copyright 2022 The gRPC Authors |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
# bazelrc for common configuration of gRPC tests |
||||
|
||||
build --verbose_failures=true |
||||
|
||||
# without verbose gRPC logs the test outputs are not very useful |
||||
test --test_env=GRPC_VERBOSITY=debug |
||||
|
||||
# print output for tests that fail (default is "summary") |
||||
build --test_output=errors |
Loading…
Reference in new issue