OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 DEPS = [ | 5 DEPS = [ |
6 'archive', | 6 'archive', |
7 'bot_update', | 7 'bot_update', |
8 'chromium', | 8 'chromium', |
| 9 'file', |
9 'gsutil', | 10 'gsutil', |
10 'path', | 11 'path', |
11 'platform', | 12 'platform', |
12 'properties', | 13 'properties', |
13 'python', | 14 'python', |
14 'step', | 15 'step', |
15 'zip', | 16 'zip', |
16 ] | 17 ] |
17 | 18 |
18 | 19 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 # Zip the profile. | 83 # Zip the profile. |
83 zipped_profile_path = zipped_profile_directory.join('large_profile.zip') | 84 zipped_profile_path = zipped_profile_directory.join('large_profile.zip') |
84 api.zip.directory( | 85 api.zip.directory( |
85 'Zip Large Profile', profile_directory, zipped_profile_path) | 86 'Zip Large Profile', profile_directory, zipped_profile_path) |
86 | 87 |
87 # Upload the result to cloud storage. | 88 # Upload the result to cloud storage. |
88 bucket = 'chrome-partner-telemetry' | 89 bucket = 'chrome-partner-telemetry' |
89 cloud_file = _CloudStoragePath(api) | 90 cloud_file = _CloudStoragePath(api) |
90 api.gsutil.upload(str(zipped_profile_path), bucket, cloud_file) | 91 api.gsutil.upload(str(zipped_profile_path), bucket, cloud_file) |
91 finally: | 92 finally: |
92 api.path.rmtree('Remove profile directory.', profile_directory) | 93 api.file.rmtree('Remove profile directory.', profile_directory) |
93 api.path.rmtree('Remove zipped profile directory.', | 94 api.file.rmtree('Remove zipped profile directory.', |
94 zipped_profile_directory) | 95 zipped_profile_directory) |
95 | 96 |
96 | 97 |
97 def GenTests(api): | 98 def GenTests(api): |
98 for platform in ('linux', 'win', 'mac'): | 99 for platform in ('linux', 'win', 'mac'): |
99 buildername = platform.title() + ' Builder' | 100 buildername = platform.title() + ' Builder' |
100 yield ( | 101 yield ( |
101 api.test(platform) + | 102 api.test(platform) + |
102 api.properties.generic( | 103 api.properties.generic( |
103 mastername='master.chromium.perf.fyi', | 104 mastername='master.chromium.perf.fyi', |
104 buildername=buildername, | 105 buildername=buildername, |
105 parent_got_revision='5d6dd8eaee742daf7f298f533fb0827dc4a693fd') + | 106 parent_got_revision='5d6dd8eaee742daf7f298f533fb0827dc4a693fd') + |
106 api.platform.name(platform) | 107 api.platform.name(platform) |
107 ) | 108 ) |
OLD | NEW |