mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
3.6 KiB
83 lines
3.6 KiB
6 years ago
|
#@IgnoreInspection BashAddShebang
|
||
6 years ago
|
# Copyright 2018 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.
|
||
|
|
||
3 years ago
|
# bazelrc file for running gRPC tests with RBE (on Linux)
|
||
6 years ago
|
|
||
3 years ago
|
import %workspace%/tools/remote_build/include/rbe_remote_execution.bazelrc
|
||
6 years ago
|
|
||
3 years ago
|
# Next section is linux-specific RBE configuration
|
||
6 years ago
|
build --crosstool_top=@rbe_default//cc:toolchain
|
||
6 years ago
|
build --extra_toolchains=@rbe_default//config:cc-toolchain
|
||
6 years ago
|
# Use custom execution platforms defined in third_party/toolchains
|
||
5 years ago
|
build --extra_execution_platforms=@rbe_default//config:platform
|
||
|
build --host_platform=@rbe_default//config:platform
|
||
|
build --platforms=@rbe_default//config:platform
|
||
6 years ago
|
|
||
5 years ago
|
# we assume the default bazel RBE build is on linux,
|
||
|
# so filter out stuff that should not be built or run there.
|
||
|
build --test_tag_filters=-no_linux
|
||
|
build --build_tag_filters=-no_linux
|
||
|
|
||
3 years ago
|
import %workspace%/tools/remote_build/include/test_config_common.bazelrc
|
||
|
|
||
|
build --jobs=100
|
||
|
|
||
6 years ago
|
# address sanitizer: most settings are already in %workspace%/.bazelrc
|
||
|
# we only need a few additional ones that are Foundry specific
|
||
|
build:asan --copt=-gmlt
|
||
5 years ago
|
# use double the default value for "moderate" and "long" timeout as sanitizer
|
||
|
# tests tend to be slower
|
||
|
build:asan --test_timeout=60,600,1800,3600
|
||
5 years ago
|
build:asan --test_tag_filters=-no_linux,-noasan,-qps_json_driver
|
||
6 years ago
|
|
||
6 years ago
|
# memory sanitizer: most settings are already in %workspace%/.bazelrc
|
||
|
# we only need a few additional ones that are Foundry specific
|
||
|
build:msan --copt=-gmlt
|
||
5 years ago
|
# "moderate" timeout 3x the default, "long" timeout 2x the default
|
||
|
build:msan --test_timeout=60,900,1800,3600
|
||
6 years ago
|
# TODO(jtattermusch): revisit the disabled tests
|
||
5 years ago
|
build:msan --test_tag_filters=-no_linux,-nomsan,-json_run_localhost
|
||
6 years ago
|
build:msan --cxxopt=--stdlib=libc++
|
||
6 years ago
|
# setting LD_LIBRARY_PATH is necessary
|
||
6 years ago
|
# to avoid "libc++.so.1: cannot open shared object file"
|
||
|
build:msan --action_env=LD_LIBRARY_PATH=/usr/local/lib
|
||
6 years ago
|
build:msan --host_crosstool_top=@rbe_default//cc:toolchain
|
||
6 years ago
|
# override the config-agnostic crosstool_top
|
||
6 years ago
|
build:msan --crosstool_top=@rbe_msan//cc:toolchain
|
||
6 years ago
|
|
||
6 years ago
|
# thread sanitizer: most settings are already in %workspace%/.bazelrc
|
||
|
# we only need a few additional ones that are Foundry specific
|
||
|
build:tsan --copt=-gmlt
|
||
5 years ago
|
# use double the default value for "moderate" and "long" timeout as sanitizer
|
||
|
# tests tend to be slower
|
||
|
build:tsan --test_timeout=60,600,1800,3600
|
||
5 years ago
|
build:tsan --test_tag_filters=-no_linux,-notsan,-qps_json_driver
|
||
6 years ago
|
|
||
6 years ago
|
# undefined behavior sanitizer: most settings are already in %workspace%/.bazelrc
|
||
|
# we only need a few additional ones that are Foundry specific
|
||
|
build:ubsan --copt=-gmlt
|
||
5 years ago
|
# use double the default value for "moderate" and "long" timeout as sanitizer
|
||
|
# tests tend to be slower
|
||
|
build:ubsan --test_timeout=60,600,1800,3600
|
||
3 years ago
|
# RBE docker image only has a msan specific version of libc++, so to be able to link against it,
|
||
|
# we need to involuntarily enable msan as well to be able to build. See b/200667821
|
||
|
# TODO(jtattermusch): disable memory sanitizer for ubsan build as soon as possible.
|
||
|
build:ubsan --copt=-fsanitize=memory
|
||
|
build:ubsan --copt=-fsanitize-recover=memory
|
||
|
build:ubsan --linkopt=-fsanitize=memory
|
||
|
build:ubsan --cxxopt=--stdlib=libc++
|
||
|
build:ubsan --action_env=MSAN_OPTIONS=halt_on_error=0
|
||
|
build:ubsan --test_tag_filters=-no_linux,-noubsan
|