Merge pull request #18068 from billfeng327/hotfix/upload-to-resultstore

Hotfix/upload to resultstore
pull/11795/head
Jan Tattermusch 6 years ago committed by GitHub
commit 04642dc7ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      tools/gcp/utils/big_query_utils.py
  2. 4
      tools/run_tests/python_utils/upload_rbe_results.py

@ -178,6 +178,7 @@ def insert_rows(big_query, project_id, dataset_id, table_id, rows_list):
is_success = False
except HttpError as http_error:
print('Error inserting rows to the table %s' % table_id)
print('Error message: %s' % http_error)
is_success = False
return is_success

@ -122,7 +122,7 @@ def _get_resultstore_data(api_key, invocation_id):
while True:
req = urllib2.Request(
url=
'https://resultstore.googleapis.com/v2/invocations/%s/targets/-/configuredTargets/-/actions?key=%s&pageToken=%s&fields=next_page_token,actions.id,actions.status_attributes'
'https://resultstore.googleapis.com/v2/invocations/%s/targets/-/configuredTargets/-/actions?key=%s&pageToken=%s&fields=next_page_token,actions.id,actions.status_attributes,actions.timing,actions.test_action'
% (invocation_id, api_key, page_token),
headers={
'Content-Type': 'application/json'
@ -185,6 +185,8 @@ if __name__ == "__main__":
'startTime':
resultstore_actions[index - 1]['timing']['startTime']
}
elif 'testSuite' not in action['testAction']:
continue
else:
test_cases = action['testAction']['testSuite']['tests'][0][
'testSuite']['tests']

Loading…
Cancel
Save