record results to bq

pull/12966/head
Adele Zhou 7 years ago
parent 5b87a52b43
commit 10ab806d28
  1. 2
      tools/internal_ci/linux/grpc_interop_matrix.sh
  2. 9
      tools/interop_matrix/run_interop_matrix_tests.py

@ -22,4 +22,4 @@ cd $(dirname $0)/../../..
source tools/internal_ci/helper_scripts/prepare_build_linux_rc source tools/internal_ci/helper_scripts/prepare_build_linux_rc
tools/interop_matrix/run_interop_matrix_tests.py --language=all --release=all --report_file=sponge_log.xml $@ tools/interop_matrix/run_interop_matrix_tests.py --language=all --release=all --report_file=sponge_log.xml --bq_result_table interop_results $@

@ -36,6 +36,7 @@ sys.path.append(python_util_dir)
import dockerjob import dockerjob
import jobset import jobset
import report_utils import report_utils
import upload_test_results
_LANGUAGES = client_matrix.LANG_RUNTIME_MATRIX.keys() _LANGUAGES = client_matrix.LANG_RUNTIME_MATRIX.keys()
# All gRPC release tags, flattened, deduped and sorted. # All gRPC release tags, flattened, deduped and sorted.
@ -74,6 +75,11 @@ argp.add_argument('--allow_flakes',
const=True, const=True,
help=('Allow flaky tests to show as passing (re-runs failed ' help=('Allow flaky tests to show as passing (re-runs failed '
'tests up to five times)')) 'tests up to five times)'))
argp.add_argument('--bq_result_table',
default='',
type=str,
nargs='?',
help='Upload test results to a specified BQ table.')
args = argp.parse_args() args = argp.parse_args()
@ -168,6 +174,9 @@ def run_tests_for_lang(lang, runtime, images):
newline_on_success=True, newline_on_success=True,
add_env={'docker_image':image}, add_env={'docker_image':image},
maxjobs=args.jobs) maxjobs=args.jobs)
if args.bq_result_table and resultset:
upload_test_results.upload_interop_results_to_bq(
resultset, args.bq_result_table, args)
if num_failures: if num_failures:
jobset.message('FAILED', 'Some tests failed', do_newline=True) jobset.message('FAILED', 'Some tests failed', do_newline=True)
total_num_failures += num_failures total_num_failures += num_failures

Loading…
Cancel
Save