Merge pull request #14788 from adelez/foundry_integration

Add timeout param to grpc_cc_test, set it to long for fuzzer tests and eternal for api_fuzzer
pull/14816/head
adelez 7 years ago committed by GitHub
commit bc7e096dd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      bazel/grpc_build_system.bzl
  2. 2
      test/core/end2end/fuzzers/BUILD
  3. 4
      test/core/util/grpc_fuzzer.bzl
  4. 2
      tools/internal_ci/linux/grpc_asan_on_foundry.sh
  5. 1
      tools/internal_ci/linux/grpc_bazel_on_foundry_base.sh
  6. 2
      tools/internal_ci/linux/grpc_bazel_on_foundry_dbg.sh
  7. 2
      tools/internal_ci/linux/grpc_bazel_on_foundry_opt.sh
  8. 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", timeout = "moderate"):
copts = []
if language.upper() == "C":
copts = if_not_windows(["-std=c99"])
@ -120,6 +120,8 @@ 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,
'timeout': timeout,
}
if uses_polling:
native.cc_test(testonly=True, tags=['manual'], **args)
@ -130,9 +132,11 @@ def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data
srcs = [
'//test/core/util:run_with_poller_sh',
],
size = size,
timeout = timeout,
args = [
poller,
'$(location %s)' % name
'$(location %s)' % name,
] + args['args'],
)
else:

@ -25,6 +25,8 @@ grpc_fuzzer(
srcs = ["api_fuzzer.cc"],
language = "C++",
corpus = "api_fuzzer_corpus",
size = "enormous",
timeout = "eternal",
deps = [
"//:gpr",
"//:grpc",

@ -14,7 +14,7 @@
load("//bazel:grpc_build_system.bzl", "grpc_cc_test")
def grpc_fuzzer(name, corpus, srcs = [], deps = [], **kwargs):
def grpc_fuzzer(name, corpus, srcs = [], deps = [], size = "large", timeout = "long", **kwargs):
grpc_cc_test(
name = name,
srcs = srcs,
@ -23,6 +23,8 @@ def grpc_fuzzer(name, corpus, srcs = [], deps = [], **kwargs):
external_deps = [
'gtest',
],
size = size,
timeout = timeout,
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