support marking end2end fixture-test pairs as flaky

pull/22357/head
Jan Tattermusch 5 years ago
parent 12d5e51175
commit 8b663c86b6
  1. 8
      test/core/end2end/generate_tests.bzl

@ -32,7 +32,8 @@ def _fixture_options(
supports_proxy_auth = False, supports_proxy_auth = False,
supports_write_buffering = True, supports_write_buffering = True,
client_channel = True, client_channel = True,
supports_msvc = True): supports_msvc = True,
flaky_tests = []):
return struct( return struct(
fullstack = fullstack, fullstack = fullstack,
includes_proxy = includes_proxy, includes_proxy = includes_proxy,
@ -47,6 +48,7 @@ def _fixture_options(
client_channel = client_channel, client_channel = client_channel,
supports_msvc = supports_msvc, supports_msvc = supports_msvc,
_platforms = _platforms, _platforms = _platforms,
flaky_tests = flaky_tests,
) )
# maps fixture name to whether it requires the security library # maps fixture name to whether it requires the security library
@ -427,6 +429,7 @@ def grpc_end2end_tests():
t, t,
], ],
tags = ["no_linux"] + _platform_support_tags(fopt), tags = ["no_linux"] + _platform_support_tags(fopt),
flaky = t in fopt.flaky_tests,
) )
for poller in POLLERS: for poller in POLLERS:
@ -440,6 +443,7 @@ def grpc_end2end_tests():
poller, poller,
], ],
tags = ["no_mac", "no_windows"], tags = ["no_mac", "no_windows"],
flaky = t in fopt.flaky_tests,
) )
def grpc_end2end_nosec_tests(): def grpc_end2end_nosec_tests():
@ -495,6 +499,7 @@ def grpc_end2end_nosec_tests():
t, t,
], ],
tags = ["no_linux"] + _platform_support_tags(fopt), tags = ["no_linux"] + _platform_support_tags(fopt),
flaky = t in fopt.flaky_tests,
) )
for poller in POLLERS: for poller in POLLERS:
@ -508,4 +513,5 @@ def grpc_end2end_nosec_tests():
poller, poller,
], ],
tags = ["no_mac", "no_windows"], tags = ["no_mac", "no_windows"],
flaky = t in fopt.flaky_tests,
) )

Loading…
Cancel
Save