1 # Copyright 2015 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.
6 # This is the list of configs that you can pass to mb; each config
7 # represents a particular combination of GYP_DEFINES/gn args that
8 # we must support. A given config *may* be platform-specific but
9 # is not necessarily so (i.e., we might have mac, win, and linux
10 # bots all using the 'gn_release_bot' config).
12 'android_cast_gyp_debug_static_bot': ['android', 'cast', 'gyp', 'debug_static_bot'],
13 'android_clang_asan_gyp_debug_bot': ['android', 'clang', 'asan', 'gyp', 'debug_bot'],
14 'android_gn_debug_bot': ['android', 'gn', 'debug_bot'],
15 'android_gn_release_bot': ['android', 'gn', 'release_bot'],
16 'android_gn_release_trybot': ['android', 'gn', 'release_trybot'],
17 'android_gyp_debug_bot': ['android', 'gyp', 'debug_bot'],
18 'android_gyp_debug_static_bot': ['android', 'gyp', 'debug_static_bot'],
19 'android_gyp_debug_static_bot_arm64': ['android', 'gyp', 'debug_static_bot', 'arm64'],
20 'android_gyp_release_bot': ['android', 'gyp', 'release_bot'],
21 'android_gyp_release_trybot': ['android', 'gyp', 'release_trybot'],
22 'cast_gyp_release_bot': ['cast', 'gyp', 'release_bot'],
23 'cast_gyp_release_trybot': ['cast', 'gyp', 'release_trybot'],
24 'chromeos_gn_debug_bot': ['chromeos', 'gn', 'debug_bot'],
25 'chromeos_gn_release_bot': ['chromeos', 'gn', 'release_bot'],
26 'chromeos_gn_release_trybot': ['chromeos', 'gn', 'release_trybot'],
27 'dev_gn_debug': ['gn', 'debug', 'shared', 'full_symbols'],
28 'dev_gn_release': ['gn', 'release', 'shared'],
29 'dev_gyp_debug': ['gyp', 'debug', 'shared', 'full_symbols'],
30 'dev_gyp_release': ['gyp', 'release', 'shared'],
31 'embedded_gyp_debug_bot': ['embedded', 'gyp', 'debug_bot'],
32 'gn_debug_bot': ['gn', 'debug_bot'],
33 'gn_debug_bot_minimal_symbols': ['gn', 'debug_bot_minimal_symbols'],
34 'gn_debug_bot_minimal_symbols_x86': ['gn', 'debug_bot_minimal_symbols', 'x86'],
35 'gn_debug_static_bot': ['gn', 'debug_static_bot'],
36 'gn_linux_upload': ['gn_linux_upload'],
37 'gn_release_bot': ['gn', 'release_bot'],
38 'gn_release_bot_minimal_symbols': ['gn', 'release_bot_minimal_symbols'],
39 'gn_release_bot_minimal_symbols_x86': ['gn', 'release_bot_minimal_symbols', 'x86'],
40 'gn_release_trybot': ['gn', 'release_trybot'],
41 'gn_release_trybot_x86': ['gn', 'release_trybot', 'x86'],
42 'gyp_debug_bot': ['gyp', 'debug_bot'],
43 'gyp_debug_bot_x86': ['gyp', 'debug_bot', 'x86'],
44 'gyp_release_bot_arm': ['gyp', 'release_bot', 'arm', 'crosscompile'],
45 'gyp_release_trybot': ['gyp', 'release_trybot'],
47 # This is just for completeness; any bot that uses this config should never actually run MB.
50 'swarming_asan_lsan_gyp_release_trybot': ['swarming', 'asan', 'lsan', 'release_trybot'],
51 'swarming_msan_gyp_release_trybot': ['swarming', 'chromeos', 'msan', 'gyp', 'release_trybot'],
52 'swarming_deterministic_gyp_release_bot': ['swarming', 'deterministic', 'gyp', 'release_bot'],
53 'swarming_gpu_tests_gyp_release_trybot': ['swarming', 'gpu_tests', 'gyp', 'release_trybot'],
54 'swarming_gyp_debug_bot': ['swarming', 'gyp', 'debug_bot'],
55 'swarming_gyp_debug_bot_no_symbols_x86': ['swarming', 'gyp', 'debug_bot', 'no_symbols', 'x86'],
56 'swarming_gyp_debug_trybot': ['swarming', 'gyp', 'debug_trybot'],
57 'swarming_gyp_debug_trybot_x86': ['swarming', 'gyp', 'debug_trybot', 'x86'],
58 'swarming_gyp_release_bot': ['swarming', 'gyp', 'release_bot'],
59 'swarming_gyp_release_trybot': ['swarming', 'gyp', 'release_trybot'],
60 'swarming_gyp_release_trybot_arm': ['swarming', 'gyp', 'release_trybot', 'arm', 'crosscompile'],
61 'swarming_gyp_release_trybot_arm_float': ['swarming', 'gyp', 'release_trybot', 'arm_float', 'crosscompile'],
62 'swarming_tsan_gyp_release_trybot': ['swarming', 'disable_nacl', 'tsan', 'gyp', 'release_trybot'],
64 # clang/win doesn't work with goma yet, so this can't use debug_bot:
65 'win_clang_debug_bot': ['gn', 'clang', 'debug', 'shared', 'minimal_symbols'],
68 # This is a list of configs that do not actually exist on any bot
69 # but are used so commonly by devs that we must support them.
70 'common_dev_configs': [
77 # This is a list of configs that some private (not publicly accessible)
78 # bot somewhere uses and that we must support. Ideally we should actually
79 # have a bot for each of these on the public waterfall. Each config should
80 # at least have a contact listed.
84 # This is a list of configs that are not commonly used by that we should
85 # make some effort to support, but if it breaks that is not the end of
86 # the world. Each config should have a contact listed, and we expect the
87 # contact to be on the hook for fixing the config.
88 'unsupported_configs': [
91 # This is a dict mapping a given 'mixin' name to a dict of settings that
92 # mb should use. See //tools/mb/docs/user_guide.md for more information.
95 'gn_args': 'target_os="android"',
96 'gyp_defines': 'OS=android',
100 'gn_args': 'target_cpu="arm"',
101 'gyp_defines': 'target_arch=arm',
106 'gyp_defines': 'target_arch=arm arm_float_abi=hard',
110 'gn_args': 'target_cpu="arm64"',
111 'gyp_defines': 'target_arch=arm64',
115 'gn_args': 'is_asan=true',
116 'gyp_defines': 'asan=1',
120 'gn_args': '# TODO: Need the GN equivalents for a Chromecast build.',
121 'gyp_defines': 'chromecast=1',
125 'gn_args': 'target_os="chromeos"',
126 'gyp_defines': 'chromeos=1',
130 'gn_args': 'is_clang=true',
131 'gyp_defines': 'clang=1',
135 # This mixin is only needed on GYP bots that are doing cross-compiles
136 # but are *not* targetting Android or iOS (where build/gyp_chromium
137 # will set the crosscompile variable automatically). It is not need
139 'gyp_crosscompile': True,
142 'dcheck_always_on': {
143 'gn_args': 'dcheck_always_on=true',
144 'gyp_defines': 'dcheck_always_on=1',
148 'gn_args': 'is_debug=true',
149 'gyp_config': 'Debug',
153 'mixins': ['debug', 'shared', 'goma'],
156 'debug_bot_minimal_symbols': {
157 'mixins': ['debug_bot', 'minimal_symbols'],
160 'debug_static_bot': {
161 'mixins': ['debug', 'static', 'minimal_symbols', 'goma']
165 'mixins': ['debug_bot_minimal_symbols'],
170 'gyp_defines': 'dont_embed_build_metadata=1',
174 'gn_args': 'enable_nacl=false',
175 'gyp_defines': 'disable_nacl=1',
180 'gyp_defines': 'embedded=1',
184 'gn_args': 'symbol_level=2',
185 'gyp_defines': 'fastbuild=0',
191 # We don't want to require a runtime dependency on glib in the
192 # GN binary; ideally we could just turn glib off, but that doesn't
193 # actually work, so we need to pretend to be doing an ozone build
194 # in order for the flag to actually take effect.
195 'gn_args': 'use_ozone=true use_glib=false',
198 'gn': {'type': 'gn'},
201 'gn_args': 'use_goma=true goma_dir="$(goma_dir)"',
202 'gyp_defines': 'use_goma=1 gomadir=$(goma_dir)',
206 'gn_args': 'archive_gpu_tests=true',
207 'gyp_defines': 'archive_gpu_tests=1',
210 'gyp': {'type': 'gyp'},
213 'gn_args': 'use_lsan=true',
214 'gyp_defines': 'lsan=1',
218 'gn_args': 'symbol_level=1',
219 'gyp_defines': 'fastbuild=1',
223 'gn_args': 'use_msan=true',
224 'gyp_defines': 'msan=1 msan_track_origins=2 use_prebuilt_instrumented_libraries=1',
228 'gn_args': 'symbol_level=0',
229 'gyp_defines': 'fastbuild=2',
232 # This config is used by bots that aren't building Chromium and should
233 # never be running MB. It is used for tracking purposes. These values
234 # were picked such that if someone did try to run MB, both GN and GYP
238 'gyp_defines': 'target_arch=unknown',
242 'gn_args': 'is_debug=false',
243 'gyp_config': 'Release',
247 'mixins': ['release', 'static', 'goma'],
250 'release_bot_minimal_symbols': {
251 'mixins': ['release_bot', 'minimal_symbols'],
255 'mixins': ['release_bot_minimal_symbols', 'dcheck_always_on']
259 'gn_args': 'is_component_build=true',
260 'gyp_defines': 'component=shared_library',
264 'gn_args': 'is_component_build=false',
265 'gyp_defines': 'component=static_library',
270 'gyp_defines': 'test_isolation_mode=prepare',
274 'gn_args': 'use_tsan=true',
275 'gyp_defines': 'tsan=1',
279 'gn_args': 'target_cpu="x86"',
280 'gyp_args': 'target_arch=ia32',
284 # This is a map of buildbot master names -> buildbot builder names ->
285 # config names (where each config name is a key in the 'configs' dict,
286 # above). mb uses this dict to look up which config to use for a given bot.
287 # The builders should be sorted by the order they appear in the /builders
288 # page on the buildbots, *not* alphabetically.
290 # TODO(crbug.com/481692): Add in remaining bots on the waterfalls.
292 'chromium.chromiumos': {
293 'Linux ChromiumOS GN': 'chromeos_gn_release_bot',
294 'Linux ChromiumOS GN (dbg)': 'chromeos_gn_debug_bot',
297 'Linux Builder': 'swarming_gyp_release_bot',
298 'Linux Tests': 'swarming_gyp_release_bot',
299 'Linux Builder (dbg)(32)': 'swarming_gyp_debug_bot_no_symbols_x86',
300 'Linux Tests (dbg)(1)(32)': 'swarming_gyp_debug_bot_no_symbols_x86',
301 'Linux Builder (dbg)': 'swarming_gyp_debug_bot',
302 'Linux Tests (dbg)(1)': 'swarming_gyp_debug_bot',
303 'Linux GN': 'gn_release_bot',
304 'Linux GN Clobber': 'gn_release_bot',
305 'Linux GN (dbg)': 'gn_debug_bot',
306 'Linux ARM': 'gyp_release_bot_arm',
307 'Cast Linux': 'cast_gyp_release_bot',
308 'Android Arm64 Builder (dbg)': 'android_gyp_debug_static_bot_arm64',
309 'Android Builder (dbg)': 'android_gyp_debug_static_bot',
310 'Android Tests (dbg)': 'android_gyp_debug_static_bot',
311 'Android Builder': 'android_gyp_release_bot',
312 'Android Tests': 'android_gyp_release_bot',
313 'Android Clang Builder (dbg)': 'android_clang_asan_gyp_debug_bot',
314 'Android GN': 'android_gn_release_bot',
315 'Android GN (dbg)': 'android_gn_debug_bot',
316 'Cast Android (dbg)': 'android_cast_gyp_debug_static_bot',
319 'Mac GN': 'gn_release_bot',
320 'Mac GN (dbg)': 'gn_debug_static_bot',
323 'Chromium Mojo Android': 'android_gn_release_bot',
324 'Chromium Mojo Linux Perf': 'gn_release_bot',
325 'Chromium Mojo Android Nexus5 Perf': 'android_gn_release_bot',
326 'Chromium Mojo Windows': 'gn_release_bot_minimal_symbols_x86',
327 'Chromium Mojo Linux': 'gn_release_bot',
328 'Chromium Mojo Windows 7 Perf': 'gn_release_bot_minimal_symbols_x86',
331 # Windows bots take too long to link w/ full symbols and time out.
332 'Win x64 GN': 'gn_release_bot_minimal_symbols',
333 'Win x64 GN (dbg)': 'gn_debug_bot_minimal_symbols',
334 'Win8 Aura': 'gn_release_bot_minimal_symbols_x86',
335 'Win8 GN': 'gn_release_bot_minimal_symbols_x86',
336 'Win8 GN (dbg)': 'gn_debug_bot_minimal_symbols_x86',
339 'Android GN': 'android_gn_release_bot',
340 'Android GN (dbg)': 'android_gn_debug_bot',
341 'Linux GN': 'gn_release_bot',
342 'Linux GN (dbg)': 'gn_debug_bot'
345 'CrWinClang64(dbg)': 'win_clang_debug_bot',
347 'chromium.webrtc.fyi': {
348 'Android GN': 'android_gn_release_bot',
349 'Android GN (dbg)': 'android_gn_debug_bot',
350 'Linux GN': 'gn_release_bot',
351 'Linux GN (dbg)': 'gn_debug_bot',
352 'Mac GN': 'gn_release_bot',
353 'Mac GN (dbg)': 'gn_debug_static_bot',
354 'Win GN': 'gn_release_bot_minimal_symbols_x86',
355 'Win GN (dbg)': 'gn_debug_bot_minimal_symbols_x86',
358 'Linux Builder': 'swarming_gyp_release_bot',
359 'Linux Builder-Trybot': 'swarming_gyp_release_bot',
360 'Linux Tests': 'swarming_gyp_release_bot',
364 'V8 Linux GN': 'gn_release_bot',
365 'V8 Android GN (dbg)': 'android_gn_debug_bot',
368 'android_blink_compile_dbg': 'android_gyp_debug_bot',
369 'android_blink_compile_rel': 'android_gyp_release_trybot',
370 'android_chromium_gn_compile_rel': 'android_gn_release_bot',
371 'linux_chromium_gn_rel': 'gn_release_bot',
373 'tryserver.chromium.linux': {
374 'linux_chromium_asan_rel_ng': 'swarming_asan_lsan_gyp_release_trybot',
375 'linux_full_bisect_builder': 'swarming_gyp_release_bot',
376 'linux_site_isolation': 'gyp_release_trybot',
377 'linux_chromium_compile_rel_ng': 'swarming_gyp_release_trybot',
378 'linux_chromium_rel_ng': 'swarming_gpu_tests_gyp_release_trybot',
379 'linux_chromium_gn_rel': 'gn_release_trybot',
380 'linux_chromium_gn_chromeos_rel': 'chromeos_gn_release_trybot',
381 'android_chromium_gn_compile_rel': 'android_gn_release_trybot',
382 'linux_chromium_compile_dbg_ng': 'swarming_gyp_debug_trybot',
383 'linux_chromium_dbg_ng': 'swarming_gyp_debug_trybot',
384 'linux_chromium_trusty_dbg': 'gyp_debug_bot',
385 'linux_chromium_trusty32_dbg': 'gyp_debug_bot_x86',
386 'linux_chromium_gn_dbg': 'gn_debug_bot',
387 'linux_chromium_gn_chromeos_dbg': 'chromeos_gn_debug_bot',
388 'android_chromium_gn_compile_dbg': 'android_gn_debug_bot',
389 'linux_chromium_msan_rel_ng': 'swarming_msan_gyp_release_trybot',
390 'linux_chromium_tsan_rel_ng': 'swarming_tsan_gyp_release_trybot',
391 'linux_chromium_practice_rel_ng': 'gyp_release_trybot',
392 'linux_arm_compile': 'swarming_gyp_release_trybot_arm',
393 'linux_arm': 'swarming_gyp_release_trybot_arm_float',
394 'linux_arm_tester': 'none',
395 'linux_chromium_compile_dbg_32_ng': 'swarming_gyp_debug_trybot_x86',
396 'linux_chromium_dbg_32_ng': 'swarming_gyp_debug_trybot_x86',
397 'linux_chromium_clobber_rel_ng': 'gyp_release_trybot',
398 'linux_chromium_gn_upload': 'gn_linux_upload',
399 'cast_shell_linux': 'cast_gyp_release_trybot',
400 'linux_deterministic': 'swarming_deterministic_gyp_release_bot',
401 'linux_ecs_ozone': 'embedded_gyp_debug_bot',
403 'tryserver.chromium.mac': {
404 'mac_chromium_gn_dbg': 'gn_debug_static_bot',
405 'mac_chromium_gn_rel': 'gn_release_trybot',
406 'mac_chromium_gn_upload': 'gn_release_bot',
408 'tryserver.chromium.win': {
409 'win_chromium_gn_x64_dbg': 'gn_debug_bot',
410 'win_chromium_gn_x64_rel': 'gn_release_trybot',
411 'win8_chromium_ng': 'gn_release_trybot_x86',
412 'win8_chromium_gn_dbg': 'gn_debug_bot_minimal_symbols_x86',
413 'win8_chromium_gn_rel': 'gn_release_trybot_x86',
414 'win8_chromium_gn_upload': 'gn_release_bot_minimal_symbols',
415 'win_clang_x64_dbg': 'win_clang_debug_bot',
418 'v8_linux_chromium_gn_rel': 'gn_release_trybot',
419 'v8_android_chromium_gn_dbg': 'android_gn_debug_bot',