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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 api.file.makedirs('perf_dir', perf_data_dir, infra_step=True) | 482 api.file.makedirs('perf_dir', perf_data_dir, infra_step=True) |
483 src_results_file = task.task_output_dir.join( | 483 src_results_file = task.task_output_dir.join( |
484 '0', 'perfdata', api.properties['buildername'], 'data', | 484 '0', 'perfdata', api.properties['buildername'], 'data', |
485 'nanobench_%s.json' % got_revision) | 485 'nanobench_%s.json' % got_revision) |
486 dst_results_file = perf_data_dir.join( | 486 dst_results_file = perf_data_dir.join( |
487 'nanobench_%s_%s.json' % (got_revision, git_timestamp)) | 487 'nanobench_%s_%s.json' % (got_revision, git_timestamp)) |
488 api.file.copy('perf_results', src_results_file, dst_results_file, | 488 api.file.copy('perf_results', src_results_file, dst_results_file, |
489 infra_step=True) | 489 infra_step=True) |
490 | 490 |
491 gsutil_path = api.path['slave_build'].join( | 491 gsutil_path = api.path['slave_build'].join( |
492 'skia', 'infra', 'bots', '.recipe_deps', 'depot_tools', 'third_party', | 492 'skia', 'infra', 'bots', '.recipe_deps', 'depot_tools', 'gsutil.py') |
493 'gsutil', 'gsutil') | |
494 upload_args = [api.properties['buildername'], api.properties['buildnumber'], | 493 upload_args = [api.properties['buildername'], api.properties['buildnumber'], |
495 perf_data_dir, got_revision, gsutil_path] | 494 perf_data_dir, got_revision, gsutil_path] |
496 if is_trybot: | 495 if is_trybot: |
497 upload_args.append(get_issue_num(api)) | 496 upload_args.append(get_issue_num(api)) |
498 api.python( | 497 api.python( |
499 'Upload perf results', | 498 'Upload perf results', |
500 script=api.core.resource('upload_bench_results.py'), | 499 script=api.core.resource('upload_bench_results.py'), |
501 args=upload_args, | 500 args=upload_args, |
502 cwd=api.path['checkout'], | 501 cwd=api.path['checkout'], |
503 infra_step=True) | 502 infra_step=True) |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 mastername='client.skia', | 816 mastername='client.skia', |
818 slavename='skiabot-linux-swarm-000', | 817 slavename='skiabot-linux-swarm-000', |
819 buildnumber=5, | 818 buildnumber=5, |
820 path_config='kitchen', | 819 path_config='kitchen', |
821 revision='abc123', | 820 revision='abc123', |
822 **gerrit_kwargs) + | 821 **gerrit_kwargs) + |
823 api.step_data( | 822 api.step_data( |
824 'upload new .isolated file for test_skia', | 823 'upload new .isolated file for test_skia', |
825 stdout=api.raw_io.output('def456 XYZ.isolated')) | 824 stdout=api.raw_io.output('def456 XYZ.isolated')) |
826 ) | 825 ) |
OLD | NEW |