Commit c764d03e authored by Emily Hanley's avatar Emily Hanley Committed by Commit Bot

Adding logging for failed perf dashboard uploads.

NOTRY=true
TBR=ashleymarie@chromium.org

Change-Id: I871b9fff3689356ba636c559ff86a50f8d1552e6
Reviewed-on: https://chromium-review.googlesource.com/948799Reviewed-by: default avatarEmily Hanley <eyaich@chromium.org>
Commit-Queue: Emily Hanley <eyaich@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540818}
parent 01cec59c
...@@ -34,6 +34,7 @@ def _GetDashboardJson(options): ...@@ -34,6 +34,7 @@ def _GetDashboardJson(options):
reference_build = 'reference' in options.name reference_build = 'reference' in options.name
stripped_test_name = options.name.replace('.reference', '') stripped_test_name = options.name.replace('.reference', '')
results = {} results = {}
print 'Opening results file %s' % options.results_file
with open(options.results_file) as f: with open(options.results_file) as f:
results = json.load(f) results = json.load(f)
dashboard_json = {} dashboard_json = {}
......
...@@ -104,6 +104,7 @@ def _process_perf_results(output_json, configuration_name, ...@@ -104,6 +104,7 @@ def _process_perf_results(output_json, configuration_name,
with oauth_api.with_access_token(service_account_file) as oauth_file: with oauth_api.with_access_token(service_account_file) as oauth_file:
for directory in benchmark_directory_list: for directory in benchmark_directory_list:
print 'Uploading perf results from %s benchmark' % directory
_upload_perf_results(join(directory, 'perf_results.json'), _upload_perf_results(join(directory, 'perf_results.json'),
directory, configuration_name, build_properties, directory, configuration_name, build_properties,
oauth_file, tmpfile_dir) oauth_file, tmpfile_dir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment