blob: 746af606712216ff2298bdd8fc207e4aaaed8f78 [file] [log] [blame]
Oleh Prypin1a0593f2019-03-11 09:43:28 +01001#!/usr/bin/env lucicfg
2
3# Copyright (c) 2019 The WebRTC project authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7# https://chromium.googlesource.com/infra/luci/luci-go/+/master/lucicfg/doc/
8
9WEBRTC_GIT = "https://webrtc.googlesource.com/src"
10WEBRTC_GERRIT = "https://webrtc-review.googlesource.com/src"
11
12# Top-level configs:
13
14lucicfg.config(
15 config_dir = ".",
16 tracked_files = [
17 "commit-queue.cfg",
18 "cr-buildbucket.cfg",
19 "luci-logdog.cfg",
20 "luci-milo.cfg",
Oleh Prypin71d17422019-03-28 08:43:16 +010021 "luci-notify.cfg",
Oleh Prypin705b6a62019-04-03 23:10:51 +020022 "luci-notify/**/*",
Oleh Prypin1a0593f2019-03-11 09:43:28 +010023 "luci-scheduler.cfg",
24 "project.cfg",
25 ],
26)
27
28luci.project(
29 name = "webrtc",
30 buildbucket = "cr-buildbucket.appspot.com",
31 logdog = "luci-logdog.appspot.com",
32 milo = "luci-milo.appspot.com",
Oleh Prypin71d17422019-03-28 08:43:16 +010033 notify = "luci-notify.appspot.com",
Oleh Prypin1a0593f2019-03-11 09:43:28 +010034 scheduler = "luci-scheduler.appspot.com",
35 swarming = "chromium-swarm.appspot.com",
36 acls = [
37 acl.entry(
38 [acl.BUILDBUCKET_READER, acl.LOGDOG_READER, acl.PROJECT_CONFIGS_READER, acl.SCHEDULER_READER],
39 groups = ["all"],
40 ),
41 acl.entry(acl.LOGDOG_WRITER, groups = ["luci-logdog-chromium-writers"]),
42 acl.entry(acl.SCHEDULER_OWNER, groups = ["project-webrtc-admins"]),
43 ],
44)
45
46luci.logdog(
47 gs_bucket = "chromium-luci-logdog",
48)
49
50luci.milo(
51 logo = "https://storage.googleapis.com/chrome-infra/webrtc-logo-vert-retro-255x305.png",
52)
53
54luci.cq(
55 status_host = "chromium-cq-status.appspot.com",
56 submit_max_burst = 1,
57 submit_burst_delay = 1 * time.minute,
58)
59
60luci.gitiles_poller(
61 name = "webrtc-gitiles-trigger-master",
62 bucket = "ci",
63 repo = WEBRTC_GIT,
64)
65
66# Bucket definitions:
67
68luci.bucket(
69 name = "try",
70 acls = [
71 acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [
72 "service-account-cq",
73 "project-webrtc-tryjob-access",
74 ]),
75 ],
76)
77
78luci.bucket(
79 name = "ci",
80 acls = [
81 acl.entry(acl.BUILDBUCKET_TRIGGERER, users = [
82 "luci-scheduler@appspot.gserviceaccount.com",
83 ]),
84 ],
85)
86
87luci.bucket(
88 name = "perf",
89 acls = [
90 acl.entry(acl.BUILDBUCKET_TRIGGERER, users = [
91 "luci-scheduler@appspot.gserviceaccount.com",
92 "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
93 ]),
94 ],
95)
96
97luci.bucket(
98 name = "cron",
99 acls = [
100 acl.entry(acl.BUILDBUCKET_TRIGGERER, users = [
101 "luci-scheduler@appspot.gserviceaccount.com",
102 ]),
103 ],
104)
105
106# Commit queue definitions:
107
108luci.cq_group(
109 name = "cq",
110 tree_status_host = "webrtc-status.appspot.com",
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100111 watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/heads/master"])],
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100112 acls = [
113 acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-committers"]),
114 acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]),
115 ],
116 retry_config = cq.RETRY_ALL_FAILURES,
117)
118
119luci.cq_group(
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100120 name = "cq_branch",
121 watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/branch-heads/.+"])],
122 acls = [
123 acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-committers"]),
124 acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]),
125 ],
126 retry_config = cq.RETRY_ALL_FAILURES,
127)
128
129luci.cq_group(
130 name = "cq_infra",
131 watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/heads/infra/config"])],
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100132 acls = [
133 acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-admins"]),
134 acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]),
135 ],
136 retry_config = cq.RETRY_ALL_FAILURES,
137)
138
139luci.cq_tryjob_verifier(
140 builder = "presubmit",
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100141 cq_group = "cq_infra",
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100142)
143
Oleh Prypin71d17422019-03-28 08:43:16 +0100144# Notifier definitions:
145
146luci.notifier(
147 name = "ci_notifier",
148 on_failure = True,
149 notify_emails = ["webrtc-sheriffs-robots@google.com"],
Oleh Prypin705b6a62019-04-03 23:10:51 +0200150 template = luci.notifier_template(
151 name = "ci",
152 body = io.read_file("luci-notify/email-templates/ci.template"),
153 ),
Oleh Prypin71d17422019-03-28 08:43:16 +0100154)
155
156luci.notifier(
157 name = "cron_notifier",
158 on_failure = True,
159 notify_emails = ["webrtc-troopers-robots@google.com"],
Oleh Prypin705b6a62019-04-03 23:10:51 +0200160 template = luci.notifier_template(
161 name = "cron",
162 body = io.read_file("luci-notify/email-templates/cron.template"),
163 ),
Oleh Prypin71d17422019-03-28 08:43:16 +0100164)
165
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100166# Recipe definitions:
167
168def recipe(recipe, pkg = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"):
169 return luci.recipe(
170 name = recipe.split("/")[-1],
171 cipd_package = pkg,
172 cipd_version = "refs/heads/master",
173 recipe = recipe,
174 )
175
176recipe("chromium_trybot")
177recipe("run_presubmit")
178recipe("webrtc/auto_roll_webrtc_deps")
179recipe("webrtc/ios")
180recipe("webrtc/ios_api_framework")
181recipe("webrtc/libfuzzer")
182recipe("webrtc/more_configs")
183recipe("webrtc/noop")
184recipe("webrtc/standalone")
185recipe("lkgr_finder", pkg = "infra/recipe_bundles/chromium.googlesource.com/infra/infra")
186
187# Console definitions:
188
189luci.console_view(name = "ci", title = "Main", repo = WEBRTC_GIT, header = "console-header.textpb")
190luci.console_view(name = "perf", title = "Perf", repo = WEBRTC_GIT, header = "console-header.textpb")
191luci.list_view(name = "cron", title = "Cron")
192luci.console_view(name = "fyi", title = "FYI", repo = WEBRTC_GIT, header = "console-header.textpb")
193luci.list_view(name = "try", title = "Tryserver")
194
195def add_milo(builder, views):
196 """Add Milo console entries for the builder.
197
198 Args:
199 builder: builder name (str).
200 views: dict where keys are names of consoles and values are either a
201 category for the console (str, pipe-separated) or True, which means
202 adding to a list view rather than a console.
203 """
204 for view_name, category in views.items():
205 if category == None:
206 continue
207 elif type(category) == "string":
208 category, _, short_name = category.rpartition("|")
209 luci.console_view_entry(
210 console_view = view_name,
211 builder = builder,
212 category = category or None,
213 short_name = short_name or None,
214 )
215 elif category == True:
216 luci.list_view_entry(
217 list_view = view_name,
218 builder = builder,
219 )
220 else:
221 fail("Unexpected value for category: %r" % category)
222
223# Builder-defining functions:
224
225def webrtc_builder(name, recipe = "standalone", dimensions = {}, priority = 30, **kwargs):
226 dimensions = merge_dicts({"cpu": "x86-64"}, dimensions)
227
228 return luci.builder(
229 name = name,
Oleh Prypin705b6a62019-04-03 23:10:51 +0200230 executable = recipe,
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100231 dimensions = {k: v for k, v in dimensions.items() if v != None},
232 execution_timeout = 2 * time.hour,
233 priority = priority,
234 build_numbers = True,
235 swarming_tags = ["vpython:native-python-wrapper"],
236 **kwargs
237 )
238
239def ci_builder(
240 name,
241 ci_cat,
242 perf_cat = None,
243 fyi_cat = None,
244 properties = {},
245 dimensions = {},
246 prioritized = False,
Oleh Prypinf5432c52019-03-19 15:10:37 +0100247 enabled = True,
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100248 **kwargs):
Oleh Prypine5677672019-04-25 12:21:35 +0200249 """Add a post-submit builder.
250
251 Args:
252 name: builder name (str).
253 ci_cat: the category + name for the /ci/ console, or None to omit from the console.
254 perf_cat: the category + name for the /perf/ console, or None to omit from the console.
255 fyi_cat: the category + name for the /fyi/ console, or None to omit from the console.
256 properties: dict of properties to pass to the recipe (on top of the default ones).
257 dimensions: dict of Swarming dimensions (strings) to search machines by.
258 prioritized: True to make this builder have a higher priority and never batch builds.
259 enabled: False to exclude this builder from consoles and failure notifications.
260 **kwargs: Pass on to webrtc_builder / luci.builder.
261 Returns:
262 A luci.builder.
263
264 Notifications are also disabled if a builder is not on either of /ci/ or /perf/ consoles.
265 """
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100266 if prioritized:
267 kwargs["triggering_policy"] = scheduler.greedy_batching(
268 max_batch_size = 1,
269 max_concurrent_invocations = 3,
270 )
271 kwargs["priority"] = 29
272
Oleh Prypinf5432c52019-03-19 15:10:37 +0100273 if enabled:
274 add_milo(name, {"ci": ci_cat, "perf": perf_cat, "fyi": fyi_cat})
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100275 return webrtc_builder(
276 name = name,
277 properties = merge_dicts({"mastername": "client.webrtc"}, properties),
278 dimensions = merge_dicts({"pool": "luci.webrtc.ci"}, dimensions),
279 bucket = "ci",
280 service_account = "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
Oleh Prypinf5432c52019-03-19 15:10:37 +0100281 triggered_by = ["webrtc-gitiles-trigger-master"] if enabled else None,
Oleh Prypin71d17422019-03-28 08:43:16 +0100282 repo = WEBRTC_GIT,
Oleh Prypinae12e172019-04-05 14:51:52 +0200283 notifies = ["ci_notifier"] if enabled and (ci_cat or perf_cat) else None,
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100284 **kwargs
285 )
286
287def try_builder(
288 name,
289 try_cat = True,
290 fyi_cat = None,
291 properties = {},
292 dimensions = {},
293 cq = {},
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100294 branch_cq = True,
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100295 **kwargs):
Oleh Prypine5677672019-04-25 12:21:35 +0200296 """Add a pre-submit builder.
297
298 Args:
299 name: builder name (str).
300 try_cat: boolean, whether to include this builder in the /try/ console. See also: `add_milo`.
301 fyi_cat: the category + name for the /fyi/ console, or None to omit from the console.
302 properties: dict of properties to pass to the recipe (on top of the default ones).
303 dimensions: dict of Swarming dimensions (strings) to search machines by.
304 cq: None to exclude this from all commit queues, or a dict of kwargs for cq_tryjob_verifier.
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100305 branch_cq: False to exclude this builder just from the release-branch CQ.
Oleh Prypine5677672019-04-25 12:21:35 +0200306 **kwargs: Pass on to webrtc_builder / luci.builder.
307 Returns:
308 A luci.builder.
309 """
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100310 add_milo(name, {"try": try_cat, "fyi": fyi_cat})
311 if cq != None:
312 luci.cq_tryjob_verifier(
313 builder = name,
314 cq_group = "cq",
315 **cq
316 )
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100317 if branch_cq:
318 luci.cq_tryjob_verifier(
319 builder = name,
320 cq_group = "cq_branch",
321 **cq
322 )
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100323
324 return webrtc_builder(
325 name = name,
326 properties = merge_dicts({"mastername": "tryserver.webrtc"}, properties),
327 dimensions = merge_dicts({"pool": "luci.webrtc.try"}, dimensions),
328 bucket = "try",
329 service_account = "webrtc-try-builder@chops-service-accounts.iam.gserviceaccount.com",
330 **kwargs
331 )
332
333def perf_builder(
334 name,
335 perf_cat,
336 recipe = "standalone",
337 properties = {},
338 dimensions = {},
339 **kwargs):
340 add_milo(name, {"perf": perf_cat})
341 return webrtc_builder(
342 name = name,
343 recipe = recipe,
344 properties = merge_dicts({"mastername": "client.webrtc.perf"}, properties),
345 dimensions = merge_dicts({"pool": "luci.webrtc.perf", "os": "Linux", "cpu": None}, dimensions),
346 bucket = "perf",
347 service_account = "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
348 # log_base of 1.7 means:
349 # when there are P pending builds, LUCI will batch the first B builds.
350 # P: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ...
351 # B: 1 1 2 2 3 3 3 3 4 4 4 4 4 4 5 ...
352 triggering_policy = scheduler.logarithmic_batching(log_base = 17 / 10),
353 **kwargs
354 )
355
356def cron_builder(name, dimensions = {}, **kwargs):
357 add_milo(name, {"cron": True})
358 return webrtc_builder(
359 name = name,
360 dimensions = merge_dicts({"pool": "luci.webrtc.cron", "os": "Linux"}, dimensions),
361 bucket = "cron",
362 service_account = "chromium-webrtc-autoroll@webrtc-ci.iam.gserviceaccount.com",
Oleh Prypin71d17422019-03-28 08:43:16 +0100363 repo = WEBRTC_GIT,
364 notifies = ["cron_notifier"],
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100365 **kwargs
366 )
367
368# Helpers:
369
370def merge_dicts(a, b):
371 """Return the result of merging two dicts.
372
373 If matching values are both dicts or both lists, they will be merged (non-recursively).
374
375 Args:
376 a: first dict.
377 b: second dict (takes priority).
378 Returns:
379 Merged dict.
380 """
381 a = dict(a)
382 for k, bv in b.items():
383 av = a.get(k)
384 if type(av) == "dict" and type(bv) == "dict":
385 a[k] = dict(av)
386 a[k].update(bv)
387 elif type(av) == "list" and type(bv) == "list":
388 a[k] = av + bv
389 else:
390 a[k] = bv
391 return a
392
393def normal_builder_factory(**common_kwargs):
394 def builder(*args, **kwargs):
395 return ci_builder(*args, **merge_dicts(common_kwargs, kwargs))
396
397 def try_job(*args, **kwargs):
398 return try_builder(*args, **merge_dicts(common_kwargs, kwargs))
399
400 return builder, try_job
401
402# Mixins:
403
404linux_builder, linux_try_job = normal_builder_factory(
405 dimensions = {"os": "Linux", "inside_docker": "0"},
406)
407
408android_builder, android_try_job = normal_builder_factory(
409 dimensions = {"os": "Linux"},
410)
411
412win_builder, win_try_job = normal_builder_factory(
413 dimensions = {"os": "Windows"},
414)
415
416mac_builder, mac_try_job = normal_builder_factory(
417 dimensions = {"os": "Mac"},
418)
419
420ios_builder, ios_try_job = normal_builder_factory(
421 dimensions = {"os": "Mac-10.13"},
422 recipe = "ios",
423 properties = {"$depot_tools/osx_sdk": {"sdk_version": "10l232m"}},
424 caches = [swarming.cache("osx_sdk")],
425)
426
427# Actual builder configuration:
428
429android_builder("Android32 (M Nexus5X)(dbg)", "Android|arm|dbg")
430android_try_job("android_compile_arm_dbg", cq = None)
431android_try_job("android_arm_dbg")
432android_builder("Android32 (M Nexus5X)", "Android|arm|rel")
433android_try_job("android_arm_rel")
434android_builder("Android32 Builder arm", "Android|arm|size", perf_cat = "Android|arm|Builder|", prioritized = True)
435android_try_job("android_compile_arm_rel")
436perf_builder("Perf Android32 (L Nexus4)", "Android|arm|Tester|L Nexus4", triggered_by = ["Android32 Builder arm"])
437perf_builder("Perf Android32 (K Nexus5)", "Android|arm|Tester|K Nexus5", triggered_by = ["Android32 Builder arm"])
438perf_builder("Perf Android32 (L Nexus5)", "Android|arm|Tester|L Nexus5", triggered_by = ["Android32 Builder arm"])
439perf_builder("Perf Android32 (L Nexus6)", "Android|arm|Tester|L Nexus6", triggered_by = ["Android32 Builder arm"])
440perf_builder("Perf Android32 (L Nexus7.2)", "Android|arm|Tester|L Nexus7.2", triggered_by = ["Android32 Builder arm"])
441perf_builder("Perf Android32 (N Nexus6)", "Android|arm|Tester|N Nexus6", triggered_by = ["Android32 Builder arm"])
442android_builder("Android64 (M Nexus5X)(dbg)", "Android|arm64|dbg")
443android_try_job("android_compile_arm64_dbg", cq = None)
444android_try_job("android_arm64_dbg", cq = None)
445android_builder("Android64 (M Nexus5X)", "Android|arm64|rel")
446android_try_job("android_arm64_rel")
447android_builder("Android64 Builder arm64", "Android|arm64|size", perf_cat = "Android|arm64|Builder|", prioritized = True)
448android_try_job("android_compile_arm64_rel")
449perf_builder("Perf Android64 (L Nexus9)", "Android|arm64|Tester|L Nexus9", triggered_by = ["Android64 Builder arm64"])
450perf_builder("Perf Android64 (N Pixel)", "Android|arm64|Tester|N Pixel", triggered_by = ["Android64 Builder arm64"])
451android_builder("Android64 Builder x64 (dbg)", "Android|x64|dbg")
452android_try_job("android_compile_x64_dbg")
453android_try_job("android_compile_x64_rel", cq = None)
454android_builder("Android32 Builder x86 (dbg)", "Android|x86|dbg")
455android_try_job("android_compile_x86_dbg")
456android_builder("Android32 Builder x86", "Android|x86|rel")
457android_try_job("android_compile_x86_rel")
458android_builder("Android32 (more configs)", "Android|arm|more", recipe = "more_configs")
459android_try_job("android_arm_more_configs", recipe = "more_configs")
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100460android_try_job("android_chromium_compile", recipe = "chromium_trybot", branch_cq = False)
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100461
462ios_builder("iOS32 Debug", "iOS|arm|dbg")
463ios_try_job("ios_compile_arm_dbg")
464ios_builder("iOS32 Release", "iOS|arm|rel")
465ios_try_job("ios_compile_arm_rel")
466ios_builder("iOS64 Debug", "iOS|arm64|dbg")
467ios_try_job("ios_compile_arm64_dbg")
468ios_builder("iOS64 Release", "iOS|arm64|rel")
469ios_try_job("ios_compile_arm64_rel")
470ios_builder("iOS64 Sim Debug (iOS 10.0)", "iOS|x64|10")
471ios_try_job("ios_sim_x64_dbg_ios10")
472ios_builder("iOS64 Sim Debug (iOS 11)", "iOS|x64|11")
473ios_try_job("ios_sim_x64_dbg_ios11")
474ios_builder("iOS64 Sim Debug (iOS 12)", "iOS|x64|12")
475ios_try_job("ios_sim_x64_dbg_ios12")
476ios_builder("iOS API Framework Builder", "iOS|fat|size", recipe = "ios_api_framework", prioritized = True)
477ios_try_job("ios_api_framework", recipe = "ios_api_framework")
478
479linux_builder("Linux32 Debug", "Linux|x86|dbg")
480linux_try_job("linux_x86_dbg")
481linux_builder("Linux32 Release", "Linux|x86|rel")
482linux_try_job("linux_x86_rel")
483linux_builder("Linux64 Debug", "Linux|x64|dbg")
484linux_try_job("linux_dbg", cq = None)
485linux_try_job("linux_compile_dbg")
486linux_builder("Linux64 Release", "Linux|x64|rel")
487linux_try_job("linux_rel")
488linux_builder("Linux64 Builder", "Linux|x64|size", perf_cat = "Linux|x64|Builder|", prioritized = True)
489linux_try_job("linux_compile_rel")
490perf_builder("Perf Linux Trusty", "Linux|x64|Tester|Trusty", triggered_by = ["Linux64 Builder"])
491linux_builder("Linux32 Debug (ARM)", "Linux|arm|dbg")
492linux_try_job("linux_compile_arm_dbg")
493linux_builder("Linux32 Release (ARM)", "Linux|arm|rel")
494linux_try_job("linux_compile_arm_rel")
495linux_builder("Linux64 Debug (ARM)", "Linux|arm64|dbg")
496linux_try_job("linux_compile_arm64_dbg")
497linux_builder("Linux64 Release (ARM)", "Linux|arm64|rel")
498linux_try_job("linux_compile_arm64_rel")
499linux_builder("Linux64 Release (GCC)", "Linux|x64|gcc")
500linux_try_job("linux_compile_gcc_rel")
501linux_builder("Linux Asan", "Linux|x64|asan")
502linux_try_job("linux_asan")
503linux_builder("Linux MSan", "Linux|x64|msan")
504linux_try_job("linux_msan")
505linux_builder("Linux Tsan v2", "Linux|x64|tsan")
506linux_try_job("linux_tsan2")
507linux_builder("Linux UBSan", "Linux|x64|ubsan")
508linux_try_job("linux_ubsan")
509linux_builder("Linux UBSan vptr", "Linux|x64|ubsan")
510linux_try_job("linux_ubsan_vptr")
511linux_builder("Linux64 Release (Libfuzzer)", "Linux|x64|fuzz", recipe = "libfuzzer")
512linux_try_job("linux_libfuzzer_rel", recipe = "libfuzzer")
513linux_builder("Linux (more configs)", "Linux|x64|more", recipe = "more_configs")
514linux_try_job("linux_more_configs", recipe = "more_configs")
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100515linux_try_job("linux_chromium_compile", recipe = "chromium_trybot", branch_cq = False)
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100516
517mac_builder("Mac64 Debug", "Mac|x64|dbg")
518mac_try_job("mac_dbg", cq = None)
519mac_try_job("mac_compile_dbg")
520mac_builder("Mac64 Release", "Mac|x64|rel")
521mac_try_job("mac_rel")
522mac_try_job("mac_compile_rel", cq = None)
523mac_builder("Mac64 Builder", ci_cat = None, perf_cat = "Mac|x64|Builder|")
524perf_builder("Perf Mac 10.11", "Mac|x64|Tester|10.11", triggered_by = ["Mac64 Builder"])
525mac_builder("Mac Asan", "Mac|x64|asan")
526mac_try_job("mac_asan")
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100527mac_try_job("mac_chromium_compile", recipe = "chromium_trybot", dimensions = {"cores": "8"}, branch_cq = False)
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100528
529win_builder("Win32 Debug", "Win MSVC|x86|dbg")
530win_try_job("win_x86_msvc_dbg")
531win_try_job("win_compile_x86_msvc_dbg", cq = None)
Oleh Prypin63041b82019-03-19 22:56:01 +0000532win_builder("Win32 Release", "Win MSVC|x86|rel")
533win_try_job("win_x86_msvc_rel")
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100534win_try_job("win_compile_x86_msvc_rel", cq = None)
535win_builder("Win64 Debug", "Win MSVC|x64|dbg")
536win_try_job("win_x64_msvc_dbg")
537win_try_job("win_compile_x64_msvc_dbg", cq = None)
538win_builder("Win64 Release", "Win MSVC|x64|rel")
539win_try_job("win_x64_msvc_rel")
540win_try_job("win_compile_x64_msvc_rel", cq = None)
541win_builder("Win32 Debug (Clang)", "Win Clang|x86|dbg")
542win_try_job("win_x86_clang_dbg", cq = None)
543win_try_job("win_compile_x86_clang_dbg")
544win_builder("Win32 Release (Clang)", "Win Clang|x86|rel")
545win_try_job("win_x86_clang_rel")
546win_try_job("win_compile_x86_clang_rel", cq = None)
547win_builder("Win32 Builder (Clang)", ci_cat = None, perf_cat = "Win|x86|Builder|")
548perf_builder("Perf Win7", "Win|x86|Tester|7", triggered_by = ["Win32 Builder (Clang)"])
549win_builder("Win64 Debug (Clang)", "Win Clang|x64|dbg")
550win_try_job("win_x64_clang_dbg", cq = None)
551win_try_job("win_x64_clang_dbg_win8", cq = None)
552win_try_job("win_x64_clang_dbg_win10", cq = None)
553win_try_job("win_compile_x64_clang_dbg")
554win_builder("Win64 Release (Clang)", "Win Clang|x64|rel")
555win_try_job("win_x64_clang_rel", cq = None)
556win_try_job("win_compile_x64_clang_rel")
557win_builder("Win32 ASan", "Win Clang|x86|asan")
558win_try_job("win_asan")
559win_builder("Win64 UWP", ci_cat = None, fyi_cat = "")
560win_try_job("win_x64_uwp", cq = None, try_cat = None, fyi_cat = "")
561win_builder("Win (more configs)", "Win Clang|x86|more", recipe = "more_configs")
562win_try_job("win_x86_more_configs", recipe = "more_configs")
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100563win_try_job("win_chromium_compile", recipe = "chromium_trybot", branch_cq = False)
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100564
565linux_try_job(
566 "presubmit",
567 recipe = "run_presubmit",
568 properties = {"repo_name": "webrtc", "runhooks": True},
569 priority = 28,
570 cq = {"disable_reuse": True},
571)
572linux_try_job("noop", recipe = "noop", cq = {
573 "equivalent_builder": "external/*/g3.webrtc-internal.try/internal_compile_lite",
574 "equivalent_builder_percentage": 100,
575 "equivalent_builder_whitelist": "project-webrtc-internal-tryjob-access",
Oleh Prypin7d1cabe2019-03-14 15:10:30 +0100576}, branch_cq = False)
Oleh Prypin1a0593f2019-03-11 09:43:28 +0100577
578cron_builder(
579 "Auto-roll - WebRTC DEPS",
580 recipe = "auto_roll_webrtc_deps",
581 schedule = "0 */1 * * *", # Hourly.
582)
583cron_builder(
584 "WebRTC lkgr finder",
585 recipe = "lkgr_finder",
586 properties = {"lkgr_project": "webrtc", "allowed_lag": 4},
587 schedule = "*/10 * * * *", # Every 10 minutes.
588)