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