Add size param to grpc_cc_test and set it to enormous for fuzzer tests.

pull/14788/head
Adele Zhou 7 years ago
parent 90af9346de
commit ad5be3e310
  1. 3
      bazel/grpc_build_system.bzl
  2. 1
      test/core/util/grpc_fuzzer.bzl
  3. 2
      tools/internal_ci/linux/grpc_asan_on_foundry.sh
  4. 1
      tools/internal_ci/linux/grpc_bazel_on_foundry_base.sh
  5. 2
      tools/internal_ci/linux/grpc_bazel_on_foundry_dbg.sh
  6. 2
      tools/internal_ci/linux/grpc_bazel_on_foundry_opt.sh
  7. 2
      tools/internal_ci/linux/grpc_tsan_on_foundry.sh

@ -108,7 +108,7 @@ def grpc_proto_library(name, srcs = [], deps = [], well_known_protos = False,
generate_mocks = generate_mocks,
)
def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data = [], uses_polling = True, language = "C++"):
def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data = [], uses_polling = True, language = "C++", size = "medium"):
copts = []
if language.upper() == "C":
copts = if_not_windows(["-std=c99"])
@ -120,6 +120,7 @@ def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data
'deps': deps + _get_external_deps(external_deps),
'copts': copts,
'linkopts': if_not_windows(["-pthread"]),
'size': size,
}
if uses_polling:
native.cc_test(testonly=True, tags=['manual'], **args)

@ -23,6 +23,7 @@ def grpc_fuzzer(name, corpus, srcs = [], deps = [], **kwargs):
external_deps = [
'gtest',
],
size = "enormous",
args = ["--directory=" + native.package_name() + "/" + corpus,],
**kwargs
)

@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
EXTRA_FLAGS="--copt=-gmlt --strip=never --copt=-fsanitize=address --linkopt=-fsanitize=address"
EXTRA_FLAGS="--copt=-gmlt --strip=never --copt=-fsanitize=address --linkopt=-fsanitize=address --test_timeout=3600"
github/grpc/tools/internal_ci/linux/grpc_bazel_on_foundry_base.sh "${EXTRA_FLAGS}"

@ -38,7 +38,6 @@ source tools/internal_ci/helper_scripts/prepare_build_linux_rc
"${KOKORO_GFILE_DIR}/bazel_wrapper.py" \
--host_jvm_args=-Dbazel.DigestFunction=SHA256 \
test --jobs="100" \
--test_timeout="3600,3600,3600,3600" \
--test_output=errors \
--verbose_failures=true \
--keep_going \

@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
EXTRA_FLAGS="-c dbg"
EXTRA_FLAGS="-c dbg --test_timeout=300,450,1200,7200"
github/grpc/tools/internal_ci/linux/grpc_bazel_on_foundry_base.sh "${EXTRA_FLAGS}"

@ -13,5 +13,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
EXTRA_FLAGS="-c opt"
EXTRA_FLAGS="-c opt --test_timeout=300,450,1200,7200"
github/grpc/tools/internal_ci/linux/grpc_bazel_on_foundry_base.sh "${EXTRA_FLAGS}"

@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
EXTRA_FLAGS="--copt=-gmlt --strip=never --copt=-fsanitize=thread --linkopt=-fsanitize=thread"
EXTRA_FLAGS="--copt=-gmlt --strip=never --copt=-fsanitize=thread --linkopt=-fsanitize=thread --test_timeout=3600"
github/grpc/tools/internal_ci/linux/grpc_bazel_on_foundry_base.sh "${EXTRA_FLAGS}"

Loading…
Cancel
Save