Merge pull request #17117 from jtattermusch/interop_tests_deprecate_internalci

run_interop_tests.py cleanup (deprecate --internal_ci cmdline arg)
pull/17123/head
Jan Tattermusch 6 years ago committed by GitHub
commit 2fc2d7fc40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      tools/run_tests/run_interop_tests.py

@ -71,11 +71,9 @@ _TEST_TIMEOUT = 3 * 60
# see https://github.com/grpc/grpc/issues/9779 # see https://github.com/grpc/grpc/issues/9779
_SKIP_DATA_FRAME_PADDING = ['data_frame_padding'] _SKIP_DATA_FRAME_PADDING = ['data_frame_padding']
# report suffix is important for reports to get picked up by internal CI # report suffix "sponge_log.xml" is important for reports to get picked up by internal CI
_INTERNAL_CL_XML_REPORT = 'sponge_log.xml' _DOCKER_BUILD_XML_REPORT = 'interop_docker_build/sponge_log.xml'
_TESTS_XML_REPORT = 'interop_test/sponge_log.xml'
# report suffix is important for reports to get picked up by internal CI
_XML_REPORT = 'report.xml'
class CXXLanguage: class CXXLanguage:
@ -1163,8 +1161,9 @@ argp.add_argument(
default=False, default=False,
action='store_const', action='store_const',
const=True, const=True,
help=('Put reports into subdirectories to improve ' help=(
'presentation of results by Internal CI.')) '(Deprecated, has no effect) Put reports into subdirectories to improve '
'presentation of results by Internal CI.'))
argp.add_argument( argp.add_argument(
'--bq_result_table', '--bq_result_table',
default='', default='',
@ -1253,8 +1252,12 @@ if args.use_docker:
if args.verbose: if args.verbose:
print('Jobs to run: \n%s\n' % '\n'.join(str(j) for j in build_jobs)) print('Jobs to run: \n%s\n' % '\n'.join(str(j) for j in build_jobs))
num_failures, _ = jobset.run( num_failures, build_resultset = jobset.run(
build_jobs, newline_on_success=True, maxjobs=args.jobs) build_jobs, newline_on_success=True, maxjobs=args.jobs)
report_utils.render_junit_xml_report(build_resultset,
_DOCKER_BUILD_XML_REPORT)
if num_failures == 0: if num_failures == 0:
jobset.message( jobset.message(
'SUCCESS', 'SUCCESS',
@ -1519,10 +1522,7 @@ try:
write_cmdlog_maybe(server_manual_cmd_log, 'interop_server_cmds.sh') write_cmdlog_maybe(server_manual_cmd_log, 'interop_server_cmds.sh')
write_cmdlog_maybe(client_manual_cmd_log, 'interop_client_cmds.sh') write_cmdlog_maybe(client_manual_cmd_log, 'interop_client_cmds.sh')
xml_report_name = _XML_REPORT report_utils.render_junit_xml_report(resultset, _TESTS_XML_REPORT)
if args.internal_ci:
xml_report_name = _INTERNAL_CL_XML_REPORT
report_utils.render_junit_xml_report(resultset, xml_report_name)
for name, job in resultset.items(): for name, job in resultset.items():
if "http2" in name: if "http2" in name:

Loading…
Cancel
Save