Merge pull request #15345 from matt-kwong/rbe-upload

Handle timeouts when uploading ResultStore results
pull/12360/head
Matt Kwong 7 years ago committed by GitHub
commit 77461d4597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      tools/run_tests/python_utils/upload_rbe_results.py

@ -146,7 +146,15 @@ if __name__ == "__main__":
test_cases = [{
'testCase': {
'caseName': str(action['id']['actionId']),
'result': str(action['statusAttributes']['status'])
}
}]
# Test timeouts have a different dictionary structure compared to pass and
# fail results.
elif action['statusAttributes']['status'] == 'TIMED_OUT':
test_cases = [{
'testCase': {
'caseName': str(action['id']['actionId']),
'timedOut': True
}
}]
else:
@ -155,6 +163,8 @@ if __name__ == "__main__":
for test_case in test_cases:
if 'errors' in test_case['testCase']:
result = 'FAILED'
elif 'timedOut' in test_case['testCase']:
result = 'TIMEOUT'
else:
result = 'PASSED'
bq_rows.append({

Loading…
Cancel
Save