Attempt to fix expansion of the goma directory in MB on windows.
[chromium-blink-merge.git] / tools / mb / mb_config.pyl
blob7452e10a3650b7cbd85391583c05c133b84da047
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     '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_chromeos': ['gyp', 'official', 'goma', 'chromeos'],
46     'gyp_official_bot_x86': ['gyp', 'official', 'goma', 'x86'],
47     'gyp_official_bot_minimal_symbols': ['gyp', 'official', 'minimal_symbols', 'goma'],
48     'gyp_official_bot_minimal_symbols_android': ['gyp', 'official', 'minimal_symbols', 'goma', 'android'],
49     'gyp_official_bot_minimal_symbols_android_arm64': ['gyp', 'official', 'minimal_symbols', 'goma', 'android', 'arm64'],
50     'gyp_official_bot_minimal_symbols_x86': ['gyp', 'official', 'minimal_symbols', 'goma', 'x86'],
51     'gyp_release_bot_arm': ['gyp', 'release_bot', 'arm', 'crosscompile'],
52     'gyp_release_trybot': ['gyp', 'release_trybot'],
54     # This is just for completeness; any bot that uses this config should never actually run MB.
55     'none': ['none'],
57     'swarming_asan_lsan_gyp_release_trybot': ['swarming', 'asan', 'lsan', 'release_trybot'],
58     'swarming_msan_gyp_release_trybot': ['swarming', 'chromeos', 'msan', 'gyp', 'release_trybot'],
59     'swarming_deterministic_gyp_release_bot': ['swarming', 'deterministic', 'gyp', 'release_bot'],
60     'swarming_gpu_tests_gn_release_trybot': ['swarming', 'gpu_tests', 'gn', 'release_trybot'],
61     'swarming_gpu_tests_gyp_debug_trybot': ['swarming', 'gpu_tests', 'gyp', 'debug_trybot'],
62     'swarming_gpu_tests_gyp_release_trybot': ['swarming', 'gpu_tests', 'gyp', 'release_trybot'],
63     'swarming_gn_debug_bot': ['swarming', 'gn', 'debug_bot'],
64     'swarming_gn_debug_trybot': ['swarming', 'gn', 'debug_trybot'],
65     'swarming_gn_release_bot': ['swarming', 'gn', 'release_bot'],
66     'swarming_gyp_debug_bot_no_symbols_x86': ['swarming', 'gyp', 'debug_bot', 'no_symbols', 'x86'],
67     'swarming_gyp_debug_trybot_x86': ['swarming', 'gyp', 'debug_trybot', 'x86'],
68     'swarming_gyp_release_bot': ['swarming', 'gyp', 'release_bot'],
69     'swarming_gyp_release_trybot': ['swarming', 'gyp', 'release_trybot'],
70     'swarming_gyp_release_trybot_arm': ['swarming', 'gyp', 'release_trybot', 'arm', 'crosscompile'],
71     'swarming_gyp_release_trybot_arm_float': ['swarming', 'gyp', 'release_trybot', 'arm_float', 'crosscompile'],
72     'swarming_tsan_gyp_release_trybot': ['swarming', 'disable_nacl', 'tsan', 'gyp', 'release_trybot'],
74     # clang/win doesn't work with goma yet, so this can't use debug_bot:
75     'win_clang_debug_bot': ['gn', 'clang', 'debug', 'shared', 'minimal_symbols'],
76   },
78   # This is a list of configs that do not actually exist on any bot
79   # but are used so commonly by devs that we must support them.
80   'common_dev_configs': [
81     'dev_gn_debug',
82     'dev_gn_release',
83     'dev_gyp_debug',
84     'dev_gyp_release',
85   ],
87   # This is a list of configs that some private (not publicly accessible)
88   # bot somewhere uses and that we must support. Ideally we should actually
89   # have a bot for each of these on the public waterfall. Each config should
90   # at least have a contact listed.
91   'private_configs': [
92   ],
94   # This is a list of configs that are not commonly used by that we should
95   # make some effort to support, but if it breaks that is not the end of
96   # the world. Each config should have a contact listed, and we expect the
97   # contact to be on the hook for fixing the config.
98   'unsupported_configs': [
99   ],
101   # This is a dict mapping a given 'mixin' name to a dict of settings that
102   # mb should use. See //tools/mb/docs/user_guide.md for more information.
103   'mixins': {
104     'android': {
105       'gn_args': 'target_os="android"',
106       'gyp_defines': 'OS=android',
107     },
109     'arm': {
110       'gn_args': 'target_cpu="arm"',
111       'gyp_defines': 'target_arch=arm',
112     },
114     'arm64': {
115       'gn_args': 'target_cpu="arm64"',
116       'gyp_defines': 'target_arch=arm64',
117     },
119     'arm_float': {
120       'gn_args': 'error',
121       'gyp_defines': 'target_arch=arm arm_float_abi=hard',
122     },
124     'arm64': {
125       'gn_args': 'target_cpu="arm64"',
126       'gyp_defines': 'target_arch=arm64',
127     },
129     'asan': {
130       'gn_args': 'is_asan=true',
131       'gyp_defines': 'asan=1',
132     },
134     'cast': {
135       'gn_args': '# TODO: Need the GN equivalents for a Chromecast build.',
136       'gyp_defines': 'chromecast=1',
137     },
139     'chromeos': {
140       'gn_args': 'target_os="chromeos"',
141       'gyp_defines': 'chromeos=1',
142     },
144     'clang': {
145       'gn_args': 'is_clang=true',
146       'gyp_defines': 'clang=1',
147     },
149     'crosscompile': {
150       # This mixin is only needed on GYP bots that are doing cross-compiles
151       # but are *not* targetting Android or iOS (where build/gyp_chromium
152       # will set the crosscompile variable automatically). It is not need
153       # in GN at all.
154       'gyp_crosscompile': True,
155     },
157     'dcheck_always_on': {
158       'gn_args': 'dcheck_always_on=true',
159       'gyp_defines': 'dcheck_always_on=1',
160     },
162     'debug': {
163       'gn_args': 'is_debug=true',
164     },
166     'debug_bot': {
167       'mixins': ['debug', 'shared', 'goma'],
168     },
170     'debug_bot_minimal_symbols': {
171       'mixins': ['debug_bot', 'minimal_symbols'],
172     },
174     'debug_static_bot': {
175       'mixins': ['debug', 'static', 'minimal_symbols', 'goma']
176     },
178     'debug_trybot': {
179       'mixins': ['debug_bot_minimal_symbols'],
180     },
182     'deterministic': {
183       'gn_args': 'error',
184       'gyp_defines': 'dont_embed_build_metadata=1',
185     },
187     'disable_nacl': {
188       'gn_args': 'enable_nacl=false',
189       'gyp_defines': 'disable_nacl=1',
190     },
192     'embedded': {
193       'gn_args': 'error',
194       'gyp_defines': 'embedded=1',
195     },
197     'full_symbols': {
198       'gn_args': 'symbol_level=2',
199       'gyp_defines': 'fastbuild=0',
200     },
202     'gn_linux_upload': {
203       'type': 'gn',
205       # We don't want to require a runtime dependency on glib in the
206       # GN binary; ideally we could just turn glib off, but that doesn't
207       # actually work, so we need to pretend to be doing an ozone build
208       # in order for the flag to actually take effect.
209       'gn_args': 'use_ozone=true use_glib=false',
210     },
212     'gn': {'type': 'gn'},
214     'goma': {
215       'gn_args': 'use_goma=true goma_dir="$(goma_dir)"',
216       'gyp_defines': 'use_goma=1 gomadir=$(goma_dir)',
217     },
219     'gpu_tests': {
220       'gn_args': '', # not needed in GN builds.
221       'gyp_defines': 'archive_gpu_tests=1',
222     },
224     'gyp': {'type': 'gyp'},
226     'lsan': {
227       'gn_args': 'use_lsan=true',
228       'gyp_defines': 'lsan=1',
229     },
231     'minimal_symbols': {
232       'gn_args': 'symbol_level=1',
233       'gyp_defines': 'fastbuild=1',
234     },
236     'msan': {
237       'gn_args': 'use_msan=true',
238       'gyp_defines': 'msan=1 msan_track_origins=2 use_prebuilt_instrumented_libraries=1',
239     },
241     'no_symbols': {
242       'gn_args': 'symbol_level=0',
243       'gyp_defines': 'fastbuild=2',
244     },
246     # This config is used by bots that aren't building Chromium and should
247     # never be running MB. It is used for tracking purposes. These values
248     # were picked such that if someone did try to run MB, both GN and GYP
249     # should error out.
250     'none': {
251       'gn_args': 'error',
252       'gyp_defines': 'target_arch=unknown',
253     },
255     'official': {
256       'gn_args': 'is_chrome_branded is_official_build=true is_debug=false is_component_build=false',
257       'gyp_defines': 'branding="Chrome" buildtype="Official" component=static_library',
258     },
260     'release': {
261       'gn_args': 'is_debug=false',
262     },
264     'release_bot': {
265       'mixins': ['release', 'static', 'goma'],
266     },
268     'release_bot_minimal_symbols': {
269       'mixins': ['release_bot', 'minimal_symbols'],
270     },
272     'release_trybot': {
273       'mixins': ['release_bot_minimal_symbols', 'dcheck_always_on']
274     },
276     'shared': {
277       'gn_args': 'is_component_build=true',
278       'gyp_defines': 'component=shared_library',
279     },
281     'static': {
282       'gn_args': 'is_component_build=false',
283       'gyp_defines': 'component=static_library',
284     },
286     'swarming': {
287       'gn_args': '',
288       'gyp_defines': 'test_isolation_mode=prepare',
289     },
291     'tsan': {
292       'gn_args': 'use_tsan=true',
293       'gyp_defines': 'tsan=1',
294     },
296     'x86': {
297       'gn_args': 'target_cpu="x86"',
298       'gyp_defines': 'target_arch=ia32',
299     },
300   },
302   # This is a map of buildbot master names -> buildbot builder names ->
303   # config names (where each config name is a key in the 'configs' dict,
304   # above). mb uses this dict to look up which config to use for a given bot.
305   # The builders should be sorted by the order they appear in the /builders
306   # page on the buildbots, *not* alphabetically.
307   #
308   # TODO(crbug.com/481692): Add in remaining bots on the waterfalls.
309   'masters': {
310     'chromium.chrome': {
311       'Google Chrome Win': 'gyp_official_bot_minimal_symbols_x86',
312       'Google Chrome Linux': 'gyp_official_bot_x86',
313       'Google Chrome Linux x64': 'gyp_official_bot',
314       'Google Chrome Mac': 'gyp_official_bot',
315       'Google Chrome ChromeOS': 'gyp_official_bot_chromeos',
316     },
317     'chromium.chromiumos': {
318       'Linux ChromiumOS GN': 'chromeos_gn_release_bot',
319       'Linux ChromiumOS GN (dbg)': 'chromeos_gn_debug_bot',
320     },
321     'chromium.linux': {
322       'Linux Builder': 'swarming_gn_release_bot',
323       'Linux Tests': 'swarming_gn_release_bot',
324       'Linux Builder (dbg)(32)': 'swarming_gyp_debug_bot_no_symbols_x86',
325       'Linux Tests (dbg)(1)(32)': 'swarming_gyp_debug_bot_no_symbols_x86',
326       'Linux Builder (dbg)': 'swarming_gn_debug_bot',
327       'Linux Tests (dbg)(1)': 'swarming_gn_debug_bot',
328       'Linux GN': 'gn_release_bot',
329       'Linux GN Clobber': 'gn_release_bot',
330       'Linux GN (dbg)': 'gn_debug_bot',
331       'Linux ARM': 'gyp_release_bot_arm',
332       'Cast Linux': 'cast_gyp_release_bot',
333       'Android Arm64 Builder (dbg)': 'android_gyp_debug_static_bot_arm64',
334       'Android Builder (dbg)': 'android_gyp_debug_static_bot',
335       'Android Tests (dbg)': 'android_gyp_debug_static_bot',
336       'Android Builder': 'android_gyp_release_bot',
337       'Android Tests': 'android_gyp_release_bot',
338       'Android Clang Builder (dbg)': 'android_clang_asan_gyp_debug_bot',
339       'Android GN': 'android_gn_release_bot',
340       'Android GN (dbg)': 'android_gn_debug_bot',
341       'Cast Android (dbg)': 'android_cast_gyp_debug_static_bot',
342     },
343     'chromium.mac': {
344       'Mac GN': 'gn_release_bot',
345       'Mac GN (dbg)': 'gn_debug_static_bot',
346     },
347     'chromium.mojo': {
348       'Chromium Mojo Android': 'android_gn_release_bot',
349       'Chromium Mojo Linux Perf': 'gn_release_bot',
350       'Chromium Mojo Android Nexus5 Perf': 'android_gn_release_bot',
351       'Chromium Mojo Windows': 'gn_release_bot_minimal_symbols_x86',
352       'Chromium Mojo Linux': 'gn_release_bot',
353       'Chromium Mojo Windows 7 Perf': 'gn_release_bot_minimal_symbols_x86',
354     },
355     'chromium.perf': {
356       'Android Builder': 'gyp_official_bot_minimal_symbols_android',
357       'Android arm64 Builder': 'gyp_official_bot_minimal_symbols_android_arm64',
358       'Win Builder': 'gyp_official_bot_minimal_symbols_x86',
359       'Win x64 Builder': 'gyp_official_bot_minimal_symbols',
360       'Mac Builder': 'gyp_official_bot',
361       'Linux Builder': 'gyp_official_bot',
362     },
363     'chromium.win': {
364       # Windows bots take too long to link w/ full symbols and time out.
365       'Win x64 GN': 'gn_release_bot_minimal_symbols',
366       'Win x64 GN (dbg)': 'gn_debug_bot_minimal_symbols',
367       'Win8 Aura': 'gn_release_bot_minimal_symbols_x86',
368       'Win8 GN': 'gn_release_bot_minimal_symbols_x86',
369       'Win8 GN (dbg)': 'gn_debug_bot_minimal_symbols_x86',
370     },
371     'chromium.webkit': {
372       'Android GN': 'android_gn_release_bot',
373       'Android GN (dbg)': 'android_gn_debug_bot',
374       'Linux GN': 'gn_release_bot',
375       'Linux GN (dbg)': 'gn_debug_bot'
376     },
377     'chromium.fyi': {
378       'CrWinClang64(dbg)': 'win_clang_debug_bot',
379     },
380     'chromium.webrtc.fyi': {
381       'Android GN': 'android_gn_release_bot',
382       'Android GN (dbg)': 'android_gn_debug_bot',
383       'Linux GN': 'gn_release_bot',
384       'Linux GN (dbg)': 'gn_debug_bot',
385       'Mac GN': 'gn_release_bot',
386       'Mac GN (dbg)': 'gn_debug_static_bot',
387       'Win GN': 'gn_release_bot_minimal_symbols_x86',
388       'Win GN (dbg)': 'gn_debug_bot_minimal_symbols_x86',
389     },
390     'client.skia': {
391       'Linux Builder': 'swarming_gyp_release_bot',
392       'Linux Builder-Trybot': 'swarming_gyp_release_bot',
393       'Linux Tests': 'swarming_gyp_release_bot',
394     },
396     'client.v8.fyi': {
397       'V8 Linux GN': 'gn_release_bot',
398       'V8 Android GN (dbg)': 'android_gn_debug_bot',
399     },
400     'tryserver.blink': {
401       'android_blink_compile_dbg': 'android_gyp_debug_bot',
402       'android_blink_compile_rel': 'android_gyp_release_trybot',
403       'android_chromium_gn_compile_rel': 'android_gn_release_bot',
404       'linux_chromium_gn_rel': 'gn_release_bot',
405     },
406     'tryserver.chromium.angle': {
407       'linux_angle_rel_ng': 'swarming_gpu_tests_gyp_release_trybot',
408       'linux_angle_dbg_ng': 'swarming_gpu_tests_gyp_debug_trybot',
409     },
410     'tryserver.chromium.linux': {
411       'linux_chromium_asan_rel_ng': 'swarming_asan_lsan_gyp_release_trybot',
412       'linux_full_bisect_builder': 'swarming_gyp_release_bot',
413       'linux_site_isolation': 'gyp_release_trybot',
414       'linux_chromium_compile_rel_ng': 'swarming_gyp_release_trybot',
415       'linux_chromium_rel_ng': 'swarming_gpu_tests_gn_release_trybot',
416       'linux_chromium_gn_rel': 'gn_release_trybot',
417       'linux_chromium_gn_chromeos_rel': 'chromeos_gn_release_trybot',
418       'android_chromium_gn_compile_rel': 'android_gn_release_trybot',
419       'linux_chromium_compile_dbg_ng': 'swarming_gn_debug_trybot',
420       'linux_chromium_dbg_ng': 'swarming_gn_debug_trybot',
421       'linux_chromium_trusty_dbg': 'gyp_debug_bot',
422       'linux_chromium_trusty32_dbg': 'gyp_debug_bot_x86',
423       'linux_chromium_gn_dbg': 'gn_debug_bot',
424       'linux_chromium_gn_chromeos_dbg': 'chromeos_gn_debug_bot',
425       'android_chromium_gn_compile_dbg': 'android_gn_debug_bot',
426       'linux_chromium_msan_rel_ng': 'swarming_msan_gyp_release_trybot',
427       'linux_chromium_tsan_rel_ng': 'swarming_tsan_gyp_release_trybot',
428       'linux_chromium_practice_rel_ng': 'gyp_release_trybot',
429       'linux_arm_compile': 'swarming_gyp_release_trybot_arm',
430       'linux_arm': 'swarming_gyp_release_trybot_arm_float',
431       'linux_arm_tester': 'none',
432       'linux_chromium_compile_dbg_32_ng': 'swarming_gyp_debug_trybot_x86',
433       'linux_chromium_dbg_32_ng': 'swarming_gyp_debug_trybot_x86',
434       'linux_chromium_clobber_rel_ng': 'gyp_release_trybot',
435       'linux_chromium_gn_upload': 'gn_linux_upload',
436       'cast_shell_linux': 'cast_gyp_release_trybot',
437       'linux_deterministic': 'swarming_deterministic_gyp_release_bot',
438       'linux_ecs_ozone': 'embedded_gyp_debug_bot',
439     },
440     'tryserver.chromium.mac': {
441       'mac_chromium_gn_dbg': 'gn_debug_static_bot',
442       'mac_chromium_gn_rel': 'gn_release_trybot',
443       'mac_chromium_gn_upload': 'gn_release_bot',
444     },
445     'tryserver.chromium.perf': {
446       'android_perf_bisect_builder': 'gyp_official_bot_minimal_symbols_android',
447       'android_arm64_perf_bisect_builder': 'gyp_official_bot_minimal_symbols_android_arm64',
448       'linux_perf_bisect_builder': 'gyp_official_bot',
449       'mac_perf_bisect_builder': 'gyp_official_bot',
450       'win_perf_bisect_builder': 'gyp_official_bot_minimal_symbols_x86',
451       'winx64_bisect_builder': 'gyp_official_bot_minimal_symbols',
452     },
453     'tryserver.chromium.win': {
454       'win_chromium_gn_x64_dbg': 'gn_debug_bot_minimal_symbols',
455       'win_chromium_gn_x64_rel': 'gn_release_trybot',
456       'win8_chromium_ng': 'gn_release_trybot_x86',
457       'win8_chromium_gn_dbg': 'gn_debug_bot_minimal_symbols_x86',
458       'win8_chromium_gn_rel': 'gn_release_trybot_x86',
459       'win8_chromium_gn_upload': 'gn_release_bot_minimal_symbols',
460       'win_clang_x64_dbg': 'win_clang_debug_bot',
461     },
462     'tryserver.v8': {
463       'v8_linux_chromium_gn_rel': 'gn_release_trybot',
464       'v8_android_chromium_gn_dbg': 'android_gn_debug_bot',
465     },
466   },