Skip to content

Commit

Permalink
Merge pull request grpc#18903 from jtattermusch/bazel_rbe_biquery_upl…
Browse files Browse the repository at this point in the history
…oading

Fix uploading bazel RBE results to bigquery
  • Loading branch information
jtattermusch committed Apr 29, 2019
2 parents 7820b44 + 952ddb6 commit bccbbdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/run_tests/python_utils/upload_rbe_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def _get_resultstore_data(api_key, invocation_id):
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.
Expand Down Expand Up @@ -187,6 +189,8 @@ def _get_resultstore_data(api_key, invocation_id):
}
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']
Expand Down

0 comments on commit bccbbdd

Please sign in to comment.