More MB fixes in preparation for flipping Linux bots to use MB.
[chromium-blink-merge.git] / tools / mb / mb_config.pyl
blobb660074a928245dd492e9047c0c3ff7bb38cefa0
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).
11   'configs': {
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     'chromeos_gn_debug_bot': ['chromeos', 'gn', 'debug_bot'],
24     'chromeos_gn_release_bot': ['chromeos', 'gn', 'release_bot'],
25     'chromeos_gn_release_trybot': ['chromeos', 'gn', 'release_trybot'],
26     'dev_gn_debug': ['gn', 'debug', 'shared', 'full_symbols'],
27     'dev_gn_release': ['gn', 'release', 'shared'],
28     'dev_gyp_debug': ['gyp', 'debug', 'shared', 'full_symbols'],
29     'dev_gyp_release': ['gyp', 'release', 'shared'],
30     'gn_debug_bot': ['gn', 'debug_bot'],
31     'gn_debug_bot_minimal_symbols': ['gn', 'debug_bot_minimal_symbols'],
32     'gn_debug_bot_minimal_symbols_x86': ['gn', 'debug_bot_minimal_symbols', 'x86'],
33     'gn_debug_static_bot': ['gn', 'debug_static_bot'],
34     'gn_linux_upload': ['gn_linux_upload'],
35     'gn_release_bot': ['gn', 'release_bot'],
36     'gn_release_bot_minimal_symbols': ['gn', 'release_bot_minimal_symbols'],
37     'gn_release_bot_minimal_symbols_x86': ['gn', 'release_bot_minimal_symbols', 'x86'],
38     'gn_release_trybot': ['gn', 'release_trybot'],
39     'gn_release_trybot_x86': ['gn', 'release_trybot', 'x86'],
40     'gyp_debug_bot_no_symbols_x86': ['gyp', 'debug_bot', 'no_symbols', 'x86'],
41     'gyp_release_bot': ['gyp', 'release_bot'],
42     'gyp_release_bot_arm': ['gyp', 'release_bot', 'arm'],
43     'gyp_release_trybot': ['gyp', 'release_trybot'],
44     'swarming_gyp_debug_bot': ['swarming', 'gyp', 'debug_bot'],
45     'swarming_gyp_debug_trybot': ['swarming', 'gyp', 'debug_trybot'],
46     'swarming_gyp_debug_trybot_x86': ['swarming', 'gyp', 'debug_trybot', 'x86'],
47     'swarming_gyp_release_bot': ['swarming', 'gyp', 'release_bot'],
48     'swarming_gyp_release_trybot': ['swarming', 'gyp', 'release_trybot'],
49     'swarming_gpu_tests_gyp_release_trybot': ['swarming', 'gpu_tests', 'gyp', 'release_trybot'],
51     # clang/win doesn't work with goma yet, so this can't use debug_bot:
52     'win_clang_debug_bot': ['gn', 'clang', 'debug', 'shared', 'minimal_symbols'],
53   },
55   # This is a list of configs that do not actually exist on any bot
56   # but are used so commonly by devs that we must support them.
57   'common_dev_configs': [
58     'dev_gn_debug',
59     'dev_gn_release',
60     'dev_gyp_debug',
61     'dev_gyp_release',
62   ],
64   # This is a list of configs that some private (not publicly accessible)
65   # bot somewhere uses and that we must support. Ideally we should actually
66   # have a bot for each of these on the public waterfall. Each config should
67   # at least have a contact listed.
68   'private_configs': [
69   ],
71   # This is a list of configs that are not commonly used by that we should
72   # make some effort to support, but if it breaks that is not the end of
73   # the world. Each config should have a contact listed, and we expect the
74   # contact to be on the hook for fixing the config.
75   'unsupported_configs': [
76   ],
78   # This is a dict mapping a given 'mixin' name to a dict of settings that
79   # mb should use. See //tools/mb/docs/user_guide.md for more information.
80   'mixins': {
81     'android': {
82       'gn_args': 'target_os="android"',
83       'gyp_defines': 'OS=android',
84     },
86     'arm': {
87       'gn_args': 'target_cpu="arm"',
88       'gyp_defines': 'target_arch=arm',
89     },
91     'arm64': {
92       'gn_args': 'target_cpu="arm64"',
93       'gyp_defines': 'target_arch=arm64',
94     },
96     'asan': {
97       'gn_args': 'is_asan=true',
98       'gyp_defines': 'asan=1',
99     },
101     'cast': {
102       'gn_args': '# TODO: Need the GN equivalents for a Chromecast build.',
103       'gyp_defines': 'chromecast=1',
104     },
106     'chromeos': {
107       'gn_args': 'target_os="chromeos"',
108       'gyp_defines': 'chromeos=1',
109     },
111     'clang': {
112       'gn_args': 'is_clang=true',
113       'gyp_defines': 'clang=1',
114     },
116     'dcheck_always_on': {
117       'gn_args': 'dcheck_always_on=true',
118       'gyp_defines': 'dcheck_always_on=1',
119     },
121     'debug': {
122       'gn_args': 'is_debug=true',
123       'gyp_config': 'Debug',
124     },
126     'debug_bot': {
127       'mixins': ['debug', 'shared', 'goma'],
128     },
130     'debug_bot_minimal_symbols': {
131       'mixins': ['debug_bot', 'minimal_symbols'],
132     },
134     'debug_static_bot': {
135       'mixins': ['debug', 'static', 'minimal_symbols', 'goma']
136     },
138     'debug_trybot': {
139       'mixins': ['debug_bot_minimal_symbols'],
140     },
142     'full_symbols': {
143       'gn_args': 'symbol_level=2',
144       'gyp_defines': 'fastbuild=0',
145     },
147     'gn_linux_upload': {
148       'type': 'gn',
150       # We don't want to require a runtime dependency on glib in the
151       # GN binary; ideally we could just turn glib off, but that doesn't
152       # actually work, so we need to pretend to be doing an ozone build
153       # in order for the flag to actually take effect.
154       'gn_args': 'use_ozone=true use_glib=false',
155     },
157     'gn': {'type': 'gn'},
159     'goma': {
160       'gn_args': 'use_goma=true goma_dir="$(goma_dir)"',
161       'gyp_defines': 'use_goma=1 gomadir=$(goma_dir)',
162     },
164     'gpu_tests': {
165       'gn_args': 'archive_gpu_tests=true',
166       'gyp_defines': 'archive_gpu_tests=1',
167     },
169     'gyp': {'type': 'gyp'},
171     'minimal_symbols': {
172       'gn_args': 'symbol_level=1',
173       'gyp_defines': 'fastbuild=1',
174     },
176     'no_symbols': {
177       'gn_args': 'symbol_level=0',
178       'gyp_defines': 'fastbuild=2',
179     },
181     'release': {
182       'gn_args': 'is_debug=false',
183       'gyp_config': 'Release',
184     },
186     'release_bot': {
187       'mixins': ['release', 'static', 'goma'],
188     },
190     'release_bot_minimal_symbols': {
191       'mixins': ['release_bot', 'minimal_symbols'],
192     },
194     'release_trybot': {
195       'mixins': ['release_bot_minimal_symbols', 'dcheck_always_on']
196     },
198     'shared': {
199       'gn_args': 'is_component_build=true',
200       'gyp_defines': 'component=shared_library',
201     },
203     'static': {
204       'gn_args': 'is_component_build=false',
205       'gyp_defines': 'component=static_library',
206     },
208     'swarming': {
209       'gn_args': '',
210       'gyp_defines': 'test_isolation_mode=prepare',
211     },
213     'x86': {
214       'gn_args': 'target_cpu="x86"',
215       'gyp_args': 'target_arch=ia32',
216     },
217   },
219   # This is a map of buildbot master names -> buildbot builder names ->
220   # config names (where each config name is a key in the 'configs' dict,
221   # above). mb uses this dict to look up which config to use for a given bot.
222   # The builders should be sorted by the order they appear in the /builders
223   # page on the buildbots, *not* alphabetically.
224   #
225   # TODO(crbug.com/481692): Add in remaining bots on the waterfalls.
226   'masters': {
227     'chromium.chromiumos': {
228       'Linux ChromiumOS GN': 'chromeos_gn_release_bot',
229       'Linux ChromiumOS GN (dbg)': 'chromeos_gn_debug_bot',
230     },
231     'chromium.linux': {
232       'Linux Builder': 'swarming_gyp_release_bot',
233       'Linux Tests': 'gyp_release_bot',
234       'Linux Builder (dbg)(32)': 'gyp_debug_bot_no_symbols_x86',
235       'Linux Tests (dbg)(1)(32)': 'gyp_debug_bot_no_symbols_x86',
236       'Linux Builder (dbg)': 'swarming_gyp_debug_bot',
237       'Linux Tests (dbg)(1)': 'swarming_gyp_debug_bot',
238       'Linux GN': 'gn_release_bot',
239       'Linux GN Clobber': 'gn_release_bot',
240       'Linux GN (dbg)': 'gn_debug_bot',
241       'Linux ARM': 'gyp_release_bot_arm',
242       'Cast Linux': 'cast_gyp_release_bot',
243       'Android Arm64 Builder (dbg)': 'android_gyp_debug_static_bot_arm64',
244       'Android Builder (dbg)': 'android_gyp_debug_static_bot',
245       'Android Tests (dbg)': 'android_gyp_debug_static_bot',
246       'Android Builder': 'android_gyp_release_bot',
247       'Android Tests': 'android_gyp_release_bot',
248       'Android Clang Builder (dbg)': 'android_clang_asan_gyp_debug_bot',
249       'Android GN': 'android_gn_release_bot',
250       'Android GN (dbg)': 'android_gn_debug_bot',
251       'Cast Android (dbg)': 'android_cast_gyp_debug_static_bot',
252     },
253     'chromium.mac': {
254       'Mac GN': 'gn_release_bot',
255       'Mac GN (dbg)': 'gn_debug_static_bot',
256     },
257     'chromium.win': {
258       # Windows bots take too long to link w/ full symbols and time out.
259       'Win x64 GN': 'gn_release_bot_minimal_symbols',
260       'Win x64 GN (dbg)': 'gn_debug_bot_minimal_symbols',
261       'Win8 Aura': 'gn_release_bot_minimal_symbols_x86',
262       'Win8 GN': 'gn_release_bot_minimal_symbols_x86',
263       'Win8 GN (dbg)': 'gn_debug_bot_minimal_symbols_x86',
264     },
265     'chromium.webkit': {
266       'Android GN': 'android_gn_release_bot',
267       'Android GN (dbg)': 'android_gn_debug_bot',
268       'Linux GN': 'gn_release_bot',
269       'Linux GN (dbg)': 'gn_debug_bot'
270     },
271     'chromium.fyi': {
272       'CrWinClang64(dbg)': 'win_clang_debug_bot',
273     },
274     'chromium.webrtc.fyi': {
275       'Android GN': 'android_gn_release_bot',
276       'Android GN (dbg)': 'android_gn_debug_bot',
277       'Linux GN': 'gn_release_bot',
278       'Linux GN (dbg)': 'gn_debug_bot',
279       'Mac GN': 'gn_release_bot',
280       'Mac GN (dbg)': 'gn_debug_static_bot',
281       'Win GN': 'gn_release_bot_minimal_symbols_x86',
282       'Win GN (dbg)': 'gn_debug_bot_minimal_symbols_x86',
283     },
284     'client.skia': {
285       'Linux Builder': 'swarming_gyp_release_bot',
286       'Linux Builder-Trybot': 'swarming_gyp_release_bot',
287       'Linux Tests': 'swarming_gyp_release_bot',
288     },
290     'client.v8.fyi': {
291       'V8 Linux GN': 'gn_release_bot',
292       'V8 Android GN (dbg)': 'android_gn_debug_bot',
293     },
294     'tryserver.blink': {
295       'android_blink_compile_dbg': 'android_gyp_debug_bot',
296       'android_blink_compile_rel': 'android_gyp_release_trybot',
297       'android_chromium_gn_compile_rel': 'android_gn_release_bot',
298       'linux_chromium_gn_rel': 'gn_release_bot',
299     },
300     'tryserver.chromium.linux': {
301       'linux_full_bisect_builder': 'swarming_gyp_release_bot',
302       'linux_chromium_compile_rel_ng': 'swarming_gyp_release_trybot',
303       'linux_chromium_rel_ng': 'swarming_gpu_tests_gyp_release_trybot',
304       'linux_chromium_gn_rel': 'gn_release_trybot',
305       'linux_chromium_gn_chromeos_rel': 'chromeos_gn_release_trybot',
306       'android_chromium_gn_compile_rel': 'android_gn_release_trybot',
307       'linux_chromium_compile_dbg_ng': 'swarming_gyp_debug_trybot',
308       'linux_chromium_dbg_ng': 'swarming_gyp_debug_trybot',
309       'linux_chromium_gn_dbg': 'gn_debug_bot',
310       'linux_chromium_gn_chromeos_dbg': 'chromeos_gn_debug_bot',
311       'android_chromium_gn_compile_dbg': 'android_gn_debug_bot',
312       'linux_chromium_compile_dbg_32_ng': 'swarming_gyp_debug_trybot_x86',
313       'linux_chromium_dbg_32_ng': 'swarming_gyp_debug_trybot_x86',
314       'linux_chromium_clobber_rel_ng': 'gyp_release_trybot',
315       'linux_chromium_gn_upload': 'gn_linux_upload',
316     },
317     'tryserver.chromium.mac': {
318       'mac_chromium_gn_dbg': 'gn_debug_static_bot',
319       'mac_chromium_gn_rel': 'gn_release_trybot',
320       'mac_chromium_gn_upload': 'gn_release_bot',
321     },
322     'tryserver.chromium.win': {
323       'win_chromium_gn_x64_dbg': 'gn_debug_bot',
324       'win_chromium_gn_x64_rel': 'gn_release_trybot',
325       'win8_chromium_ng': 'gn_release_trybot_x86',
326       'win8_chromium_gn_dbg': 'gn_debug_bot_minimal_symbols_x86',
327       'win8_chromium_gn_rel': 'gn_release_trybot_x86',
328       'win8_chromium_gn_upload': 'gn_release_bot_minimal_symbols',
329       'win_clang_x64_dbg': 'win_clang_debug_bot',
330     },
331     'tryserver.v8': {
332       'v8_linux_chromium_gn_rel': 'gn_release_trybot',
333       'v8_android_chromium_gn_dbg': 'android_gn_debug_bot',
334     },
335   },