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 16 matching lines...) Expand all Loading... |
27 'recipe_engine/time', | 27 'recipe_engine/time', |
28 'run', | 28 'run', |
29 'swarming', | 29 'swarming', |
30 'vars', | 30 'vars', |
31 ] | 31 ] |
32 | 32 |
33 | 33 |
34 TEST_BUILDERS = { | 34 TEST_BUILDERS = { |
35 'client.skia': { | 35 'client.skia': { |
36 'skiabot-linux-swarm-000': [ | 36 'skiabot-linux-swarm-000': [ |
37 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 37 'Build-Mac-Clang-Arm64-Release-Android', |
38 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot', | |
39 'Build-Mac-Clang-x86_64-Release', | 38 'Build-Mac-Clang-x86_64-Release', |
40 'Build-Ubuntu-GCC-Arm64-Debug-Android_Vulkan', | 39 'Build-Ubuntu-GCC-Arm64-Debug-Android_Vulkan', |
41 'Build-Ubuntu-GCC-x86_64-Debug', | 40 'Build-Ubuntu-GCC-x86_64-Debug', |
42 'Build-Ubuntu-GCC-x86_64-Debug-GN', | 41 'Build-Ubuntu-GCC-x86_64-Debug-GN', |
43 'Build-Ubuntu-GCC-x86_64-Release-RemoteRun', | 42 'Build-Ubuntu-GCC-x86_64-Release-RemoteRun', |
44 'Build-Ubuntu-GCC-x86_64-Release-Trybot', | 43 'Build-Ubuntu-GCC-x86_64-Release-Trybot', |
45 'Build-Win-MSVC-x86_64-Release', | 44 'Build-Win-MSVC-x86_64-Release', |
46 'Build-Win-MSVC-x86_64-Release-Vulkan', | 45 'Build-Win-MSVC-x86_64-Release-Vulkan', |
| 46 'Housekeeper-Nightly-RecreateSKPs_Canary', |
47 'Housekeeper-PerCommit', | 47 'Housekeeper-PerCommit', |
48 'Housekeeper-Nightly-RecreateSKPs_Canary', | |
49 'Infra-PerCommit', | 48 'Infra-PerCommit', |
50 'Perf-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Trybot', | 49 'Perf-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Trybot', |
51 '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-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug-Vulkan', |
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', | |
54 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release', | |
55 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Release', | 53 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Release', |
| 54 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot', |
56 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', | 55 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', |
57 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', | 56 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', |
58 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', | 57 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', |
| 58 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
59 'Test-Win8-MSVC-ShuttleA-GPU-HD7770-x86_64-Release', | 59 'Test-Win8-MSVC-ShuttleA-GPU-HD7770-x86_64-Release', |
60 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release', | 60 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release', |
| 61 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release', |
61 ], | 62 ], |
62 }, | 63 }, |
63 } | 64 } |
64 | 65 |
65 | 66 |
66 def derive_compile_bot_name(api): | 67 def derive_compile_bot_name(api): |
67 builder_name = api.properties['buildername'] | 68 builder_name = api.properties['buildername'] |
68 builder_cfg = api.builder_name_schema.DictForBuilderName(builder_name) | 69 builder_cfg = api.builder_name_schema.DictForBuilderName(builder_name) |
69 if builder_cfg['role'] == 'Housekeeper': | 70 if builder_cfg['role'] == 'Housekeeper': |
70 return 'Build-Ubuntu-GCC-x86_64-Release-Shared' | 71 return 'Build-Ubuntu-GCC-x86_64-Release-Shared' |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 349 |
349 def compile_steps_swarm(api, builder_cfg, got_revision, infrabots_dir): | 350 def compile_steps_swarm(api, builder_cfg, got_revision, infrabots_dir): |
350 builder_name = derive_compile_bot_name(api) | 351 builder_name = derive_compile_bot_name(api) |
351 compile_builder_cfg = api.builder_name_schema.DictForBuilderName(builder_name) | 352 compile_builder_cfg = api.builder_name_schema.DictForBuilderName(builder_name) |
352 | 353 |
353 cipd_packages = [] | 354 cipd_packages = [] |
354 | 355 |
355 # Android bots require a toolchain. | 356 # Android bots require a toolchain. |
356 if 'Android' in api.properties['buildername']: | 357 if 'Android' in api.properties['buildername']: |
357 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'android_sdk')) | 358 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'android_sdk')) |
| 359 if 'Mac' in api.properties['buildername']: |
| 360 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'android_ndk_darwin')) |
| 361 else: |
| 362 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'android_ndk_linux')) |
358 | 363 |
359 # Windows bots require a toolchain. | 364 # Windows bots require a toolchain. |
360 if 'Win' in builder_name: | 365 if 'Win' in builder_name: |
361 version_file = infrabots_dir.join('assets', 'win_toolchain', 'VERSION') | 366 version_file = infrabots_dir.join('assets', 'win_toolchain', 'VERSION') |
362 version = api.run.readfile(version_file, | 367 version = api.run.readfile(version_file, |
363 name='read win_toolchain VERSION', | 368 name='read win_toolchain VERSION', |
364 test_data='0').rstrip() | 369 test_data='0').rstrip() |
365 version = 'version:%s' % version | 370 version = 'version:%s' % version |
366 pkg = ('t', 'skia/bots/win_toolchain', version) | 371 pkg = ('t', 'skia/bots/win_toolchain', version) |
367 cipd_packages.append(pkg) | 372 cipd_packages.append(pkg) |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 mastername='client.skia', | 804 mastername='client.skia', |
800 slavename='skiabot-linux-swarm-000', | 805 slavename='skiabot-linux-swarm-000', |
801 buildnumber=5, | 806 buildnumber=5, |
802 path_config='kitchen', | 807 path_config='kitchen', |
803 revision='abc123', | 808 revision='abc123', |
804 **gerrit_kwargs) + | 809 **gerrit_kwargs) + |
805 api.step_data( | 810 api.step_data( |
806 'upload new .isolated file for test_skia', | 811 'upload new .isolated file for test_skia', |
807 stdout=api.raw_io.output('def456 XYZ.isolated')) | 812 stdout=api.raw_io.output('def456 XYZ.isolated')) |
808 ) | 813 ) |
OLD | NEW |