Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1028)

Side by Side Diff: infra/bots/recipes/swarm_compile.py

Issue 2352653002: GN: remove old Android recipe code. (Closed)
Patch Set: missing json Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 compile. 6 # Recipe module for Skia Swarming compile.
7 7
8 8
9 DEPS = [ 9 DEPS = [
10 'core', 10 'core',
11 'recipe_engine/json', 11 'recipe_engine/json',
12 'recipe_engine/path', 12 'recipe_engine/path',
13 'recipe_engine/platform', 13 'recipe_engine/platform',
14 'recipe_engine/properties', 14 'recipe_engine/properties',
15 'recipe_engine/python', 15 'recipe_engine/python',
16 'flavor', 16 'flavor',
17 'run', 17 'run',
18 'vars', 18 'vars',
19 ] 19 ]
20 20
21 21
22 TEST_BUILDERS = { 22 TEST_BUILDERS = {
23 'client.skia.compile': { 23 'client.skia.compile': {
24 'skiabot-linux-swarm-000': [ 24 'skiabot-linux-swarm-000': [
25 'Build-Mac-Clang-Arm7-Debug-Android',
26 'Build-Mac-Clang-Arm7-Release-iOS', 25 'Build-Mac-Clang-Arm7-Release-iOS',
27 'Build-Mac-Clang-mipsel-Debug-GN_Android', 26 'Build-Mac-Clang-mipsel-Debug-GN_Android',
28 'Build-Mac-Clang-x86_64-Debug-CommandBuffer', 27 'Build-Mac-Clang-x86_64-Debug-CommandBuffer',
29 'Build-Mac-Clang-x86_64-Release-CMake', 28 'Build-Mac-Clang-x86_64-Release-CMake',
30 'Build-Mac-Clang-x86_64-Release-GN', 29 'Build-Mac-Clang-x86_64-Release-GN',
31 'Build-Ubuntu-Clang-arm64-Release-GN_Android', 30 'Build-Ubuntu-Clang-arm64-Release-GN_Android',
32 'Build-Ubuntu-Clang-arm64-Release-GN_Android_Vulkan', 31 'Build-Ubuntu-Clang-arm64-Release-GN_Android_Vulkan',
33 'Build-Ubuntu-Clang-x86_64-Debug-ASAN', 32 'Build-Ubuntu-Clang-x86_64-Debug-ASAN',
34 'Build-Ubuntu-Clang-x86_64-Debug-GN', 33 'Build-Ubuntu-Clang-x86_64-Debug-GN',
35 'Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot', 34 'Build-Ubuntu-Clang-arm64-Debug-GN_Android-Trybot',
36 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', 35 'Build-Ubuntu-Clang-arm64-Debug-GN_Android_FrameworkDefs',
37 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon',
38 'Build-Ubuntu-GCC-Arm7-Release-Android',
39 'Build-Ubuntu-GCC-Arm7-Release-Android_Vulkan',
40 'Build-Ubuntu-GCC-x86-Debug', 36 'Build-Ubuntu-GCC-x86-Debug',
41 'Build-Ubuntu-GCC-x86_64-Debug-GN', 37 'Build-Ubuntu-GCC-x86_64-Debug-GN',
42 'Build-Ubuntu-GCC-x86_64-Debug-MSAN', 38 'Build-Ubuntu-GCC-x86_64-Debug-MSAN',
43 'Build-Ubuntu-GCC-x86_64-Debug-NoGPU', 39 'Build-Ubuntu-GCC-x86_64-Debug-NoGPU',
44 'Build-Ubuntu-GCC-x86_64-Debug-SK_USE_DISCARDABLE_SCALEDIMAGECACHE', 40 'Build-Ubuntu-GCC-x86_64-Debug-SK_USE_DISCARDABLE_SCALEDIMAGECACHE',
45 'Build-Ubuntu-GCC-x86_64-Release-ANGLE', 41 'Build-Ubuntu-GCC-x86_64-Release-ANGLE',
46 'Build-Ubuntu-GCC-x86_64-Release-CMake', 42 'Build-Ubuntu-GCC-x86_64-Release-CMake',
47 'Build-Ubuntu-GCC-x86_64-Release-Fast', 43 'Build-Ubuntu-GCC-x86_64-Release-Fast',
48 'Build-Ubuntu-GCC-x86_64-Release-Mesa', 44 'Build-Ubuntu-GCC-x86_64-Release-Mesa',
49 'Build-Ubuntu-GCC-x86_64-Release-PDFium', 45 'Build-Ubuntu-GCC-x86_64-Release-PDFium',
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 157
162 # Link-time code generation just wastes time on compile-only bots. 158 # Link-time code generation just wastes time on compile-only bots.
163 if builder_dict.get('compiler') == 'MSVC': 159 if builder_dict.get('compiler') == 'MSVC':
164 gyp_defs['skia_win_ltcg'] = '0' 160 gyp_defs['skia_win_ltcg'] = '0'
165 161
166 # Mesa. 162 # Mesa.
167 if (builder_dict.get('extra_config') == 'Mesa' or 163 if (builder_dict.get('extra_config') == 'Mesa' or
168 builder_dict.get('cpu_or_gpu_value') == 'Mesa'): 164 builder_dict.get('cpu_or_gpu_value') == 'Mesa'):
169 gyp_defs['skia_mesa'] = '1' 165 gyp_defs['skia_mesa'] = '1'
170 166
171 # skia_use_android_framework_defines.
172 if builder_dict.get('extra_config') == 'Android_FrameworkDefs':
173 gyp_defs['skia_use_android_framework_defines'] = '1'
174
175 # CommandBuffer. 167 # CommandBuffer.
176 if builder_dict.get('extra_config') == 'CommandBuffer': 168 if builder_dict.get('extra_config') == 'CommandBuffer':
177 gyp_defs['skia_command_buffer'] = '1' 169 gyp_defs['skia_command_buffer'] = '1'
178 170
179 # Vulkan. 171 # Vulkan.
180 if builder_dict.get('extra_config') == 'Vulkan': 172 if builder_dict.get('extra_config') == 'Vulkan':
181 gyp_defs['skia_vulkan'] = '1' 173 gyp_defs['skia_vulkan'] = '1'
182 gyp_defs['skia_vulkan_debug_layers'] = '0' 174 gyp_defs['skia_vulkan_debug_layers'] = '0'
183 175
184 # NoGPU. 176 # NoGPU.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 api.path.exists( 233 api.path.exists(
242 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 234 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
243 ) 235 )
244 ) 236 )
245 if 'Win' in builder: 237 if 'Win' in builder:
246 test += api.platform('win', 64) 238 test += api.platform('win', 64)
247 elif 'Mac' in builder: 239 elif 'Mac' in builder:
248 test += api.platform('mac', 64) 240 test += api.platform('mac', 64)
249 else: 241 else:
250 test += api.platform('linux', 64) 242 test += api.platform('linux', 64)
251 if 'Android' in builder and 'GN' not in builder:
252 ccache = '/usr/bin/ccache'
253 test += api.step_data('has ccache?',
254 stdout=api.json.output({'ccache':ccache}))
255 if 'Android' in builder and 'GN_Android' not in builder:
256 test += api.step_data(
257 'which adb',
258 retcode=1)
259 if 'Trybot' in builder: 243 if 'Trybot' in builder:
260 test += api.properties(issue=500, 244 test += api.properties(issue=500,
261 patchset=1, 245 patchset=1,
262 rietveld='https://codereview.chromium.org') 246 rietveld='https://codereview.chromium.org')
263 247
264 yield test 248 yield test
265 249
266 mastername = 'client.skia.compile' 250 mastername = 'client.skia.compile'
267 slavename = 'skiabot-win-compile-000' 251 slavename = 'skiabot-win-compile-000'
268 buildername = 'Build-Ubuntu-GCC-x86_64-Debug' 252 buildername = 'Build-Ubuntu-GCC-x86_64-Debug'
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 buildername=buildername + '-Trybot', 312 buildername=buildername + '-Trybot',
329 mastername=mastername, 313 mastername=mastername,
330 slavename=slavename, 314 slavename=slavename,
331 buildnumber=5, 315 buildnumber=5,
332 path_config='kitchen', 316 path_config='kitchen',
333 swarm_out_dir='[SWARM_OUT_DIR]', 317 swarm_out_dir='[SWARM_OUT_DIR]',
334 revision='abc123', 318 revision='abc123',
335 **gerrit_kwargs) + 319 **gerrit_kwargs) +
336 api.platform('win', 64) 320 api.platform('win', 64)
337 ) 321 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698