Skip to content
Snippets Groups Projects
Unverified Commit bccbbddf authored by Jan Tattermusch's avatar Jan Tattermusch Committed by GitHub
Browse files

Merge pull request #18903 from jtattermusch/bazel_rbe_biquery_uploading

Fix uploading bazel RBE results to bigquery
parents 7820b44c 952ddb6a
No related branches found
No related tags found
No related merge requests found
...@@ -146,6 +146,8 @@ if __name__ == "__main__": ...@@ -146,6 +146,8 @@ if __name__ == "__main__":
invocation_id = args.invocation_id or _get_invocation_id() invocation_id = args.invocation_id or _get_invocation_id()
resultstore_actions = _get_resultstore_data(api_key, 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 = [] bq_rows = []
for index, action in enumerate(resultstore_actions): for index, action in enumerate(resultstore_actions):
# Filter out non-test related data, such as build results. # Filter out non-test related data, such as build results.
...@@ -187,6 +189,8 @@ if __name__ == "__main__": ...@@ -187,6 +189,8 @@ if __name__ == "__main__":
} }
elif 'testSuite' not in action['testAction']: elif 'testSuite' not in action['testAction']:
continue continue
elif 'tests' not in action['testAction']['testSuite']:
continue
else: else:
test_cases = action['testAction']['testSuite']['tests'][0][ test_cases = action['testAction']['testSuite']['tests'][0][
'testSuite']['tests'] 'testSuite']['tests']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment