|
|
@ -45,6 +45,7 @@ import tempfile |
|
|
|
import time |
|
|
|
import time |
|
|
|
import uuid |
|
|
|
import uuid |
|
|
|
import six |
|
|
|
import six |
|
|
|
|
|
|
|
import traceback |
|
|
|
|
|
|
|
|
|
|
|
import python_utils.dockerjob as dockerjob |
|
|
|
import python_utils.dockerjob as dockerjob |
|
|
|
import python_utils.jobset as jobset |
|
|
|
import python_utils.jobset as jobset |
|
|
@ -73,6 +74,10 @@ _SKIP_ADVANCED = ['status_code_and_message', |
|
|
|
|
|
|
|
|
|
|
|
_TEST_TIMEOUT = 3*60 |
|
|
|
_TEST_TIMEOUT = 3*60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# disable this test on core-based languages, |
|
|
|
|
|
|
|
# see https://github.com/grpc/grpc/issues/9779 |
|
|
|
|
|
|
|
_SKIP_DATA_FRAME_PADDING = ['data_frame_padding'] |
|
|
|
|
|
|
|
|
|
|
|
class CXXLanguage: |
|
|
|
class CXXLanguage: |
|
|
|
|
|
|
|
|
|
|
|
def __init__(self): |
|
|
|
def __init__(self): |
|
|
@ -97,7 +102,7 @@ class CXXLanguage: |
|
|
|
return {} |
|
|
|
return {} |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases(self): |
|
|
|
def unimplemented_test_cases(self): |
|
|
|
return [] |
|
|
|
return _SKIP_DATA_FRAME_PADDING |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
return [] |
|
|
|
return [] |
|
|
@ -126,7 +131,7 @@ class CSharpLanguage: |
|
|
|
return {} |
|
|
|
return {} |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases(self): |
|
|
|
def unimplemented_test_cases(self): |
|
|
|
return _SKIP_SERVER_COMPRESSION |
|
|
|
return _SKIP_SERVER_COMPRESSION + _SKIP_DATA_FRAME_PADDING |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
return _SKIP_COMPRESSION |
|
|
|
return _SKIP_COMPRESSION |
|
|
@ -155,7 +160,7 @@ class CSharpCoreCLRLanguage: |
|
|
|
return {} |
|
|
|
return {} |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases(self): |
|
|
|
def unimplemented_test_cases(self): |
|
|
|
return _SKIP_SERVER_COMPRESSION |
|
|
|
return _SKIP_SERVER_COMPRESSION + _SKIP_DATA_FRAME_PADDING |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
return _SKIP_COMPRESSION |
|
|
|
return _SKIP_COMPRESSION |
|
|
@ -250,7 +255,7 @@ class Http2Server: |
|
|
|
return {} |
|
|
|
return {} |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases(self): |
|
|
|
def unimplemented_test_cases(self): |
|
|
|
return _TEST_CASES |
|
|
|
return _TEST_CASES + _SKIP_DATA_FRAME_PADDING |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
return _TEST_CASES |
|
|
|
return _TEST_CASES |
|
|
@ -281,7 +286,7 @@ class Http2Client: |
|
|
|
return _TEST_CASES |
|
|
|
return _TEST_CASES |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
return [] |
|
|
|
return _TEST_CASES |
|
|
|
|
|
|
|
|
|
|
|
def __str__(self): |
|
|
|
def __str__(self): |
|
|
|
return 'http2' |
|
|
|
return 'http2' |
|
|
@ -308,7 +313,7 @@ class NodeLanguage: |
|
|
|
return {} |
|
|
|
return {} |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases(self): |
|
|
|
def unimplemented_test_cases(self): |
|
|
|
return _SKIP_COMPRESSION |
|
|
|
return _SKIP_COMPRESSION + _SKIP_DATA_FRAME_PADDING |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
return _SKIP_COMPRESSION |
|
|
|
return _SKIP_COMPRESSION |
|
|
@ -333,7 +338,7 @@ class PHPLanguage: |
|
|
|
return {} |
|
|
|
return {} |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases(self): |
|
|
|
def unimplemented_test_cases(self): |
|
|
|
return _SKIP_COMPRESSION |
|
|
|
return _SKIP_COMPRESSION + _SKIP_DATA_FRAME_PADDING |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
return [] |
|
|
|
return [] |
|
|
@ -358,7 +363,7 @@ class PHP7Language: |
|
|
|
return {} |
|
|
|
return {} |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases(self): |
|
|
|
def unimplemented_test_cases(self): |
|
|
|
return _SKIP_COMPRESSION |
|
|
|
return _SKIP_COMPRESSION + _SKIP_DATA_FRAME_PADDING |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
return [] |
|
|
|
return [] |
|
|
@ -389,7 +394,7 @@ class RubyLanguage: |
|
|
|
return {} |
|
|
|
return {} |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases(self): |
|
|
|
def unimplemented_test_cases(self): |
|
|
|
return _SKIP_SERVER_COMPRESSION |
|
|
|
return _SKIP_SERVER_COMPRESSION + _SKIP_DATA_FRAME_PADDING |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
return _SKIP_COMPRESSION |
|
|
|
return _SKIP_COMPRESSION |
|
|
@ -437,7 +442,7 @@ class PythonLanguage: |
|
|
|
'PYTHONPATH': '{}/src/python/gens'.format(DOCKER_WORKDIR_ROOT)} |
|
|
|
'PYTHONPATH': '{}/src/python/gens'.format(DOCKER_WORKDIR_ROOT)} |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases(self): |
|
|
|
def unimplemented_test_cases(self): |
|
|
|
return _SKIP_COMPRESSION |
|
|
|
return _SKIP_COMPRESSION + _SKIP_DATA_FRAME_PADDING |
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
def unimplemented_test_cases_server(self): |
|
|
|
return _SKIP_COMPRESSION |
|
|
|
return _SKIP_COMPRESSION |
|
|
@ -476,10 +481,14 @@ _AUTH_TEST_CASES = ['compute_engine_creds', 'jwt_token_creds', |
|
|
|
|
|
|
|
|
|
|
|
_HTTP2_TEST_CASES = ['tls', 'framing'] |
|
|
|
_HTTP2_TEST_CASES = ['tls', 'framing'] |
|
|
|
|
|
|
|
|
|
|
|
_HTTP2_BADSERVER_TEST_CASES = ['rst_after_header', 'rst_after_data', 'rst_during_data', |
|
|
|
_HTTP2_SERVER_TEST_CASES = ['rst_after_header', 'rst_after_data', 'rst_during_data', |
|
|
|
'goaway', 'ping', 'max_streams'] |
|
|
|
'goaway', 'ping', 'max_streams', 'data_frame_padding', 'no_df_padding_sanity_test'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_GRPC_CLIENT_TEST_CASES_FOR_HTTP2_SERVER_TEST_CASES = { 'data_frame_padding': 'large_unary', 'no_df_padding_sanity_test': 'large_unary' } |
|
|
|
|
|
|
|
|
|
|
|
_LANGUAGES_FOR_HTTP2_BADSERVER_TESTS = ['java', 'go', 'python', 'c++'] |
|
|
|
_HTTP2_SERVER_TEST_CASES_THAT_USE_GRPC_CLIENTS = _GRPC_CLIENT_TEST_CASES_FOR_HTTP2_SERVER_TEST_CASES.keys() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_LANGUAGES_WITH_HTTP2_CLIENTS_FOR_HTTP2_SERVER_TEST_CASES = ['java', 'go', 'python', 'c++'] |
|
|
|
|
|
|
|
|
|
|
|
DOCKER_WORKDIR_ROOT = '/var/local/git/grpc' |
|
|
|
DOCKER_WORKDIR_ROOT = '/var/local/git/grpc' |
|
|
|
|
|
|
|
|
|
|
@ -631,14 +640,28 @@ def cloud_to_cloud_jobspec(language, test_case, server_name, server_host, |
|
|
|
'--use_tls=%s' % ('false' if insecure else 'true'), |
|
|
|
'--use_tls=%s' % ('false' if insecure else 'true'), |
|
|
|
'--use_test_ca=true', |
|
|
|
'--use_test_ca=true', |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
client_test_case = test_case |
|
|
|
|
|
|
|
if test_case in _HTTP2_SERVER_TEST_CASES_THAT_USE_GRPC_CLIENTS: |
|
|
|
|
|
|
|
client_test_case = _GRPC_CLIENT_TEST_CASES_FOR_HTTP2_SERVER_TEST_CASES[test_case] |
|
|
|
|
|
|
|
if client_test_case in language.unimplemented_test_cases(): |
|
|
|
|
|
|
|
print('asking client %s to run unimplemented test case %s' % (repr(language), client_test_case)) |
|
|
|
|
|
|
|
sys.exit(1) |
|
|
|
|
|
|
|
|
|
|
|
common_options = [ |
|
|
|
common_options = [ |
|
|
|
'--test_case=%s' % test_case, |
|
|
|
'--test_case=%s' % client_test_case, |
|
|
|
'--server_host=%s' % server_host, |
|
|
|
'--server_host=%s' % server_host, |
|
|
|
'--server_port=%s' % server_port, |
|
|
|
'--server_port=%s' % server_port, |
|
|
|
] |
|
|
|
] |
|
|
|
if test_case in _HTTP2_BADSERVER_TEST_CASES: |
|
|
|
|
|
|
|
cmdline = bash_cmdline(language.client_cmd_http2interop(common_options)) |
|
|
|
if test_case in _HTTP2_SERVER_TEST_CASES: |
|
|
|
cwd = language.http2_cwd |
|
|
|
if test_case in _HTTP2_SERVER_TEST_CASES_THAT_USE_GRPC_CLIENTS: |
|
|
|
|
|
|
|
client_options = interop_only_options + common_options |
|
|
|
|
|
|
|
cmdline = bash_cmdline(language.client_cmd(client_options)) |
|
|
|
|
|
|
|
cwd = language.client_cwd |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
cmdline = bash_cmdline(language.client_cmd_http2interop(common_options)) |
|
|
|
|
|
|
|
cwd = language.http2_cwd |
|
|
|
else: |
|
|
|
else: |
|
|
|
cmdline = bash_cmdline(language.client_cmd(common_options+interop_only_options)) |
|
|
|
cmdline = bash_cmdline(language.client_cmd(common_options+interop_only_options)) |
|
|
|
cwd = language.client_cwd |
|
|
|
cwd = language.client_cwd |
|
|
@ -686,7 +709,7 @@ def server_jobspec(language, docker_image, insecure=False, manual_cmd_log=None): |
|
|
|
docker_args += list( |
|
|
|
docker_args += list( |
|
|
|
itertools.chain.from_iterable(('-p', str(_DEFAULT_SERVER_PORT + i)) |
|
|
|
itertools.chain.from_iterable(('-p', str(_DEFAULT_SERVER_PORT + i)) |
|
|
|
for i in range( |
|
|
|
for i in range( |
|
|
|
len(_HTTP2_BADSERVER_TEST_CASES)))) |
|
|
|
len(_HTTP2_SERVER_TEST_CASES)))) |
|
|
|
# Enable docker's healthcheck mechanism. |
|
|
|
# Enable docker's healthcheck mechanism. |
|
|
|
# This runs a Python script inside the container every second. The script |
|
|
|
# This runs a Python script inside the container every second. The script |
|
|
|
# pings the http2 server to verify it is ready. The 'health-retries' flag |
|
|
|
# pings the http2 server to verify it is ready. The 'health-retries' flag |
|
|
@ -856,11 +879,11 @@ argp.add_argument('--http2_interop', |
|
|
|
action='store_const', |
|
|
|
action='store_const', |
|
|
|
const=True, |
|
|
|
const=True, |
|
|
|
help='Enable HTTP/2 client edge case testing. (Bad client, good server)') |
|
|
|
help='Enable HTTP/2 client edge case testing. (Bad client, good server)') |
|
|
|
argp.add_argument('--http2_badserver_interop', |
|
|
|
argp.add_argument('--http2_server_interop', |
|
|
|
default=False, |
|
|
|
default=False, |
|
|
|
action='store_const', |
|
|
|
action='store_const', |
|
|
|
const=True, |
|
|
|
const=True, |
|
|
|
help='Enable HTTP/2 server edge case testing. (Good client, bad server)') |
|
|
|
help='Enable HTTP/2 server edge case testing. (Includes positive and negative tests') |
|
|
|
argp.add_argument('--insecure', |
|
|
|
argp.add_argument('--insecure', |
|
|
|
default=False, |
|
|
|
default=False, |
|
|
|
action='store_const', |
|
|
|
action='store_const', |
|
|
@ -895,26 +918,26 @@ languages = set(_LANGUAGES[l] |
|
|
|
six.iterkeys(_LANGUAGES) if x == 'all' else [x] |
|
|
|
six.iterkeys(_LANGUAGES) if x == 'all' else [x] |
|
|
|
for x in args.language)) |
|
|
|
for x in args.language)) |
|
|
|
|
|
|
|
|
|
|
|
languages_http2_badserver_interop = set() |
|
|
|
languages_http2_clients_for_http2_server_interop = set() |
|
|
|
if args.http2_badserver_interop: |
|
|
|
if args.http2_server_interop: |
|
|
|
languages_http2_badserver_interop = set( |
|
|
|
languages_http2_clients_for_http2_server_interop = set( |
|
|
|
_LANGUAGES[l] for l in _LANGUAGES_FOR_HTTP2_BADSERVER_TESTS |
|
|
|
_LANGUAGES[l] for l in _LANGUAGES_WITH_HTTP2_CLIENTS_FOR_HTTP2_SERVER_TEST_CASES |
|
|
|
if 'all' in args.language or l in args.language) |
|
|
|
if 'all' in args.language or l in args.language) |
|
|
|
|
|
|
|
|
|
|
|
http2Interop = Http2Client() if args.http2_interop else None |
|
|
|
http2Interop = Http2Client() if args.http2_interop else None |
|
|
|
http2InteropServer = Http2Server() if args.http2_badserver_interop else None |
|
|
|
http2InteropServer = Http2Server() if args.http2_server_interop else None |
|
|
|
|
|
|
|
|
|
|
|
docker_images={} |
|
|
|
docker_images={} |
|
|
|
if args.use_docker: |
|
|
|
if args.use_docker: |
|
|
|
# languages for which to build docker images |
|
|
|
# languages for which to build docker images |
|
|
|
languages_to_build = set( |
|
|
|
languages_to_build = set( |
|
|
|
_LANGUAGES[k] for k in set([str(l) for l in languages] + [s for s in servers])) |
|
|
|
_LANGUAGES[k] for k in set([str(l) for l in languages] + [s for s in servers])) |
|
|
|
languages_to_build = languages_to_build | languages_http2_badserver_interop |
|
|
|
languages_to_build = languages_to_build | languages_http2_clients_for_http2_server_interop |
|
|
|
|
|
|
|
|
|
|
|
if args.http2_interop: |
|
|
|
if args.http2_interop: |
|
|
|
languages_to_build.add(http2Interop) |
|
|
|
languages_to_build.add(http2Interop) |
|
|
|
|
|
|
|
|
|
|
|
if args.http2_badserver_interop: |
|
|
|
if args.http2_server_interop: |
|
|
|
languages_to_build.add(http2InteropServer) |
|
|
|
languages_to_build.add(http2InteropServer) |
|
|
|
|
|
|
|
|
|
|
|
build_jobs = [] |
|
|
|
build_jobs = [] |
|
|
@ -943,7 +966,6 @@ client_manual_cmd_log = [] if args.manual_run else None |
|
|
|
# Start interop servers. |
|
|
|
# Start interop servers. |
|
|
|
server_jobs = {} |
|
|
|
server_jobs = {} |
|
|
|
server_addresses = {} |
|
|
|
server_addresses = {} |
|
|
|
http2_badserver_ports = () |
|
|
|
|
|
|
|
try: |
|
|
|
try: |
|
|
|
for s in servers: |
|
|
|
for s in servers: |
|
|
|
lang = str(s) |
|
|
|
lang = str(s) |
|
|
@ -957,15 +979,15 @@ try: |
|
|
|
# don't run the server, set server port to a placeholder value |
|
|
|
# don't run the server, set server port to a placeholder value |
|
|
|
server_addresses[lang] = ('localhost', '${SERVER_PORT}') |
|
|
|
server_addresses[lang] = ('localhost', '${SERVER_PORT}') |
|
|
|
|
|
|
|
|
|
|
|
http2_badserver_job = None |
|
|
|
http2_server_job = None |
|
|
|
if args.http2_badserver_interop: |
|
|
|
if args.http2_server_interop: |
|
|
|
# launch a HTTP2 server emulator that creates edge cases |
|
|
|
# launch a HTTP2 server emulator that creates edge cases |
|
|
|
lang = str(http2InteropServer) |
|
|
|
lang = str(http2InteropServer) |
|
|
|
spec = server_jobspec(http2InteropServer, docker_images.get(lang), |
|
|
|
spec = server_jobspec(http2InteropServer, docker_images.get(lang), |
|
|
|
manual_cmd_log=server_manual_cmd_log) |
|
|
|
manual_cmd_log=server_manual_cmd_log) |
|
|
|
if not args.manual_run: |
|
|
|
if not args.manual_run: |
|
|
|
http2_badserver_job = dockerjob.DockerJob(spec) |
|
|
|
http2_server_job = dockerjob.DockerJob(spec) |
|
|
|
server_jobs[lang] = http2_badserver_job |
|
|
|
server_jobs[lang] = http2_server_job |
|
|
|
else: |
|
|
|
else: |
|
|
|
# don't run the server, set server port to a placeholder value |
|
|
|
# don't run the server, set server port to a placeholder value |
|
|
|
server_addresses[lang] = ('localhost', '${SERVER_PORT}') |
|
|
|
server_addresses[lang] = ('localhost', '${SERVER_PORT}') |
|
|
@ -1049,15 +1071,15 @@ try: |
|
|
|
manual_cmd_log=client_manual_cmd_log) |
|
|
|
manual_cmd_log=client_manual_cmd_log) |
|
|
|
jobs.append(test_job) |
|
|
|
jobs.append(test_job) |
|
|
|
|
|
|
|
|
|
|
|
if args.http2_badserver_interop: |
|
|
|
if args.http2_server_interop: |
|
|
|
if not args.manual_run: |
|
|
|
if not args.manual_run: |
|
|
|
http2_badserver_job.wait_for_healthy(timeout_seconds=600) |
|
|
|
http2_server_job.wait_for_healthy(timeout_seconds=600) |
|
|
|
for language in languages_http2_badserver_interop: |
|
|
|
for language in languages_http2_clients_for_http2_server_interop: |
|
|
|
for test_case in _HTTP2_BADSERVER_TEST_CASES: |
|
|
|
for test_case in set(_HTTP2_SERVER_TEST_CASES) - set(_HTTP2_SERVER_TEST_CASES_THAT_USE_GRPC_CLIENTS): |
|
|
|
offset = sorted(_HTTP2_BADSERVER_TEST_CASES).index(test_case) |
|
|
|
offset = sorted(_HTTP2_SERVER_TEST_CASES).index(test_case) |
|
|
|
server_port = _DEFAULT_SERVER_PORT+offset |
|
|
|
server_port = _DEFAULT_SERVER_PORT+offset |
|
|
|
if not args.manual_run: |
|
|
|
if not args.manual_run: |
|
|
|
server_port = http2_badserver_job.mapped_port(server_port) |
|
|
|
server_port = http2_server_job.mapped_port(server_port) |
|
|
|
test_job = cloud_to_cloud_jobspec(language, |
|
|
|
test_job = cloud_to_cloud_jobspec(language, |
|
|
|
test_case, |
|
|
|
test_case, |
|
|
|
str(http2InteropServer), |
|
|
|
str(http2InteropServer), |
|
|
@ -1066,6 +1088,31 @@ try: |
|
|
|
docker_image=docker_images.get(str(language)), |
|
|
|
docker_image=docker_images.get(str(language)), |
|
|
|
manual_cmd_log=client_manual_cmd_log) |
|
|
|
manual_cmd_log=client_manual_cmd_log) |
|
|
|
jobs.append(test_job) |
|
|
|
jobs.append(test_job) |
|
|
|
|
|
|
|
for language in languages: |
|
|
|
|
|
|
|
# HTTP2_SERVER_TEST_CASES_THAT_USE_GRPC_CLIENTS is a subset of |
|
|
|
|
|
|
|
# HTTP_SERVER_TEST_CASES, in which clients use their gRPC interop clients rather |
|
|
|
|
|
|
|
# than specialized http2 clients, reusing existing test implementations. |
|
|
|
|
|
|
|
# For example, in the "data_frame_padding" test, use language's gRPC |
|
|
|
|
|
|
|
# interop clients and make them think that theyre running "large_unary" |
|
|
|
|
|
|
|
# test case. This avoids implementing a new test case in each language. |
|
|
|
|
|
|
|
for test_case in _HTTP2_SERVER_TEST_CASES_THAT_USE_GRPC_CLIENTS: |
|
|
|
|
|
|
|
if test_case not in language.unimplemented_test_cases(): |
|
|
|
|
|
|
|
offset = sorted(_HTTP2_SERVER_TEST_CASES).index(test_case) |
|
|
|
|
|
|
|
server_port = _DEFAULT_SERVER_PORT+offset |
|
|
|
|
|
|
|
if not args.manual_run: |
|
|
|
|
|
|
|
server_port = http2_server_job.mapped_port(server_port) |
|
|
|
|
|
|
|
if not args.insecure: |
|
|
|
|
|
|
|
print(('Creating grpc cient to http2 server test case with insecure connection, even though' |
|
|
|
|
|
|
|
' args.insecure is False. Http2 test server only supports insecure connections.')) |
|
|
|
|
|
|
|
test_job = cloud_to_cloud_jobspec(language, |
|
|
|
|
|
|
|
test_case, |
|
|
|
|
|
|
|
str(http2InteropServer), |
|
|
|
|
|
|
|
'localhost', |
|
|
|
|
|
|
|
server_port, |
|
|
|
|
|
|
|
docker_image=docker_images.get(str(language)), |
|
|
|
|
|
|
|
insecure=True, |
|
|
|
|
|
|
|
manual_cmd_log=client_manual_cmd_log) |
|
|
|
|
|
|
|
jobs.append(test_job) |
|
|
|
|
|
|
|
|
|
|
|
if not jobs: |
|
|
|
if not jobs: |
|
|
|
print('No jobs to run.') |
|
|
|
print('No jobs to run.') |
|
|
@ -1093,16 +1140,17 @@ try: |
|
|
|
if "http2" in name: |
|
|
|
if "http2" in name: |
|
|
|
job[0].http2results = aggregate_http2_results(job[0].message) |
|
|
|
job[0].http2results = aggregate_http2_results(job[0].message) |
|
|
|
|
|
|
|
|
|
|
|
http2_badserver_test_cases = ( |
|
|
|
http2_server_test_cases = ( |
|
|
|
_HTTP2_BADSERVER_TEST_CASES if args.http2_badserver_interop else []) |
|
|
|
_HTTP2_SERVER_TEST_CASES if args.http2_server_interop else []) |
|
|
|
|
|
|
|
|
|
|
|
report_utils.render_interop_html_report( |
|
|
|
report_utils.render_interop_html_report( |
|
|
|
set([str(l) for l in languages]), servers, _TEST_CASES, _AUTH_TEST_CASES, |
|
|
|
set([str(l) for l in languages]), servers, _TEST_CASES, _AUTH_TEST_CASES, |
|
|
|
_HTTP2_TEST_CASES, http2_badserver_test_cases, |
|
|
|
_HTTP2_TEST_CASES, http2_server_test_cases, resultset, num_failures, |
|
|
|
_LANGUAGES_FOR_HTTP2_BADSERVER_TESTS, resultset, num_failures, |
|
|
|
|
|
|
|
args.cloud_to_prod_auth or args.cloud_to_prod, args.prod_servers, |
|
|
|
args.cloud_to_prod_auth or args.cloud_to_prod, args.prod_servers, |
|
|
|
args.http2_interop) |
|
|
|
args.http2_interop) |
|
|
|
|
|
|
|
except Exception as e: |
|
|
|
|
|
|
|
print('exception occurred:') |
|
|
|
|
|
|
|
traceback.print_exc(file=sys.stdout) |
|
|
|
finally: |
|
|
|
finally: |
|
|
|
# Check if servers are still running. |
|
|
|
# Check if servers are still running. |
|
|
|
for server, job in server_jobs.items(): |
|
|
|
for server, job in server_jobs.items(): |
|
|
|