From 952ddb6a2bceed3f21aa1ef18e42aa24b7fa538d Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Mon, 29 Apr 2019 12:06:34 -0400 Subject: [PATCH] fix uploading bazel RBE results to bigquery --- tools/run_tests/python_utils/upload_rbe_results.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/run_tests/python_utils/upload_rbe_results.py b/tools/run_tests/python_utils/upload_rbe_results.py index bda567e977e..e6504799d66 100755 --- a/tools/run_tests/python_utils/upload_rbe_results.py +++ b/tools/run_tests/python_utils/upload_rbe_results.py @@ -146,6 +146,8 @@ if __name__ == "__main__": invocation_id = args.invocation_id or _get_invocation_id() resultstore_actions = _get_resultstore_data(api_key, invocation_id) + # google.devtools.resultstore.v2.Action schema: + # https://github.com/googleapis/googleapis/blob/master/google/devtools/resultstore/v2/action.proto bq_rows = [] for index, action in enumerate(resultstore_actions): # Filter out non-test related data, such as build results. @@ -187,6 +189,8 @@ if __name__ == "__main__": } elif 'testSuite' not in action['testAction']: continue + elif 'tests' not in action['testAction']['testSuite']: + continue else: test_cases = action['testAction']['testSuite']['tests'][0][ 'testSuite']['tests']