Debian Codegraph @

infra/bots/recipe_modules/build/examples/full.py

raw
1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5
6 DEPS = [
7 'build',
8 'recipe_engine/path',
9 'recipe_engine/platform',
10 'recipe_engine/properties',
11 'recipe_engine/raw_io',
12 'run',
13 'vars',
14 ]
15
16
17 def RunSteps(api):
18 api.vars.setup()
19 checkout_root = api.vars.cache_dir.joinpath('work')
20 out_dir = checkout_root.joinpath(
21 'skia', 'out', api.vars.builder_name, api.vars.configuration)
22 api.build(checkout_root=checkout_root, out_dir=out_dir)
23 dst = api.vars.swarming_out_dir.joinpath('out', api.vars.configuration)
24 api.build.copy_build_products(out_dir=out_dir, dst=dst)
25 api.run.check_failure()
26
27
28 TEST_BUILDERS = [
29 'Build-Debian10-Clang-arm-Release-Android_API26',
30 'Build-Debian10-Clang-arm-Release-Android_ASAN',
31 'Build-Debian10-Clang-arm-OptimizeForSize-Android_NoPatch',
32 'Build-Debian10-Clang-arm-Release-Chromebook_GLES',
33 'Build-Debian10-Clang-arm64-Debug-Android_FrameworkWorkarounds',
34 'Build-Debian10-Clang-arm64-Debug-Android_Graphite_Native_Vulkan',
35 'Build-Debian10-Clang-arm64-Debug-Android_HWASAN',
36 'Build-Debian10-Clang-arm64-Debug-Chromebook_GLES',
37 'Build-Debian10-Clang-arm64-Release-Android_Graphite_Dawn_GLES',
38 'Build-Debian10-Clang-arm64-Release-Android_Graphite_Dawn_Vulkan',
39 'Build-Debian10-Clang-arm64-Release-Android_Wuffs',
40 'Build-Debian10-Clang-x86_64-Debug-ASAN_Graphite_Native_Vulkan',
41 'Build-Debian10-Clang-x86_64-Debug-AVIF',
42 'Build-Debian10-Clang-x86_64-Debug-Chromebook_GLES',
43 'Build-Debian10-Clang-x86_64-Debug-Coverage',
44 'Build-Debian10-Clang-x86_64-Debug-Fontations',
45 'Build-Debian10-Clang-x86_64-Debug-ICU4X',
46 'Build-Debian10-Clang-x86_64-Debug-FreeType',
47 'Build-Debian10-Clang-x86_64-Debug-MSAN',
48 'Build-Debian10-Clang-x86_64-Debug-SK_CPU_LIMIT_SSE41',
49 'Build-Debian10-Clang-x86_64-Debug-SafeStack',
50 'Build-Debian10-Clang-x86_64-Debug-SwiftShader_Graphite',
51 'Build-Debian10-Clang-x86_64-Debug-SwiftShader_MSAN',
52 'Build-Debian10-Clang-x86_64-Debug-TSAN',
53 'Build-Debian10-Clang-x86_64-Debug-Tidy',
54 'Build-Debian10-Clang-x86_64-Debug-Vulkan_TSAN',
55 'Build-Debian10-Clang-x86_64-Debug-Wuffs',
56 'Build-Debian10-Clang-x86_64-OptimizeForSize',
57 'Build-Debian10-Clang-x86_64-Release-ANGLE',
58 'Build-Debian10-Clang-x86_64-Release-ASAN',
59 'Build-Debian10-Clang-x86_64-Release-AVIF',
60 'Build-Debian10-Clang-x86_64-Release-CMake',
61 'Build-Debian10-Clang-x86_64-Release-Fast',
62 'Build-Debian10-Clang-x86_64-Release-NoDEPS',
63 'Build-Debian10-Clang-x86_64-Release-RustPNG',
64 'Build-Debian10-Clang-x86_64-Release-RustBMP',
65 'Build-Debian10-Clang-x86_64-Release-Static',
66 'Build-Debian10-Clang-x86_64-Release-SwiftShader',
67 'Build-Debian10-Clang-x86_64-Release-Vulkan',
68 'Build-Debian10-EMCC-wasm-Debug-CanvasKit',
69 'Build-Debian10-EMCC-wasm-Release-CanvasKit_CPU',
70 'Build-Debian10-EMCC-wasm-Release-CanvasKit_WebGPU',
71 'Build-Debian11-GCC-x86-Debug-Docker',
72 'Build-Debian11-GCC-x86_64-Debug-Docker',
73 'Build-Debian11-GCC-x86_64-Release-NoGPU_Docker',
74 'Build-Debian11-GCC-x86_64-Release-Shared_Docker',
75 'Build-Mac-Clang-arm64-Debug-Android_Vulkan',
76 'Build-Mac-Clang-arm64-Debug-iOS',
77 'Build-Mac-Clang-arm64-Debug-Graphite_Dawn_Metal',
78 'Build-Mac-Clang-arm64-Debug-Graphite_Dawn_Metal_NoGPU',
79 'Build-Mac-Clang-arm64-Debug-Graphite_Dawn_Metal_NoPrecompile',
80 'Build-Mac-Clang-arm64-Debug-Graphite_Native_Metal',
81 'Build-Mac-Clang-arm64-Debug-Graphite_Native_Metal_NoGPU',
82 'Build-Mac-Clang-arm64-Debug-Graphite_Native_Metal_NoPrecompile',
83 'Build-Mac-Clang-arm64-Release-Graphite_Native_Metal',
84 'Build-Mac-Clang-arm64-Release-Graphite_Native_Dawn_Metal',
85 'Build-Mac-Clang-x86_64-Debug-ASAN',
86 'Build-Mac-Clang-x86_64-Debug-Metal',
87 'Build-Mac-Clang-arm64-Release-iOS18_Metal',
88 'Build-Win-Clang-arm64-Release-Android',
89 'Build-Win-Clang-x86-Debug-Exceptions',
90 'Build-Win-Clang-x86_64-Debug-ANGLE',
91 'Build-Win-Clang-x86_64-Release-Graphite_Native_Vulkan',
92 'Build-Win-Clang-x86_64-Release-Direct3D',
93 'Build-Win-Clang-x86_64-Release-Shared',
94 'Build-Win-Clang-x86_64-Release-Vulkan',
95 'Build-Win-MSVC-x86_64-Release-Graphite_Dawn_D3D11',
96 'Build-Win-MSVC-x86_64-Release-Graphite_Dawn_D3D12',
97 'Build-Debian10-Clang-x86_64-Release-SK_USE_PADDED_BLUR_UPSCALE',
98 'Build-Ubuntu24.04-Clang-x86_64-Release-Fuzz',
99 ]
100
101 # Default properties used for TEST_BUILDERS.
102 defaultProps = lambda buildername: dict(
103 buildername=buildername,
104 repository='https://skia.googlesource.com/skia.git',
105 revision='abc123',
106 path_config='kitchen',
107 patch_set=2,
108 swarm_out_dir='[SWARM_OUT_DIR]'
109 )
110
111 def GenTests(api):
112 for buildername in TEST_BUILDERS:
113 test = (
114 api.test(buildername) +
115 api.properties(**defaultProps(buildername))
116 )
117 if 'Win' in buildername:
118 test += api.platform('win', 64)
119 yield test
120
121 yield (
122 api.test('unknown-docker-image') +
123 api.properties(**defaultProps('Build-Unix-GCC-x86_64-Release-Docker')) +
124 api.expect_exception('Exception')
125 )