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_official_bot': ['gyp', 'official', 'goma'],
45 'gyp_official_bot_minimal_symbols': ['gyp', 'official', 'minimal_symbols', 'goma'],
46 'gyp_official_bot_minimal_symbols_android': ['gyp', 'official', 'minimal_symbols', 'goma', 'android'],
47 'gyp_official_bot_minimal_symbols_android_arm64': ['gyp', 'official', 'minimal_symbols', 'goma', 'android', 'arm64'],
48 'gyp_official_bot_minimal_symbols_x86': ['gyp', 'official', 'minimal_symbols', 'goma', 'x86'],
49 'gyp_release_bot_arm': ['gyp', 'release_bot', 'arm', 'crosscompile'],
50 'gyp_release_trybot': ['gyp', 'release_trybot'],
52 # This is just for completeness; any bot that uses this config should never actually run MB.
55 'swarming_asan_lsan_gyp_release_trybot': ['swarming', 'asan', 'lsan', 'release_trybot'],
56 'swarming_msan_gyp_release_trybot': ['swarming', 'chromeos', 'msan', 'gyp', 'release_trybot'],
57 'swarming_deterministic_gyp_release_bot': ['swarming', 'deterministic', 'gyp', 'release_bot'],
58 'swarming_gpu_tests_gn_release_trybot': ['swarming', 'gpu_tests', 'gn', 'release_trybot'],
59 'swarming_gpu_tests_gyp_debug_trybot': ['swarming', 'gpu_tests', 'gyp', 'debug_trybot'],
60 'swarming_gpu_tests_gyp_release_trybot': ['swarming', 'gpu_tests', 'gyp', 'release_trybot'],
61 'swarming_gn_debug_bot': ['swarming', 'gn', 'debug_bot'],
62 'swarming_gn_debug_trybot': ['swarming', 'gn', 'debug_trybot'],
63 'swarming_gn_release_bot': ['swarming', 'gn', 'release_bot'],
64 'swarming_gyp_debug_bot_no_symbols_x86': ['swarming', 'gyp', 'debug_bot', 'no_symbols', 'x86'],
65 'swarming_gyp_debug_trybot_x86': ['swarming', 'gyp', 'debug_trybot', 'x86'],
66 'swarming_gyp_release_bot': ['swarming', 'gyp', 'release_bot'],
67 'swarming_gyp_release_trybot': ['swarming', 'gyp', 'release_trybot'],
68 'swarming_gyp_release_trybot_arm': ['swarming', 'gyp', 'release_trybot', 'arm', 'crosscompile'],
69 'swarming_gyp_release_trybot_arm_float': ['swarming', 'gyp', 'release_trybot', 'arm_float', 'crosscompile'],
70 'swarming_tsan_gyp_release_trybot': ['swarming', 'disable_nacl', 'tsan', 'gyp', 'release_trybot'],
72 # clang/win doesn't work with goma yet, so this can't use debug_bot:
73 'win_clang_debug_bot': ['gn', 'clang', 'debug', 'shared', 'minimal_symbols'],
76 # This is a list of configs that do not actually exist on any bot
77 # but are used so commonly by devs that we must support them.
78 'common_dev_configs': [
85 # This is a list of configs that some private (not publicly accessible)
86 # bot somewhere uses and that we must support. Ideally we should actually
87 # have a bot for each of these on the public waterfall. Each config should
88 # at least have a contact listed.
92 # This is a list of configs that are not commonly used by that we should
93 # make some effort to support, but if it breaks that is not the end of
94 # the world. Each config should have a contact listed, and we expect the
95 # contact to be on the hook for fixing the config.
96 'unsupported_configs': [
99 # This is a dict mapping a given 'mixin' name to a dict of settings that
100 # mb should use. See //tools/mb/docs/user_guide.md for more information.
103 'gn_args': 'target_os="android"',
104 'gyp_defines': 'OS=android',
108 'gn_args': 'target_cpu="arm"',
109 'gyp_defines': 'target_arch=arm',
113 'gn_args': 'target_cpu="arm64"',
114 'gyp_defines': 'target_arch=arm64',
119 'gyp_defines': 'target_arch=arm arm_float_abi=hard',
123 'gn_args': 'target_cpu="arm64"',
124 'gyp_defines': 'target_arch=arm64',
128 'gn_args': 'is_asan=true',
129 'gyp_defines': 'asan=1',
133 'gn_args': '# TODO: Need the GN equivalents for a Chromecast build.',
134 'gyp_defines': 'chromecast=1',
138 'gn_args': 'target_os="chromeos"',
139 'gyp_defines': 'chromeos=1',
143 'gn_args': 'is_clang=true',
144 'gyp_defines': 'clang=1',
148 # This mixin is only needed on GYP bots that are doing cross-compiles
149 # but are *not* targetting Android or iOS (where build/gyp_chromium
150 # will set the crosscompile variable automatically). It is not need
152 'gyp_crosscompile': True,
155 'dcheck_always_on': {
156 'gn_args': 'dcheck_always_on=true',
157 'gyp_defines': 'dcheck_always_on=1',
161 'gn_args': 'is_debug=true',
162 'gyp_config': 'Debug',
166 'mixins': ['debug', 'shared', 'goma'],
169 'debug_bot_minimal_symbols': {
170 'mixins': ['debug_bot', 'minimal_symbols'],
173 'debug_static_bot': {
174 'mixins': ['debug', 'static', 'minimal_symbols', 'goma']
178 'mixins': ['debug_bot_minimal_symbols'],
183 'gyp_defines': 'dont_embed_build_metadata=1',
187 'gn_args': 'enable_nacl=false',
188 'gyp_defines': 'disable_nacl=1',
193 'gyp_defines': 'embedded=1',
197 'gn_args': 'symbol_level=2',
198 'gyp_defines': 'fastbuild=0',
204 # We don't want to require a runtime dependency on glib in the
205 # GN binary; ideally we could just turn glib off, but that doesn't
206 # actually work, so we need to pretend to be doing an ozone build
207 # in order for the flag to actually take effect.
208 'gn_args': 'use_ozone=true use_glib=false',
211 'gn': {'type': 'gn'},
214 'gn_args': 'use_goma=true goma_dir="$(goma_dir)"',
215 'gyp_defines': 'use_goma=1 gomadir=$(goma_dir)',
219 'gn_args': '', # not needed in GN builds.
220 'gyp_defines': 'archive_gpu_tests=1',
223 'gyp': {'type': 'gyp'},
226 'gn_args': 'use_lsan=true',
227 'gyp_defines': 'lsan=1',
231 'gn_args': 'symbol_level=1',
232 'gyp_defines': 'fastbuild=1',
236 'gn_args': 'use_msan=true',
237 'gyp_defines': 'msan=1 msan_track_origins=2 use_prebuilt_instrumented_libraries=1',
241 'gn_args': 'symbol_level=0',
242 'gyp_defines': 'fastbuild=2',
245 # This config is used by bots that aren't building Chromium and should
246 # never be running MB. It is used for tracking purposes. These values
247 # were picked such that if someone did try to run MB, both GN and GYP
251 'gyp_defines': 'target_arch=unknown',
255 'gn_args': 'is_chrome_branded is_official_build=true is_debug=false is_component_build=false',
256 'gyp_defines': 'branding="Chrome" buildtype="Official" component=static_library',
257 'gyp_config': 'Release',
261 'gn_args': 'is_debug=false',
262 'gyp_config': 'Release',
266 'mixins': ['release', 'static', 'goma'],
269 'release_bot_minimal_symbols': {
270 'mixins': ['release_bot', 'minimal_symbols'],
274 'mixins': ['release_bot_minimal_symbols', 'dcheck_always_on']
278 'gn_args': 'is_component_build=true',
279 'gyp_defines': 'component=shared_library',
283 'gn_args': 'is_component_build=false',
284 'gyp_defines': 'component=static_library',
289 'gyp_defines': 'test_isolation_mode=prepare',
293 'gn_args': 'use_tsan=true',
294 'gyp_defines': 'tsan=1',
298 'gn_args': 'target_cpu="x86"',
299 'gyp_args': 'target_arch=ia32',
303 # This is a map of buildbot master names -> buildbot builder names ->
304 # config names (where each config name is a key in the 'configs' dict,
305 # above). mb uses this dict to look up which config to use for a given bot.
306 # The builders should be sorted by the order they appear in the /builders
307 # page on the buildbots, *not* alphabetically.
309 # TODO(crbug.com/481692): Add in remaining bots on the waterfalls.
311 'chromium.chromiumos': {
312 'Linux ChromiumOS GN': 'chromeos_gn_release_bot',
313 'Linux ChromiumOS GN (dbg)': 'chromeos_gn_debug_bot',
316 'Linux Builder': 'swarming_gn_release_bot',
317 'Linux Tests': 'swarming_gn_release_bot',
318 'Linux Builder (dbg)(32)': 'swarming_gyp_debug_bot_no_symbols_x86',
319 'Linux Tests (dbg)(1)(32)': 'swarming_gyp_debug_bot_no_symbols_x86',
320 'Linux Builder (dbg)': 'swarming_gn_debug_bot',
321 'Linux Tests (dbg)(1)': 'swarming_gn_debug_bot',
322 'Linux GN': 'gn_release_bot',
323 'Linux GN Clobber': 'gn_release_bot',
324 'Linux GN (dbg)': 'gn_debug_bot',
325 'Linux ARM': 'gyp_release_bot_arm',
326 'Cast Linux': 'cast_gyp_release_bot',
327 'Android Arm64 Builder (dbg)': 'android_gyp_debug_static_bot_arm64',
328 'Android Builder (dbg)': 'android_gyp_debug_static_bot',
329 'Android Tests (dbg)': 'android_gyp_debug_static_bot',
330 'Android Builder': 'android_gyp_release_bot',
331 'Android Tests': 'android_gyp_release_bot',
332 'Android Clang Builder (dbg)': 'android_clang_asan_gyp_debug_bot',
333 'Android GN': 'android_gn_release_bot',
334 'Android GN (dbg)': 'android_gn_debug_bot',
335 'Cast Android (dbg)': 'android_cast_gyp_debug_static_bot',
338 'Mac GN': 'gn_release_bot',
339 'Mac GN (dbg)': 'gn_debug_static_bot',
342 'Chromium Mojo Android': 'android_gn_release_bot',
343 'Chromium Mojo Linux Perf': 'gn_release_bot',
344 'Chromium Mojo Android Nexus5 Perf': 'android_gn_release_bot',
345 'Chromium Mojo Windows': 'gn_release_bot_minimal_symbols_x86',
346 'Chromium Mojo Linux': 'gn_release_bot',
347 'Chromium Mojo Windows 7 Perf': 'gn_release_bot_minimal_symbols_x86',
350 'Android Builder': 'gyp_official_bot_minimal_symbols_android',
351 'Android arm64 Builder': 'gyp_official_bot_minimal_symbols_android_arm64',
352 'Win Builder': 'gyp_official_bot_minimal_symbols_x86',
353 'Win x64 Builder': 'gyp_official_bot_minimal_symbols',
354 'Mac Builder': 'gyp_official_bot',
355 'Linux Builder': 'gyp_official_bot',
358 # Windows bots take too long to link w/ full symbols and time out.
359 'Win x64 GN': 'gn_release_bot_minimal_symbols',
360 'Win x64 GN (dbg)': 'gn_debug_bot_minimal_symbols',
361 'Win8 Aura': 'gn_release_bot_minimal_symbols_x86',
362 'Win8 GN': 'gn_release_bot_minimal_symbols_x86',
363 'Win8 GN (dbg)': 'gn_debug_bot_minimal_symbols_x86',
366 'Android GN': 'android_gn_release_bot',
367 'Android GN (dbg)': 'android_gn_debug_bot',
368 'Linux GN': 'gn_release_bot',
369 'Linux GN (dbg)': 'gn_debug_bot'
372 'CrWinClang64(dbg)': 'win_clang_debug_bot',
374 'chromium.webrtc.fyi': {
375 'Android GN': 'android_gn_release_bot',
376 'Android GN (dbg)': 'android_gn_debug_bot',
377 'Linux GN': 'gn_release_bot',
378 'Linux GN (dbg)': 'gn_debug_bot',
379 'Mac GN': 'gn_release_bot',
380 'Mac GN (dbg)': 'gn_debug_static_bot',
381 'Win GN': 'gn_release_bot_minimal_symbols_x86',
382 'Win GN (dbg)': 'gn_debug_bot_minimal_symbols_x86',
385 'Linux Builder': 'swarming_gyp_release_bot',
386 'Linux Builder-Trybot': 'swarming_gyp_release_bot',
387 'Linux Tests': 'swarming_gyp_release_bot',
391 'V8 Linux GN': 'gn_release_bot',
392 'V8 Android GN (dbg)': 'android_gn_debug_bot',
395 'android_blink_compile_dbg': 'android_gyp_debug_bot',
396 'android_blink_compile_rel': 'android_gyp_release_trybot',
397 'android_chromium_gn_compile_rel': 'android_gn_release_bot',
398 'linux_chromium_gn_rel': 'gn_release_bot',
400 'tryserver.chromium.angle': {
401 'linux_angle_rel_ng': 'swarming_gpu_tests_gyp_release_trybot',
402 'linux_angle_dbg_ng': 'swarming_gpu_tests_gyp_debug_trybot',
404 'tryserver.chromium.linux': {
405 'linux_chromium_asan_rel_ng': 'swarming_asan_lsan_gyp_release_trybot',
406 'linux_full_bisect_builder': 'swarming_gyp_release_bot',
407 'linux_site_isolation': 'gyp_release_trybot',
408 'linux_chromium_compile_rel_ng': 'swarming_gyp_release_trybot',
409 'linux_chromium_rel_ng': 'swarming_gpu_tests_gn_release_trybot',
410 'linux_chromium_gn_rel': 'gn_release_trybot',
411 'linux_chromium_gn_chromeos_rel': 'chromeos_gn_release_trybot',
412 'android_chromium_gn_compile_rel': 'android_gn_release_trybot',
413 'linux_chromium_compile_dbg_ng': 'swarming_gn_debug_trybot',
414 'linux_chromium_dbg_ng': 'swarming_gn_debug_trybot',
415 'linux_chromium_trusty_dbg': 'gyp_debug_bot',
416 'linux_chromium_trusty32_dbg': 'gyp_debug_bot_x86',
417 'linux_chromium_gn_dbg': 'gn_debug_bot',
418 'linux_chromium_gn_chromeos_dbg': 'chromeos_gn_debug_bot',
419 'android_chromium_gn_compile_dbg': 'android_gn_debug_bot',
420 'linux_chromium_msan_rel_ng': 'swarming_msan_gyp_release_trybot',
421 'linux_chromium_tsan_rel_ng': 'swarming_tsan_gyp_release_trybot',
422 'linux_chromium_practice_rel_ng': 'gyp_release_trybot',
423 'linux_arm_compile': 'swarming_gyp_release_trybot_arm',
424 'linux_arm': 'swarming_gyp_release_trybot_arm_float',
425 'linux_arm_tester': 'none',
426 'linux_chromium_compile_dbg_32_ng': 'swarming_gyp_debug_trybot_x86',
427 'linux_chromium_dbg_32_ng': 'swarming_gyp_debug_trybot_x86',
428 'linux_chromium_clobber_rel_ng': 'gyp_release_trybot',
429 'linux_chromium_gn_upload': 'gn_linux_upload',
430 'cast_shell_linux': 'cast_gyp_release_trybot',
431 'linux_deterministic': 'swarming_deterministic_gyp_release_bot',
432 'linux_ecs_ozone': 'embedded_gyp_debug_bot',
434 'tryserver.chromium.mac': {
435 'mac_chromium_gn_dbg': 'gn_debug_static_bot',
436 'mac_chromium_gn_rel': 'gn_release_trybot',
437 'mac_chromium_gn_upload': 'gn_release_bot',
439 'tryserver.chromium.perf': {
440 'android_perf_bisect_builder': 'gyp_official_bot_minimal_symbols_android',
441 'android_arm64_perf_bisect_builder': 'gyp_official_bot_minimal_symbols_android_arm64',
442 'linux_perf_bisect_builder': 'gyp_official_bot',
443 'mac_perf_bisect_builder': 'gyp_official_bot',
444 'win_perf_bisect_builder': 'gyp_official_bot_minimal_symbols_x86',
445 'winx64_bisect_builder': 'gyp_official_bot_minimal_symbols',
447 'tryserver.chromium.win': {
448 'win_chromium_gn_x64_dbg': 'gn_debug_bot_minimal_symbols',
449 'win_chromium_gn_x64_rel': 'gn_release_trybot',
450 'win8_chromium_ng': 'gn_release_trybot_x86',
451 'win8_chromium_gn_dbg': 'gn_debug_bot_minimal_symbols_x86',
452 'win8_chromium_gn_rel': 'gn_release_trybot_x86',
453 'win8_chromium_gn_upload': 'gn_release_bot_minimal_symbols',
454 'win_clang_x64_dbg': 'win_clang_debug_bot',
457 'v8_linux_chromium_gn_rel': 'gn_release_trybot',
458 'v8_android_chromium_gn_dbg': 'android_gn_debug_bot',