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 from common.skia import global_constants | 5 from common.skia import global_constants |
6 | 6 |
7 | 7 |
8 DEPS = [ | 8 DEPS = [ |
9 'ct', | 9 'ct', |
10 'file', | 10 'file', |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 try: | 172 try: |
173 api.skia_swarming.collect_swarming_task(task) | 173 api.skia_swarming.collect_swarming_task(task) |
174 | 174 |
175 if skia_tool == 'nanobench': | 175 if skia_tool == 'nanobench': |
176 output_dir = api.skia_swarming.tasks_output_dir.join( | 176 output_dir = api.skia_swarming.tasks_output_dir.join( |
177 task.title).join('0') | 177 task.title).join('0') |
178 utc = api.time.utcnow() | 178 utc = api.time.utcnow() |
179 gs_dest_dir = 'ct/%s/%d/%02d/%02d/%02d/' % ( | 179 gs_dest_dir = 'ct/%s/%d/%02d/%02d/%02d/' % ( |
180 ct_page_type, utc.year, utc.month, utc.day, utc.hour) | 180 ct_page_type, utc.year, utc.month, utc.day, utc.hour) |
181 for json_output in api.file.listdir('output dir', output_dir): | 181 for json_output in api.file.listdir('output dir', output_dir): |
182 # TODO(rmistry): Use api.skia.gsutil_upload once the skia recipe | |
183 # is usable without needing to call gen_steps first. | |
184 api.gsutil.upload( | 182 api.gsutil.upload( |
185 name='upload json output', | 183 name='upload json output', |
186 source=output_dir.join(json_output), | 184 source=output_dir.join(json_output), |
187 bucket='skia-perf', | 185 bucket='skia-perf', |
188 dest=gs_dest_dir, | 186 dest=gs_dest_dir, |
189 env={'AWS_CREDENTIAL_FILE': None, 'BOTO_CONFIG': None}, | 187 env={'AWS_CREDENTIAL_FILE': None, 'BOTO_CONFIG': None}, |
190 args=['-R'] | 188 args=['-R'] |
191 ) | 189 ) |
192 | 190 |
193 except api.step.StepFailure as e: | 191 except api.step.StepFailure as e: |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 api.test('CT_DM_10k_SKPs_Trybot') + | 279 api.test('CT_DM_10k_SKPs_Trybot') + |
282 api.properties( | 280 api.properties( |
283 buildername= | 281 buildername= |
284 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_DM_10k_SKPs-Trybot', | 282 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_DM_10k_SKPs-Trybot', |
285 ct_num_slaves=ct_num_slaves, | 283 ct_num_slaves=ct_num_slaves, |
286 rietveld='codereview.chromium.org', | 284 rietveld='codereview.chromium.org', |
287 issue=1499623002, | 285 issue=1499623002, |
288 patchset=1, | 286 patchset=1, |
289 ) | 287 ) |
290 ) | 288 ) |
OLD | NEW |