blob: 6ce2b74466d7134d5002aa8c8b4bed714e57c49a [file] [log] [blame]
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +01001# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9# FOR DETAILS ON THIS FILE SEE THE MAIN COPY IN //tools/mb/mb_config.pyl.
10# This is configuration for standalone WebRTC bots. It is used to keep the bot
11# configurations source-side instead of in the buildbot scripts. That makes it
12# easy to try different configurations of GYP and GN in tryjob patches.
13
14{
ehmaldonadod046d982016-08-08 06:59:14 -070015 # This is a map of buildbot master names -> buildbot builder names ->
16 # config names (where each config name is a key in the 'configs' dict,
17 # above). mb uses this dict to look up which config to use for a given bot.
18 # The builders should be sorted by the order they appear in the /builders
19 # page on the buildbots, *not* alphabetically.
20 'masters': {
21 'client.webrtc': {
ehmaldonado09abaa02016-08-09 02:26:16 -070022 # iOS
ehmaldonadod046d982016-08-08 06:59:14 -070023 'iOS32 Debug': 'ios_gyp_debug_bot_arm_device',
24 'iOS32 Release': 'ios_gyp_release_bot_arm_device',
25 'iOS64 Debug': 'ios_gyp_debug_bot_arm64_device',
26 'iOS64 Release': 'ios_gyp_release_bot_arm64_device',
27 'iOS32 Debug Simulator': 'ios_gyp_debug_bot_x86',
28 'iOS64 Debug Simulator': 'ios_gyp_debug_bot_x64',
29 'iOS64 Debug (GN)': 'ios_gn_debug_bot_arm64_device',
30 'iOS64 Release (GN)': 'ios_gn_release_bot_arm64_device',
ehmaldonado09abaa02016-08-09 02:26:16 -070031
32 # Linux
33 'Linux32 ARM': 'gyp_release_bot_arm',
34 'Linux32 Debug': 'gyp_debug_bot_x86',
35 'Linux32 Release': 'gyp_release_bot_x86',
36 'Linux64 Debug': 'gyp_debug_bot_x64',
37 'Linux64 Release': 'gyp_release_bot_x64',
38 'Linux Asan': 'gyp_asan_lsan_clang_release_bot_x64',
39 'Linux Memcheck': 'gyp_memcheck_release_bot_x64',
40 'Linux MSan': 'gyp_msan_clang_release_bot_x64',
41 'Linux Tsan v2': 'gyp_tsan_clang_release_bot_x64',
42 'Linux UBSan': 'gyp_ubsan_clang_release_bot_x64',
43 'Linux UBSan vptr': 'gyp_ubsan_vptr_clang_release_bot_x64',
44 'Linux64 Release [large tests]': 'gyp_release_bot_x64',
kjellander3cb0c572016-08-09 13:00:57 -070045 'Linux64 Debug (GN)': 'gn_debug_bot_x64',
46 'Linux64 Release (GN)': 'gn_release_bot_x64',
ehmaldonado89b0ca82016-08-09 08:15:03 -070047
48 # Android
49 'Android32 Builder': 'android_gyp_release_bot_arm',
50 'Android32 Builder (dbg)': 'android_gyp_debug_bot_arm',
51 'Android32 Builder x86': 'android_gyp_release_bot_x86',
52 'Android32 Builder x86 (dbg)': 'android_gyp_debug_bot_x86',
53 'Android32 Builder MIPS (dbg)': 'android_gyp_clang_debug_bot_mipsel',
54 'Android32 Clang (dbg)': 'android_gyp_clang_debug_bot_arm',
55 'Android64 Builder': 'android_gyp_release_bot_arm64',
56 'Android64 Builder (dbg)': 'android_gyp_debug_bot_arm64',
57 'Android64 Builder x64 (dbg)': 'android_gyp_debug_bot_x64',
58 'Android32 GN': 'android_gn_release_bot_arm',
59 'Android32 GN (dbg)': 'android_gn_debug_bot_arm',
60 'Android32 Tests (L Nexus5)(dbg)': 'none',
61 'Android32 Tests (L Nexus5)': 'none',
62 'Android32 Tests (L Nexus7.2)(dbg)': 'none',
63 'Android32 Tests (L Nexus7.2)': 'none',
64 'Android64 Tests (L Nexus9)': 'none',
ehmaldonadod046d982016-08-08 06:59:14 -070065 },
66 'tryserver.webrtc': {
ehmaldonado09abaa02016-08-09 02:26:16 -070067 # iOS
kjellander3cb0c572016-08-09 13:00:57 -070068 'ios_dbg': 'ios_gyp_debug_bot_arm_device',
69 'ios_rel': 'ios_gyp_release_bot_arm_device',
70 'ios_arm64_dbg': 'ios_gyp_debug_bot_arm64_device',
71 'ios_arm64_rel': 'ios_gyp_release_bot_arm64_device',
72 'ios32_sim_dbg': 'ios_gyp_debug_bot_x86',
73 'ios64_sim_dbg': 'ios_gyp_debug_bot_x64',
74 'ios64_gn_dbg': 'ios_gn_debug_bot_arm64_device',
75 'ios64_gn_rel': 'ios_gn_release_bot_arm64_device',
ehmaldonado09abaa02016-08-09 02:26:16 -070076
77 # Linux
kjellander3cb0c572016-08-09 13:00:57 -070078 'linux_compile_dbg': 'gyp_debug_bot_x64',
79 'linux_compile_rel': 'gyp_release_bot_x64',
80 'linux_dbg': 'gyp_debug_bot_x64',
81 'linux_rel': 'gyp_release_bot_x64',
82 'linux_gn_dbg': 'gn_debug_bot_x64',
83 'linux_gn_rel': 'gn_release_bot_x64',
84 'linux_arm': 'gyp_release_bot_arm',
85 'linux_asan': 'gyp_asan_lsan_clang_release_bot_x64',
86 'linux_memcheck': 'gyp_memcheck_release_bot_x64',
87 'linux_msan': 'gyp_msan_clang_release_bot_x64',
88 'linux_tsan2': 'gyp_tsan_clang_release_bot_x64',
89 'linux_ubsan': 'gyp_ubsan_clang_release_bot_x64',
90 'linux_ubsan_vptr': 'gyp_ubsan_vptr_clang_release_bot_x64',
91 'linux_baremetal': 'gyp_release_bot_x64',
92 'linux_swarming': 'swarming_gyp_debug_bot_x64',
ehmaldonado89b0ca82016-08-09 08:15:03 -070093
94 # Android
kjellander3cb0c572016-08-09 13:00:57 -070095 'android_compile_dbg': 'android_gyp_debug_bot_arm',
96 'android_compile_rel': 'android_gyp_release_bot_arm',
97 'android_compile_arm64_dbg': 'android_gyp_debug_bot_arm64',
98 'android_compile_arm64_rel': 'android_gyp_release_bot_arm64',
99 'android_compile_x86_dbg': 'android_gyp_debug_bot_x86',
100 'android_compile_x86_rel': 'android_gyp_release_bot_x86',
101 'android_compile_x64_dbg': 'android_gyp_debug_bot_x64',
102 'android_compile_mips_dbg': 'android_gyp_clang_debug_bot_mipsel',
103 'android_dbg': 'android_gyp_debug_bot_arm',
104 'android_rel': 'android_gyp_release_bot_arm',
105 'android_clang_dbg': 'android_gyp_clang_debug_bot_arm',
106 'android_amd64_rel': 'android_gyp_release_bot_arm64',
107 'android_n6': 'android_gyp_debug_bot_arm',
108 'android_gn_dbg': 'android_gn_debug_bot_arm',
109 'android_gn_rel': 'android_gn_release_bot_arm',
ehmaldonadod046d982016-08-08 06:59:14 -0700110 },
111 },
112
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100113 # This is the list of configs that you can pass to mb; each config
114 # represents a particular combination of GYP_DEFINES/gn args that
115 # we must support. A given config *may* be platform-specific but
116 # is not necessarily so (i.e., we might have mac, win, and linux
117 # bots all using the 'gn_release_bot' config).
118 'configs': {
ehmaldonado09abaa02016-08-09 02:26:16 -0700119 # iOS
ehmaldonadod046d982016-08-08 06:59:14 -0700120 'ios_gn_debug_bot_arm64_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700121 'ios', 'gn', 'ios_debug_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700122 ],
123 'ios_gn_release_bot_arm64_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700124 'ios', 'gn', 'ios_release_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700125 ],
126 'ios_gyp_debug_bot_arm_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700127 'ios', 'gyp', 'ios_debug_bot', 'arm', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700128 ],
129 'ios_gyp_release_bot_arm_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700130 'ios', 'gyp', 'ios_release_bot', 'arm', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700131 ],
132 'ios_gyp_debug_bot_arm64_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700133 'ios', 'gyp', 'ios_debug_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700134 ],
135 'ios_gyp_release_bot_arm64_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700136 'ios', 'gyp', 'ios_release_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700137 ],
138 'ios_gyp_debug_bot_x86': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700139 'ios', 'gyp', 'ios_debug_bot', 'x86'
ehmaldonadod046d982016-08-08 06:59:14 -0700140 ],
141 'ios_gyp_debug_bot_x64': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700142 'ios', 'gyp', 'ios_release_bot', 'x64'
ehmaldonadod046d982016-08-08 06:59:14 -0700143 ],
ehmaldonado09abaa02016-08-09 02:26:16 -0700144
145 # Linux
146 'gyp_release_bot_arm': [
kjellander3cb0c572016-08-09 13:00:57 -0700147 'gyp', 'openh264_release_bot', 'arm'
ehmaldonado09abaa02016-08-09 02:26:16 -0700148 ],
149 'gyp_debug_bot_x86': [
kjellander3cb0c572016-08-09 13:00:57 -0700150 'gyp', 'openh264_debug_bot', 'x86'
ehmaldonado09abaa02016-08-09 02:26:16 -0700151 ],
152 'gyp_release_bot_x86': [
kjellander3cb0c572016-08-09 13:00:57 -0700153 'gyp', 'openh264_release_bot', 'x86'
ehmaldonado09abaa02016-08-09 02:26:16 -0700154 ],
155 'gyp_debug_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700156 'gyp', 'openh264_debug_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700157 ],
158 'gyp_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700159 'gyp', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700160 ],
161 'gyp_asan_lsan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700162 'gyp', 'asan', 'lsan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700163 ],
164 'gyp_memcheck_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700165 'gyp', 'memcheck', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700166 ],
167 'gyp_msan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700168 'gyp', 'msan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700169 ],
170 'gyp_tsan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700171 'gyp', 'tsan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700172 ],
173 'gyp_ubsan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700174 'gyp', 'ubsan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700175 ],
176 'gyp_ubsan_vptr_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700177 'gyp', 'ubsan_vptr', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700178 ],
kjellander3cb0c572016-08-09 13:00:57 -0700179 'gn_debug_bot_x64': [
180 'gn', 'openh264_debug_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700181 ],
kjellander3cb0c572016-08-09 13:00:57 -0700182 'gn_release_bot_x64': [
183 'gn', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700184 ],
kjellander3cb0c572016-08-09 13:00:57 -0700185 'swarming_gyp_debug_bot_x64': [
186 'swarming', 'gyp', 'openh264_debug_bot', 'x64'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700187 ],
188
189 # Android
ehmaldonado89b0ca82016-08-09 08:15:03 -0700190 'android_gyp_debug_bot_arm': [
191 'android', 'gyp', 'debug_bot', 'arm'
192 ],
kjellander3cb0c572016-08-09 13:00:57 -0700193 'android_gyp_release_bot_arm': [
194 'android', 'gyp', 'release_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700195 ],
196 'android_gyp_debug_bot_x86': [
197 'android', 'gyp', 'debug_bot', 'x86'
198 ],
kjellander3cb0c572016-08-09 13:00:57 -0700199 'android_gyp_release_bot_x86': [
200 'android', 'gyp', 'release_bot', 'x86'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700201 ],
202 'android_gyp_clang_debug_bot_arm': [
203 'android', 'gyp', 'clang', 'debug_bot', 'arm'
204 ],
kjellander3cb0c572016-08-09 13:00:57 -0700205 'android_gyp_clang_debug_bot_mipsel': [
206 'android', 'gyp', 'clang', 'debug_bot', 'mipsel'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700207 ],
208 'android_gyp_debug_bot_arm64': [
209 'android', 'gyp', 'debug_bot', 'arm64'
210 ],
kjellander3cb0c572016-08-09 13:00:57 -0700211 'android_gyp_release_bot_arm64': [
212 'android', 'gyp', 'release_bot', 'arm64'
213 ],
ehmaldonado89b0ca82016-08-09 08:15:03 -0700214 'android_gyp_debug_bot_x64': [
215 'android', 'gyp', 'debug_bot', 'x64'
216 ],
ehmaldonado89b0ca82016-08-09 08:15:03 -0700217 'android_gn_debug_bot_arm': [
218 'android', 'gn', 'debug_bot', 'arm'
219 ],
kjellander3cb0c572016-08-09 13:00:57 -0700220 'android_gn_release_bot_arm': [
221 'android', 'gn', 'release_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700222 ],
223
224 # This is used for tracking purposes; any bot that uses this config
225 # should never actually run MB.
226 'none': [
227 'error',
228 ],
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100229 },
230
231 # This is a dict mapping a given 'mixin' name to a dict of settings that
232 # mb should use. See //tools/mb/docs/user_guide.md for more information.
233 'mixins': {
ehmaldonado89b0ca82016-08-09 08:15:03 -0700234 'android': {
235 'gn_args': 'target_os="android"',
236 'gyp_defines': 'OS=android',
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100237 },
238
239 'arm': {
240 'gn_args': 'target_cpu="arm"',
241 'gyp_defines': 'target_arch=arm',
242 },
243
244 'arm64': {
245 'gn_args': 'target_cpu="arm64"',
246 'gyp_defines': 'target_arch=arm64',
247 },
248
ehmaldonado09abaa02016-08-09 02:26:16 -0700249 'asan': {
250 'gn_args': 'is_asan=true',
251 'gyp_defines': 'asan=1',
252 },
253
254 'clang': {
255 'gn_args': 'is_clang=true',
256 'gyp_defines': 'clang=1',
257 },
258
259 'dcheck_always_on': {
260 'gn_args': 'dcheck_always_on=true',
261 'gyp_defines': 'dcheck_always_on=1',
262 },
263
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100264 'debug': {
265 'gn_args': 'is_debug=true',
266 },
267
268 'debug_bot': {
ehmaldonado09abaa02016-08-09 02:26:16 -0700269 'mixins': ['debug', 'shared', 'goma'],
270 },
271
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100272 'device': {
kjellander@webrtc.org0c74ae12016-02-25 08:41:10 +0100273 'gn_args': 'ios_enable_code_signing=false',
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100274 'gyp_defines': 'chromium_ios_signing=0',
275 },
276
ehmaldonado89b0ca82016-08-09 08:15:03 -0700277 # This mixin is used to force configs that use it to fail. It
278 # is used in two cases: when we have bots that we haven't looked
279 # at yet and don't know whether they need MB or not, and for bots
280 # that are test-only and should never run MB.
281 'error': {
282 'gn_args': 'error',
283 'gyp_defines': 'target_arch=unknown',
284 },
285
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100286 'gn': {'type': 'gn'},
287
ehmaldonado09abaa02016-08-09 02:26:16 -0700288 'goma': {
289 # The MB code will properly escape goma_dir if necessary in the GYP
290 # code path; the GN code path needs no escaping.
291 'gn_args': 'use_goma=true',
292 'gyp_defines': 'use_goma=1',
293 },
294
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100295 'gyp': {'type': 'gyp'},
296
ehmaldonado89b0ca82016-08-09 08:15:03 -0700297 'ios': {
298 'gn_args': 'target_os="ios"',
299 'gyp_defines': 'OS=ios',
300 },
301
ehmaldonado09abaa02016-08-09 02:26:16 -0700302 'ios_debug_bot': {
303 'mixins': ['debug', 'shared']
304 },
305
ehmaldonado09abaa02016-08-09 02:26:16 -0700306 'ios_release_bot': {
307 'mixins': ['release', 'static']
308 },
309
ehmaldonado09abaa02016-08-09 02:26:16 -0700310 'lsan': {
311 'gn_args': 'is_lsan=true',
312 'gyp_defines': 'lsan=1',
313 },
314
315 'memcheck': {
316 'gyp_defines': 'build_for_tool=memcheck',
317 },
318
ehmaldonado89b0ca82016-08-09 08:15:03 -0700319 'mipsel': {
320 'gn_args': 'target_cpu="mipsel"',
321 'gyp_defines': 'target_arch=mipsel',
322 },
323
ehmaldonado09abaa02016-08-09 02:26:16 -0700324 'msan': {
325 'gn_args': ('is_msan=true msan_track_origins=2 '
326 'use_prebuilt_instrumented_libraries=true'),
327 'gyp_defines': ('msan=1 msan_track_origins=2 '
328 'use_prebuilt_instrumented_libraries=1'),
329 },
330
ehmaldonado09abaa02016-08-09 02:26:16 -0700331 'openh264': {
332 'gn_args': 'ffmpeg_branding="Chrome" rtc_use_h264=true',
333 'gyp_defines': 'ffmpeg_branding=Chrome rtc_use_h264=1',
334 },
335
kjellander3cb0c572016-08-09 13:00:57 -0700336 'openh264_debug_bot': {
337 'mixins': ['openh264', 'debug_bot'],
338 },
339
340 'openh264_release_bot': {
341 'mixins': ['openh264', 'release_bot'],
342 },
343
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100344 'release': {
345 'gn_args': 'is_debug=false',
346 },
347
348 'release_bot': {
kjellander3cb0c572016-08-09 13:00:57 -0700349 'mixins': ['release', 'static', 'dcheck_always_on', 'goma'],
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100350 },
351
352 'shared': {
353 'gn_args': 'is_component_build=true',
354 'gyp_defines': 'component=shared_library',
355 },
356
357 'static': {
358 'gn_args': 'is_component_build=false',
359 'gyp_defines': 'component=static_library',
360 },
361
ehmaldonado09abaa02016-08-09 02:26:16 -0700362 'swarming': {
363 'gn_args': '',
364 'gyp_defines': 'test_isolation_mode=prepare',
365 },
366
kjellander3cb0c572016-08-09 13:00:57 -0700367 'tsan': {
368 'gn_args': 'is_tsan=true',
369 'gyp_defines': 'tsan=1',
370 },
371
ehmaldonado09abaa02016-08-09 02:26:16 -0700372 'ubsan': {
373 'gn_args': 'is_ubsan=true',
374 'gyp_defines': 'ubsan=1',
375 },
376
377 'ubsan_vptr': {
378 'gn_args': 'is_ubsan_vptr=true',
379 'gyp_defines': 'ubsan_vptr=1',
380 },
381
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100382 'x64': {
383 'gn_args': 'target_cpu="x64"',
384 'gyp_defines': 'target_arch=x64',
385 },
386
387 'x86': {
388 'gn_args': 'target_cpu="x86"',
389 'gyp_defines': 'target_arch=ia32',
390 },
391 },
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100392}