OLD | NEW |
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 Loading... |
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', 'gsutil.py') | 484 'skia', 'infra', 'bots', '.recipe_deps', 'depot_tools', 'third_party', |
| 485 'gsutil', 'gsutil') |
485 upload_args = [api.properties['buildername'], api.properties['buildnumber'], | 486 upload_args = [api.properties['buildername'], api.properties['buildnumber'], |
486 perf_data_dir, got_revision, gsutil_path] | 487 perf_data_dir, got_revision, gsutil_path] |
487 if is_trybot: | 488 if is_trybot: |
488 upload_args.append(get_issue_num(api)) | 489 upload_args.append(get_issue_num(api)) |
489 api.python( | 490 api.python( |
490 'Upload perf results', | 491 'Upload perf results', |
491 script=api.core.resource('upload_bench_results.py'), | 492 script=api.core.resource('upload_bench_results.py'), |
492 args=upload_args, | 493 args=upload_args, |
493 cwd=api.path['checkout'], | 494 cwd=api.path['checkout'], |
494 infra_step=True) | 495 infra_step=True) |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 mastername='client.skia', | 804 mastername='client.skia', |
804 slavename='skiabot-linux-swarm-000', | 805 slavename='skiabot-linux-swarm-000', |
805 buildnumber=5, | 806 buildnumber=5, |
806 path_config='kitchen', | 807 path_config='kitchen', |
807 revision='abc123', | 808 revision='abc123', |
808 **gerrit_kwargs) + | 809 **gerrit_kwargs) + |
809 api.step_data( | 810 api.step_data( |
810 'upload new .isolated file for test_skia', | 811 'upload new .isolated file for test_skia', |
811 stdout=api.raw_io.output('def456 XYZ.isolated')) | 812 stdout=api.raw_io.output('def456 XYZ.isolated')) |
812 ) | 813 ) |
OLD | NEW |