| 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 30 matching lines...) Expand all Loading... |
| 41 'Build-Ubuntu-GCC-x86_64-Debug-GN', | 41 'Build-Ubuntu-GCC-x86_64-Debug-GN', |
| 42 'Build-Ubuntu-GCC-x86_64-Release-RemoteRun', | 42 'Build-Ubuntu-GCC-x86_64-Release-RemoteRun', |
| 43 'Build-Ubuntu-GCC-x86_64-Release-Trybot', | 43 'Build-Ubuntu-GCC-x86_64-Release-Trybot', |
| 44 'Build-Win-MSVC-x86_64-Release', | 44 'Build-Win-MSVC-x86_64-Release', |
| 45 'Build-Win-MSVC-x86_64-Release-Vulkan', | 45 'Build-Win-MSVC-x86_64-Release-Vulkan', |
| 46 'Housekeeper-Nightly-RecreateSKPs_Canary', | 46 'Housekeeper-Nightly-RecreateSKPs_Canary', |
| 47 'Housekeeper-PerCommit', | 47 'Housekeeper-PerCommit', |
| 48 'Infra-PerCommit', | 48 'Infra-PerCommit', |
| 49 'Perf-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Trybot', | 49 'Perf-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Trybot', |
| 50 'Perf-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Release-CT_BENCH_1k_SKPs', | 50 'Perf-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Release-CT_BENCH_1k_SKPs', |
| 51 'Test-Android-Clang-AndroidOne-CPU-MT6582-arm-Debug-GN_Android', |
| 51 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug-Vulkan', | 52 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug-Vulkan', |
| 52 'Test-Android-GCC-Nexus7v2-GPU-Tegra3-Arm7-Release', | 53 'Test-Android-GCC-Nexus7v2-GPU-Tegra3-Arm7-Release', |
| 53 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Release', | 54 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Release', |
| 54 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot', | 55 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot', |
| 55 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', | 56 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', |
| 56 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', | 57 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', |
| 57 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', | 58 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', |
| 58 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 59 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
| 59 'Test-Win8-MSVC-ShuttleA-GPU-HD7770-x86_64-Release', | 60 'Test-Win8-MSVC-ShuttleA-GPU-HD7770-x86_64-Release', |
| 60 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release', | 61 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release', |
| 61 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release', | 62 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release', |
| 62 ], | 63 ], |
| 63 }, | 64 }, |
| 64 } | 65 } |
| 65 | 66 |
| 66 | 67 |
| 67 def derive_compile_bot_name(api): | 68 def derive_compile_bot_name(api): |
| 68 builder_name = api.properties['buildername'] | 69 builder_name = api.properties['buildername'] |
| 69 builder_cfg = api.builder_name_schema.DictForBuilderName(builder_name) | 70 builder_cfg = api.builder_name_schema.DictForBuilderName(builder_name) |
| 70 if builder_cfg['role'] == 'Housekeeper': | 71 if builder_cfg['role'] == 'Housekeeper': |
| 71 return 'Build-Ubuntu-GCC-x86_64-Release-Shared' | 72 return 'Build-Ubuntu-GCC-x86_64-Release-Shared' |
| 72 if builder_cfg['role'] in ('Test', 'Perf'): | 73 if builder_cfg['role'] in ('Test', 'Perf'): |
| 73 task_os = builder_cfg['os'] | 74 task_os = builder_cfg['os'] |
| 74 extra_config = builder_cfg.get('extra_config') | 75 extra_config = builder_cfg.get('extra_config') |
| 75 if task_os == 'Android': | 76 if task_os == 'Android': |
| 76 if extra_config == 'Vulkan': | 77 if extra_config == 'Vulkan': |
| 77 extra_config = '%s_%s' % (task_os, 'Vulkan') | 78 extra_config = '%s_%s' % (task_os, 'Vulkan') |
| 79 elif extra_config == 'GN_Android': |
| 80 pass # i.e. extra_config stays GN_Android |
| 78 else: | 81 else: |
| 79 extra_config = task_os | 82 extra_config = task_os |
| 80 task_os = 'Ubuntu' | 83 task_os = 'Ubuntu' |
| 81 elif task_os == 'iOS': | 84 elif task_os == 'iOS': |
| 82 extra_config = task_os | 85 extra_config = task_os |
| 83 task_os = 'Mac' | 86 task_os = 'Mac' |
| 84 elif 'Win' in task_os: | 87 elif 'Win' in task_os: |
| 85 task_os = 'Win' | 88 task_os = 'Win' |
| 86 return api.builder_name_schema.MakeBuilderName( | 89 return api.builder_name_schema.MakeBuilderName( |
| 87 role=api.builder_name_schema.BUILDER_ROLE_BUILD, | 90 role=api.builder_name_schema.BUILDER_ROLE_BUILD, |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 mastername='client.skia', | 811 mastername='client.skia', |
| 809 slavename='skiabot-linux-swarm-000', | 812 slavename='skiabot-linux-swarm-000', |
| 810 buildnumber=5, | 813 buildnumber=5, |
| 811 path_config='kitchen', | 814 path_config='kitchen', |
| 812 revision='abc123', | 815 revision='abc123', |
| 813 **gerrit_kwargs) + | 816 **gerrit_kwargs) + |
| 814 api.step_data( | 817 api.step_data( |
| 815 'upload new .isolated file for test_skia', | 818 'upload new .isolated file for test_skia', |
| 816 stdout=api.raw_io.output('def456 XYZ.isolated')) | 819 stdout=api.raw_io.output('def456 XYZ.isolated')) |
| 817 ) | 820 ) |
| OLD | NEW |