Add config and script for cloud-to-prod for internal ci.

pull/11752/head
Adele Zhou 8 years ago
parent 7301ab4d73
commit b867c06088
  1. 2
      tools/internal_ci/linux/grpc_interop_tocloud.cfg
  2. 26
      tools/internal_ci/linux/grpc_interop_toprod.cfg
  3. 32
      tools/internal_ci/linux/grpc_interop_toprod.sh
  4. 12
      tools/run_tests/run_interop_tests.py

@ -20,6 +20,6 @@ build_file: "grpc/tools/internal_ci/linux/grpc_interop_tocloud.sh"
timeout_mins: 480
action {
define_artifacts {
regex: "**/report.xml"
regex: "**/sponge_log.xml"
}
}

@ -0,0 +1,26 @@
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Config file for the internal CI (in protobuf text format)
# Location of the continuous shell script in repository.
build_file: "grpc/tools/internal_ci/linux/grpc_interop_toprod.sh"
# grpc_interop tests can take 6+ hours to complete.
timeout_mins: 60
action {
define_artifacts {
regex: "**/sponge_log.xml"
}
}

@ -0,0 +1,32 @@
#!/usr/bin/env bash
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -ex
export LANG=en_US.UTF-8
# Enter the gRPC repo root
cd $(dirname $0)/../../..
source tools/internal_ci/helper_scripts/prepare_build_linux_rc
source tools/internal_ci/helper_scripts/prepare_build_interop_rc
tools/run_tests/run_interop_tests.py \
-l all \
--cloud_to_prod \
--cloud_to_prod_auth \
--prod_servers default gateway_v4 \
--use_docker --internal_ci -t -j 12 $@

@ -64,12 +64,10 @@ _TEST_TIMEOUT = 3*60
_SKIP_DATA_FRAME_PADDING = ['data_frame_padding']
# report suffix is important for reports to get picked up by internal CI
_INTERNAL_CL_REPORT_SUFFIX = 'sponge_log.xml'
_INTERNAL_CL_XML_REPORT = 'sponge_log.xml'
def _report_filename_internal_ci(name):
"""Generates report file name that leads to better presentation by internal CI"""
return '%s/%s' % (name, _INTERNAL_CL_REPORT_SUFFIX)
# report suffix is important for reports to get picked up by internal CI
_XML_REPORT = 'report.xml'
class CXXLanguage:
@ -1215,9 +1213,9 @@ try:
write_cmdlog_maybe(server_manual_cmd_log, 'interop_server_cmds.sh')
write_cmdlog_maybe(client_manual_cmd_log, 'interop_client_cmds.sh')
xml_report_name = 'report.xml'
xml_report_name = _XML_REPORT
if args.internal_ci:
xml_report_name = _report_filename_internal_ci(xml_report_name)
xml_report_name = _INTERNAL_CL_XML_REPORT
report_utils.render_junit_xml_report(resultset, xml_report_name)
for name, job in resultset.items():

Loading…
Cancel
Save