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

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

Issue 2284973002: Skia recipe: Use [depot_tools]/gsutil.py instead of [depot_tools]/third_party/gsutil/gsutil (Closed)
Patch Set: Rebase 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 json 9 import json
10 10
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 api.file.rmtree('perf_dir', perf_data_dir, infra_step=True) 450 api.file.rmtree('perf_dir', perf_data_dir, infra_step=True)
451 api.file.makedirs('perf_dir', perf_data_dir, infra_step=True) 451 api.file.makedirs('perf_dir', perf_data_dir, infra_step=True)
452 src_results_file = task.task_output_dir.join( 452 src_results_file = task.task_output_dir.join(
453 '0', 'perfdata', api.properties['buildername'], 'data', 453 '0', 'perfdata', api.properties['buildername'], 'data',
454 'nanobench_%s.json' % got_revision) 454 'nanobench_%s.json' % got_revision)
455 dst_results_file = perf_data_dir.join( 455 dst_results_file = perf_data_dir.join(
456 'nanobench_%s_%s.json' % (got_revision, git_timestamp)) 456 'nanobench_%s_%s.json' % (got_revision, git_timestamp))
457 api.file.copy('perf_results', src_results_file, dst_results_file, 457 api.file.copy('perf_results', src_results_file, dst_results_file,
458 infra_step=True) 458 infra_step=True)
459 459
460 gsutil_path = api.path['depot_tools'].join( 460 gsutil_path = api.path['depot_tools'].join('gsutil.py')
461 'third_party', 'gsutil', 'gsutil')
462 upload_args = [api.properties['buildername'], api.properties['buildnumber'], 461 upload_args = [api.properties['buildername'], api.properties['buildnumber'],
463 perf_data_dir, got_revision, gsutil_path] 462 perf_data_dir, got_revision, gsutil_path]
464 if is_trybot: 463 if is_trybot:
465 upload_args.append(api.properties['issue']) 464 upload_args.append(api.properties['issue'])
466 api.python( 465 api.python(
467 'Upload perf results', 466 'Upload perf results',
468 script=api.skia.resource('upload_bench_results.py'), 467 script=api.skia.resource('upload_bench_results.py'),
469 args=upload_args, 468 args=upload_args,
470 cwd=api.path['checkout'], 469 cwd=api.path['checkout'],
471 env=api.skia.gsutil_env('chromium-skia-gm.boto'), 470 env=api.skia.gsutil_env('chromium-skia-gm.boto'),
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 # into the nanobench_${git_hash}_${timestamp}.json file 557 # into the nanobench_${git_hash}_${timestamp}.json file
559 # upload_bench_results.py expects. 558 # upload_bench_results.py expects.
560 src_nano_file = results_dir.join('nanobench_%s.json' % got_revision) 559 src_nano_file = results_dir.join('nanobench_%s.json' % got_revision)
561 dst_nano_file = results_dir.join( 560 dst_nano_file = results_dir.join(
562 'nanobench_%s_%s.json' % (got_revision, git_timestamp)) 561 'nanobench_%s_%s.json' % (got_revision, git_timestamp))
563 api.file.copy('nanobench JSON', src_nano_file, dst_nano_file, 562 api.file.copy('nanobench JSON', src_nano_file, dst_nano_file,
564 infra_step=True) 563 infra_step=True)
565 api.file.remove('old nanobench JSON', src_nano_file) 564 api.file.remove('old nanobench JSON', src_nano_file)
566 565
567 # Upload nanobench JSON data. 566 # Upload nanobench JSON data.
568 gsutil_path = api.path['depot_tools'].join( 567 gsutil_path = api.path['depot_tools'].join('gsutil.py')
569 'third_party', 'gsutil', 'gsutil')
570 upload_args = [api.properties['buildername'], api.properties['buildnumber'], 568 upload_args = [api.properties['buildername'], api.properties['buildnumber'],
571 results_dir, got_revision, gsutil_path] 569 results_dir, got_revision, gsutil_path]
572 if is_trybot: 570 if is_trybot:
573 upload_args.append(api.properties['issue']) 571 upload_args.append(api.properties['issue'])
574 api.python( 572 api.python(
575 'upload nanobench coverage results', 573 'upload nanobench coverage results',
576 script=api.skia.resource('upload_bench_results.py'), 574 script=api.skia.resource('upload_bench_results.py'),
577 args=upload_args, 575 args=upload_args,
578 cwd=api.path['checkout'], 576 cwd=api.path['checkout'],
579 env=api.skia.gsutil_env('chromium-skia-gm.boto'), 577 env=api.skia.gsutil_env('chromium-skia-gm.boto'),
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 mastername=master, 889 mastername=master,
892 slavename=slave, 890 slavename=slave,
893 buildnumber=5, 891 buildnumber=5,
894 path_config='kitchen', 892 path_config='kitchen',
895 revision='abc123', 893 revision='abc123',
896 **gerrit_kwargs) + 894 **gerrit_kwargs) +
897 api.step_data('upload new .isolated file for compile_skia', 895 api.step_data('upload new .isolated file for compile_skia',
898 stdout=api.raw_io.output('def456 XYZ.isolated')) 896 stdout=api.raw_io.output('def456 XYZ.isolated'))
899 ) 897 )
900 yield test 898 yield test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698