fixes to run_tests.py bq uploading

pull/16461/head
Jan Tattermusch 6 years ago
parent 3c78606fb2
commit af1966aa03
  1. 2
      tools/run_tests/python_utils/upload_test_results.py
  2. 4
      tools/run_tests/run_tests.py

@ -135,7 +135,7 @@ def upload_results_to_bq(resultset, bq_table, extra_fields):
test_results['return_code'] = result.returncode test_results['return_code'] = result.returncode
test_results['test_name'] = shortname test_results['test_name'] = shortname
test_results['timestamp'] = time.strftime('%Y-%m-%d %H:%M:%S') test_results['timestamp'] = time.strftime('%Y-%m-%d %H:%M:%S')
for field_name, field_value in extra_fields: for field_name, field_value in six.iteritems(extra_fields):
test_results[field_name] = field_value test_results[field_name] = field_value
row = big_query_utils.make_row(str(uuid.uuid4()), test_results) row = big_query_utils.make_row(str(uuid.uuid4()), test_results)
bq_rows.append(row) bq_rows.append(row)

@ -1824,10 +1824,10 @@ def _build_and_run(check_cancelled,
upload_extra_fields = { upload_extra_fields = {
'compiler': args.compiler, 'compiler': args.compiler,
'config': args.config, 'config': args.config,
'iomgr_plaform': args.iomgr_platform, 'iomgr_platform': args.iomgr_platform,
'language': args.language[ 'language': args.language[
0], # args.language is a list but will always have one element when uploading to BQ is enabled. 0], # args.language is a list but will always have one element when uploading to BQ is enabled.
'plaform': platform_string() 'platform': platform_string()
} }
upload_results_to_bq(resultset, args.bq_result_table, upload_results_to_bq(resultset, args.bq_result_table,
upload_extra_fields) upload_extra_fields)

Loading…
Cancel
Save