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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
672 cipd_packages = [] | 672 cipd_packages = [] |
673 | 673 |
674 do_test_steps = ( | 674 do_test_steps = ( |
675 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_TEST) | 675 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_TEST) |
676 do_perf_steps = ( | 676 do_perf_steps = ( |
677 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_PERF) | 677 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_PERF) |
678 | 678 |
679 if not (do_test_steps or do_perf_steps): | 679 if not (do_test_steps or do_perf_steps): |
680 return | 680 return |
681 | 681 |
682 # SKPs, SkImages. | 682 # SKPs, SkImages, SVGs. |
683 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skp')) | 683 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skp')) |
684 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skimage')) | 684 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skimage')) |
685 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'svg')) | |
borenet
2016/08/11 16:20:53
Limit this to only the bots which will use the SVG
rmistry
2016/08/11 16:41:48
Done.
| |
685 | 686 |
686 # Trigger test and perf tasks. | 687 # Trigger test and perf tasks. |
687 test_task = None | 688 test_task = None |
688 perf_task = None | 689 perf_task = None |
689 if do_test_steps: | 690 if do_test_steps: |
690 test_task = test_steps_trigger(api, builder_cfg, got_revision, | 691 test_task = test_steps_trigger(api, builder_cfg, got_revision, |
691 infrabots_dir, extra_hashes, cipd_packages) | 692 infrabots_dir, extra_hashes, cipd_packages) |
692 if do_perf_steps: | 693 if do_perf_steps: |
693 perf_task = perf_steps_trigger(api, builder_cfg, got_revision, | 694 perf_task = perf_steps_trigger(api, builder_cfg, got_revision, |
694 infrabots_dir, extra_hashes, cipd_packages) | 695 infrabots_dir, extra_hashes, cipd_packages) |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
742 stdout=api.raw_io.output('def456 XYZ.isolated')) | 743 stdout=api.raw_io.output('def456 XYZ.isolated')) |
743 if 'Win' in builder: | 744 if 'Win' in builder: |
744 paths.append(api.path['slave_build'].join( | 745 paths.append(api.path['slave_build'].join( |
745 'skia', 'infra', 'bots', 'assets', 'win_toolchain', 'VERSION')) | 746 'skia', 'infra', 'bots', 'assets', 'win_toolchain', 'VERSION')) |
746 paths.append(api.path['slave_build'].join( | 747 paths.append(api.path['slave_build'].join( |
747 'skia', 'infra', 'bots', 'assets', 'win_vulkan_sdk', 'VERSION')) | 748 'skia', 'infra', 'bots', 'assets', 'win_vulkan_sdk', 'VERSION')) |
748 paths.append(api.path['slave_build'].join( | 749 paths.append(api.path['slave_build'].join( |
749 'skia', 'infra', 'bots', 'assets', 'skimage', 'VERSION')) | 750 'skia', 'infra', 'bots', 'assets', 'skimage', 'VERSION')) |
750 paths.append(api.path['slave_build'].join( | 751 paths.append(api.path['slave_build'].join( |
751 'skia', 'infra', 'bots', 'assets', 'skp', 'VERSION')) | 752 'skia', 'infra', 'bots', 'assets', 'skp', 'VERSION')) |
753 paths.append(api.path['slave_build'].join( | |
754 'skia', 'infra', 'bots', 'assets', 'svg', 'VERSION')) | |
752 | 755 |
753 test += api.path.exists(*paths) | 756 test += api.path.exists(*paths) |
754 | 757 |
755 return test | 758 return test |
756 | 759 |
757 | 760 |
758 def GenTests(api): | 761 def GenTests(api): |
759 for mastername, slaves in TEST_BUILDERS.iteritems(): | 762 for mastername, slaves in TEST_BUILDERS.iteritems(): |
760 for slavename, builders_by_slave in slaves.iteritems(): | 763 for slavename, builders_by_slave in slaves.iteritems(): |
761 for builder in builders_by_slave: | 764 for builder in builders_by_slave: |
762 yield test_for_bot(api, builder, mastername, slavename) | 765 yield test_for_bot(api, builder, mastername, slavename) |
OLD | NEW |