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

Side by Side Diff: infra/bots/recipes/swarm_trigger.py

Issue 2298293002: Skia recipe: Use [depot_tools]/gsutil.py instead of [depot_tools]/third_party/gsutil/gsutil (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 5
6 # Recipe module for Skia Swarming trigger. 6 # Recipe module for Skia Swarming trigger.
7 7
8 8
9 import os 9 import os
10 import json 10 import json
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 api.file.makedirs('perf_dir', perf_data_dir, infra_step=True) 474 api.file.makedirs('perf_dir', perf_data_dir, infra_step=True)
475 src_results_file = task.task_output_dir.join( 475 src_results_file = task.task_output_dir.join(
476 '0', 'perfdata', api.properties['buildername'], 'data', 476 '0', 'perfdata', api.properties['buildername'], 'data',
477 'nanobench_%s.json' % got_revision) 477 'nanobench_%s.json' % got_revision)
478 dst_results_file = perf_data_dir.join( 478 dst_results_file = perf_data_dir.join(
479 'nanobench_%s_%s.json' % (got_revision, git_timestamp)) 479 'nanobench_%s_%s.json' % (got_revision, git_timestamp))
480 api.file.copy('perf_results', src_results_file, dst_results_file, 480 api.file.copy('perf_results', src_results_file, dst_results_file,
481 infra_step=True) 481 infra_step=True)
482 482
483 gsutil_path = api.path['slave_build'].join( 483 gsutil_path = api.path['slave_build'].join(
484 'skia', 'infra', 'bots', '.recipe_deps', 'depot_tools', 'third_party', 484 'skia', 'infra', 'bots', '.recipe_deps', 'depot_tools', 'gsutil.py')
485 'gsutil', 'gsutil')
486 upload_args = [api.properties['buildername'], api.properties['buildnumber'], 485 upload_args = [api.properties['buildername'], api.properties['buildnumber'],
487 perf_data_dir, got_revision, gsutil_path] 486 perf_data_dir, got_revision, gsutil_path]
488 if is_trybot: 487 if is_trybot:
489 upload_args.append(get_issue_num(api)) 488 upload_args.append(get_issue_num(api))
490 api.python( 489 api.python(
491 'Upload perf results', 490 'Upload perf results',
492 script=api.core.resource('upload_bench_results.py'), 491 script=api.core.resource('upload_bench_results.py'),
493 args=upload_args, 492 args=upload_args,
494 cwd=api.path['checkout'], 493 cwd=api.path['checkout'],
495 infra_step=True) 494 infra_step=True)
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 mastername='client.skia', 803 mastername='client.skia',
805 slavename='skiabot-linux-swarm-000', 804 slavename='skiabot-linux-swarm-000',
806 buildnumber=5, 805 buildnumber=5,
807 path_config='kitchen', 806 path_config='kitchen',
808 revision='abc123', 807 revision='abc123',
809 **gerrit_kwargs) + 808 **gerrit_kwargs) +
810 api.step_data( 809 api.step_data(
811 'upload new .isolated file for test_skia', 810 'upload new .isolated file for test_skia',
812 stdout=api.raw_io.output('def456 XYZ.isolated')) 811 stdout=api.raw_io.output('def456 XYZ.isolated'))
813 ) 812 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698