Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: infra/bots/recipe_modules/skia/resources/upload_bench_results.py

Issue 2187903003: upload_bench_results - fix GS upload path. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ Upload benchmark performance data results. """ 6 """ Upload benchmark performance data results. """
7 7
8 import gzip 8 import gzip
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 RE_FILE_SEARCH = re.compile( 55 RE_FILE_SEARCH = re.compile(
56 'nanobench_({})_[0-9]+\.json'.format(got_revision)) 56 'nanobench_({})_[0-9]+\.json'.format(got_revision))
57 nanobench_name = None 57 nanobench_name = None
58 58
59 for file_name in file_list: 59 for file_name in file_list:
60 if RE_FILE_SEARCH.search(file_name): 60 if RE_FILE_SEARCH.search(file_name):
61 nanobench_name = file_name 61 nanobench_name = file_name
62 break 62 break
63 63
64 if nanobench_name: 64 if nanobench_name:
65 dest_gsbase = 'gs://chromium-skia-gm/' 65 dest_gsbase = 'gs://chromium-skia-gm'
66 nanobench_json_file = os.path.join(perf_data_dir, 66 nanobench_json_file = os.path.join(perf_data_dir,
67 nanobench_name) 67 nanobench_name)
68 _UploadJSONResults(builder_name, build_number, dest_gsbase, 'nano-json-v1', 68 _UploadJSONResults(builder_name, build_number, dest_gsbase, 'nano-json-v1',
69 nanobench_json_file, gsutil_path=gsutil_path, 69 nanobench_json_file, gsutil_path=gsutil_path,
70 issue_number=issue_number) 70 issue_number=issue_number)
71 71
72 72
73 if __name__ == '__main__': 73 if __name__ == '__main__':
74 main(*sys.argv[1:]) 74 main(*sys.argv[1:])
75 75
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698