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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 'Housekeeper-Nightly-RecreateSKPs_Canary', | 48 'Housekeeper-Nightly-RecreateSKPs_Canary', |
49 'Infra-PerCommit', | 49 'Infra-PerCommit', |
50 'Perf-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Trybot', | 50 'Perf-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Trybot', |
51 'Perf-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Release-CT_BENCH_1k_SKPs', | 51 'Perf-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Release-CT_BENCH_1k_SKPs', |
52 'Test-Android-GCC-Nexus7v2-GPU-Tegra3-Arm7-Release', | 52 'Test-Android-GCC-Nexus7v2-GPU-Tegra3-Arm7-Release', |
53 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug-Vulkan', | 53 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug-Vulkan', |
54 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release', | 54 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release', |
55 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Release', | 55 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Release', |
56 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', | 56 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', |
57 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', | 57 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', |
| 58 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', |
58 'Test-Win8-MSVC-ShuttleA-GPU-HD7770-x86_64-Release', | 59 'Test-Win8-MSVC-ShuttleA-GPU-HD7770-x86_64-Release', |
59 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release', | 60 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release', |
60 ], | 61 ], |
61 }, | 62 }, |
62 } | 63 } |
63 | 64 |
64 | 65 |
65 def derive_compile_bot_name(api): | 66 def derive_compile_bot_name(api): |
66 builder_name = api.properties['buildername'] | 67 builder_name = api.properties['buildername'] |
67 builder_cfg = api.builder_name_schema.DictForBuilderName(builder_name) | 68 builder_cfg = api.builder_name_schema.DictForBuilderName(builder_name) |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 cipd_packages = [] | 673 cipd_packages = [] |
673 | 674 |
674 do_test_steps = ( | 675 do_test_steps = ( |
675 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_TEST) | 676 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_TEST) |
676 do_perf_steps = ( | 677 do_perf_steps = ( |
677 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_PERF) | 678 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_PERF) |
678 | 679 |
679 if not (do_test_steps or do_perf_steps): | 680 if not (do_test_steps or do_perf_steps): |
680 return | 681 return |
681 | 682 |
682 # SKPs, SkImages. | 683 # SKPs, SkImages, SVGs. |
683 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skp')) | 684 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skp')) |
684 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skimage')) | 685 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skimage')) |
| 686 # TODO(rmistry): Remove the below once we want to enable SVGs for all bots. |
| 687 if (api.properties['buildername'] == |
| 688 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot' or |
| 689 api.properties['buildername'] == |
| 690 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared'): |
| 691 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'svg')) |
685 | 692 |
686 # Trigger test and perf tasks. | 693 # Trigger test and perf tasks. |
687 test_task = None | 694 test_task = None |
688 perf_task = None | 695 perf_task = None |
689 if do_test_steps: | 696 if do_test_steps: |
690 test_task = test_steps_trigger(api, builder_cfg, got_revision, | 697 test_task = test_steps_trigger(api, builder_cfg, got_revision, |
691 infrabots_dir, extra_hashes, cipd_packages) | 698 infrabots_dir, extra_hashes, cipd_packages) |
692 if do_perf_steps: | 699 if do_perf_steps: |
693 perf_task = perf_steps_trigger(api, builder_cfg, got_revision, | 700 perf_task = perf_steps_trigger(api, builder_cfg, got_revision, |
694 infrabots_dir, extra_hashes, cipd_packages) | 701 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')) | 749 stdout=api.raw_io.output('def456 XYZ.isolated')) |
743 if 'Win' in builder: | 750 if 'Win' in builder: |
744 paths.append(api.path['slave_build'].join( | 751 paths.append(api.path['slave_build'].join( |
745 'skia', 'infra', 'bots', 'assets', 'win_toolchain', 'VERSION')) | 752 'skia', 'infra', 'bots', 'assets', 'win_toolchain', 'VERSION')) |
746 paths.append(api.path['slave_build'].join( | 753 paths.append(api.path['slave_build'].join( |
747 'skia', 'infra', 'bots', 'assets', 'win_vulkan_sdk', 'VERSION')) | 754 'skia', 'infra', 'bots', 'assets', 'win_vulkan_sdk', 'VERSION')) |
748 paths.append(api.path['slave_build'].join( | 755 paths.append(api.path['slave_build'].join( |
749 'skia', 'infra', 'bots', 'assets', 'skimage', 'VERSION')) | 756 'skia', 'infra', 'bots', 'assets', 'skimage', 'VERSION')) |
750 paths.append(api.path['slave_build'].join( | 757 paths.append(api.path['slave_build'].join( |
751 'skia', 'infra', 'bots', 'assets', 'skp', 'VERSION')) | 758 'skia', 'infra', 'bots', 'assets', 'skp', 'VERSION')) |
| 759 paths.append(api.path['slave_build'].join( |
| 760 'skia', 'infra', 'bots', 'assets', 'svg', 'VERSION')) |
752 | 761 |
753 test += api.path.exists(*paths) | 762 test += api.path.exists(*paths) |
754 | 763 |
755 return test | 764 return test |
756 | 765 |
757 | 766 |
758 def GenTests(api): | 767 def GenTests(api): |
759 for mastername, slaves in TEST_BUILDERS.iteritems(): | 768 for mastername, slaves in TEST_BUILDERS.iteritems(): |
760 for slavename, builders_by_slave in slaves.iteritems(): | 769 for slavename, builders_by_slave in slaves.iteritems(): |
761 for builder in builders_by_slave: | 770 for builder in builders_by_slave: |
762 yield test_for_bot(api, builder, mastername, slavename) | 771 yield test_for_bot(api, builder, mastername, slavename) |
OLD | NEW |