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

Side by Side Diff: scripts/slave/recipes/skia/ct_skps.py

Issue 1862713002: Convert Coverage flavor and bot to Swarming (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build@master
Patch Set: Rename Created 4 years, 8 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 | « scripts/slave/recipe_modules/skia/fake_specs.py ('k') | scripts/slave/recipes/skia/skia.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 )
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/skia/fake_specs.py ('k') | scripts/slave/recipes/skia/skia.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698