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 | |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame^] | 9 | """LUCI project configuration for WebRTC CQ and CI.""" |
| 10 | |
| 11 | lucicfg.check_version("1.15.0") |
Mirko Bonadei | 9189d9c | 2020-06-09 21:54:18 +0200 | [diff] [blame] | 12 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 13 | WEBRTC_GIT = "https://webrtc.googlesource.com/src" |
| 14 | WEBRTC_GERRIT = "https://webrtc-review.googlesource.com/src" |
| 15 | |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 16 | GOMA_BACKEND_WEBRTC_RBE_PROD = { |
Mirko Bonadei | 1e90534 | 2020-03-04 09:39:42 +0100 | [diff] [blame] | 17 | "$build/goma": { |
| 18 | "server_host": "goma.chromium.org", |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame^] | 19 | "use_luci_auth": True, |
| 20 | }, |
Mirko Bonadei | 1e90534 | 2020-03-04 09:39:42 +0100 | [diff] [blame] | 21 | } |
| 22 | |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 23 | GOMA_BACKEND_WEBRTC_IOS_RBE_PROD = { |
| 24 | "$build/goma": { |
| 25 | "server_host": "goma.chromium.org", |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame^] | 26 | "use_luci_auth": True, |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 27 | }, |
| 28 | "$depot_tools/osx_sdk": {"sdk_version": "11c29"}, |
| 29 | } |
| 30 | |
Patrik Höglund | 3916a97 | 2019-12-04 13:19:38 +0100 | [diff] [blame] | 31 | GOMA_BACKEND_RBE_ATS_PROD = { |
| 32 | "$build/goma": { |
| 33 | "server_host": "goma.chromium.org", |
Mirko Bonadei | 2688eca | 2020-03-25 09:15:54 +0100 | [diff] [blame] | 34 | "use_luci_auth": True, |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame^] | 35 | "enable_ats": True, |
| 36 | }, |
Patrik Höglund | 3916a97 | 2019-12-04 13:19:38 +0100 | [diff] [blame] | 37 | } |
| 38 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 39 | # Top-level configs: |
| 40 | |
Owen Rodley | 6b721ba | 2020-05-26 10:04:20 +1000 | [diff] [blame] | 41 | # Enable luci.tree_closer. |
| 42 | lucicfg.enable_experiment("crbug.com/1054172") |
| 43 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 44 | lucicfg.config( |
| 45 | config_dir = ".", |
| 46 | tracked_files = [ |
| 47 | "commit-queue.cfg", |
| 48 | "cr-buildbucket.cfg", |
| 49 | "luci-logdog.cfg", |
| 50 | "luci-milo.cfg", |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 51 | "luci-notify.cfg", |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 52 | "luci-notify/**/*", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 53 | "luci-scheduler.cfg", |
| 54 | "project.cfg", |
| 55 | ], |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame^] | 56 | lint_checks = ["default"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 57 | ) |
| 58 | |
| 59 | luci.project( |
| 60 | name = "webrtc", |
| 61 | buildbucket = "cr-buildbucket.appspot.com", |
| 62 | logdog = "luci-logdog.appspot.com", |
| 63 | milo = "luci-milo.appspot.com", |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 64 | notify = "luci-notify.appspot.com", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 65 | scheduler = "luci-scheduler.appspot.com", |
| 66 | swarming = "chromium-swarm.appspot.com", |
| 67 | acls = [ |
| 68 | acl.entry( |
| 69 | [acl.BUILDBUCKET_READER, acl.LOGDOG_READER, acl.PROJECT_CONFIGS_READER, acl.SCHEDULER_READER], |
| 70 | groups = ["all"], |
| 71 | ), |
| 72 | acl.entry(acl.LOGDOG_WRITER, groups = ["luci-logdog-chromium-writers"]), |
| 73 | acl.entry(acl.SCHEDULER_OWNER, groups = ["project-webrtc-admins"]), |
| 74 | ], |
| 75 | ) |
| 76 | |
| 77 | luci.logdog( |
| 78 | gs_bucket = "chromium-luci-logdog", |
| 79 | ) |
| 80 | |
| 81 | luci.milo( |
| 82 | logo = "https://storage.googleapis.com/chrome-infra/webrtc-logo-vert-retro-255x305.png", |
| 83 | ) |
| 84 | |
Owen Rodley | a55c38e | 2020-06-15 11:16:10 +1000 | [diff] [blame] | 85 | luci.notify(tree_closing_enabled = True) |
| 86 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 87 | luci.cq( |
| 88 | status_host = "chromium-cq-status.appspot.com", |
| 89 | submit_max_burst = 1, |
| 90 | submit_burst_delay = 1 * time.minute, |
| 91 | ) |
| 92 | |
| 93 | luci.gitiles_poller( |
| 94 | name = "webrtc-gitiles-trigger-master", |
| 95 | bucket = "ci", |
| 96 | repo = WEBRTC_GIT, |
| 97 | ) |
| 98 | |
| 99 | # Bucket definitions: |
| 100 | |
| 101 | luci.bucket( |
| 102 | name = "try", |
| 103 | acls = [ |
| 104 | acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [ |
| 105 | "service-account-cq", |
| 106 | "project-webrtc-tryjob-access", |
| 107 | ]), |
| 108 | ], |
| 109 | ) |
| 110 | |
| 111 | luci.bucket( |
| 112 | name = "ci", |
| 113 | acls = [ |
Oleh Prypin | f35939d | 2019-05-03 20:42:38 +0200 | [diff] [blame] | 114 | acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [ |
| 115 | "project-webrtc-ci-schedulers", |
| 116 | ], users = [ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 117 | "luci-scheduler@appspot.gserviceaccount.com", |
| 118 | ]), |
| 119 | ], |
| 120 | ) |
| 121 | |
| 122 | luci.bucket( |
| 123 | name = "perf", |
| 124 | acls = [ |
| 125 | acl.entry(acl.BUILDBUCKET_TRIGGERER, users = [ |
| 126 | "luci-scheduler@appspot.gserviceaccount.com", |
| 127 | "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com", |
| 128 | ]), |
| 129 | ], |
| 130 | ) |
| 131 | |
| 132 | luci.bucket( |
| 133 | name = "cron", |
| 134 | acls = [ |
| 135 | acl.entry(acl.BUILDBUCKET_TRIGGERER, users = [ |
| 136 | "luci-scheduler@appspot.gserviceaccount.com", |
| 137 | ]), |
| 138 | ], |
| 139 | ) |
| 140 | |
| 141 | # Commit queue definitions: |
| 142 | |
| 143 | luci.cq_group( |
| 144 | name = "cq", |
| 145 | tree_status_host = "webrtc-status.appspot.com", |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 146 | watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/heads/master"])], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 147 | acls = [ |
| 148 | acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-committers"]), |
| 149 | acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]), |
| 150 | ], |
| 151 | retry_config = cq.RETRY_ALL_FAILURES, |
Oleh Prypin | 5416f2d | 2019-08-02 09:43:15 +0200 | [diff] [blame] | 152 | cancel_stale_tryjobs = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 153 | ) |
| 154 | |
| 155 | luci.cq_group( |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 156 | name = "cq_branch", |
| 157 | watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/branch-heads/.+"])], |
| 158 | acls = [ |
| 159 | acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-committers"]), |
| 160 | acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]), |
| 161 | ], |
| 162 | retry_config = cq.RETRY_ALL_FAILURES, |
Oleh Prypin | 5416f2d | 2019-08-02 09:43:15 +0200 | [diff] [blame] | 163 | cancel_stale_tryjobs = True, |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 164 | ) |
| 165 | |
| 166 | luci.cq_group( |
| 167 | name = "cq_infra", |
| 168 | watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/heads/infra/config"])], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 169 | acls = [ |
| 170 | acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-admins"]), |
| 171 | acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]), |
| 172 | ], |
| 173 | retry_config = cq.RETRY_ALL_FAILURES, |
Oleh Prypin | 5416f2d | 2019-08-02 09:43:15 +0200 | [diff] [blame] | 174 | cancel_stale_tryjobs = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 175 | ) |
| 176 | |
| 177 | luci.cq_tryjob_verifier( |
| 178 | builder = "presubmit", |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 179 | cq_group = "cq_infra", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 180 | ) |
| 181 | |
Oleh Prypin | e56cd9b | 2019-05-29 21:14:31 +0200 | [diff] [blame] | 182 | luci.cq_tryjob_verifier( |
| 183 | builder = "webrtc-internal:g3.webrtc-internal.try/internal_compile_lite", |
| 184 | owner_whitelist = ["project-webrtc-internal-tryjob-access"], |
| 185 | cq_group = "cq", |
| 186 | ) |
| 187 | |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 188 | # Notifier definitions: |
| 189 | |
| 190 | luci.notifier( |
| 191 | name = "ci_notifier", |
| 192 | on_failure = True, |
| 193 | notify_emails = ["webrtc-sheriffs-robots@google.com"], |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 194 | template = luci.notifier_template( |
| 195 | name = "ci", |
| 196 | body = io.read_file("luci-notify/email-templates/ci.template"), |
| 197 | ), |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 198 | ) |
| 199 | |
| 200 | luci.notifier( |
| 201 | name = "cron_notifier", |
| 202 | on_failure = True, |
| 203 | notify_emails = ["webrtc-troopers-robots@google.com"], |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 204 | template = luci.notifier_template( |
| 205 | name = "cron", |
| 206 | body = io.read_file("luci-notify/email-templates/cron.template"), |
| 207 | ), |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 208 | ) |
| 209 | |
Owen Rodley | 6b721ba | 2020-05-26 10:04:20 +1000 | [diff] [blame] | 210 | # Tree closer definitions: |
| 211 | |
| 212 | luci.tree_closer( |
| 213 | name = "webrtc_tree_closer", |
| 214 | tree_status_host = "webrtc-status.appspot.com", |
| 215 | template = luci.notifier_template( |
| 216 | name = "status", |
| 217 | body = io.read_file("luci-notify/email-templates/status.template"), |
| 218 | ), |
| 219 | # TODO: These step filters are copied verbatim from Gatekeeper, for testing |
| 220 | # that LUCI-Notify would take the exact same actions. Once we've switched |
| 221 | # over, this should be updated - several of these steps don't exist in |
| 222 | # WebRTC recipes. |
| 223 | failed_step_regexp = [ |
| 224 | "bot_update", |
| 225 | "compile", |
| 226 | "gclient runhooks", |
| 227 | "runhooks", |
| 228 | "update", |
| 229 | "extract build", |
| 230 | "cleanup_temp", |
| 231 | "taskkill", |
| 232 | "compile", |
| 233 | "gn", |
| 234 | ], |
| 235 | failed_step_regexp_exclude = ".*\\(experimental\\).*", |
| 236 | ) |
| 237 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 238 | # Recipe definitions: |
| 239 | |
| 240 | def recipe(recipe, pkg = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"): |
| 241 | return luci.recipe( |
| 242 | name = recipe.split("/")[-1], |
| 243 | cipd_package = pkg, |
| 244 | cipd_version = "refs/heads/master", |
| 245 | recipe = recipe, |
| 246 | ) |
| 247 | |
| 248 | recipe("chromium_trybot") |
| 249 | recipe("run_presubmit") |
| 250 | recipe("webrtc/auto_roll_webrtc_deps") |
| 251 | recipe("webrtc/ios") |
| 252 | recipe("webrtc/ios_api_framework") |
| 253 | recipe("webrtc/libfuzzer") |
| 254 | recipe("webrtc/more_configs") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 255 | recipe("webrtc/standalone") |
| 256 | recipe("lkgr_finder", pkg = "infra/recipe_bundles/chromium.googlesource.com/infra/infra") |
| 257 | |
| 258 | # Console definitions: |
| 259 | |
| 260 | luci.console_view(name = "ci", title = "Main", repo = WEBRTC_GIT, header = "console-header.textpb") |
| 261 | luci.console_view(name = "perf", title = "Perf", repo = WEBRTC_GIT, header = "console-header.textpb") |
| 262 | luci.list_view(name = "cron", title = "Cron") |
| 263 | luci.console_view(name = "fyi", title = "FYI", repo = WEBRTC_GIT, header = "console-header.textpb") |
| 264 | luci.list_view(name = "try", title = "Tryserver") |
| 265 | |
| 266 | def add_milo(builder, views): |
| 267 | """Add Milo console entries for the builder. |
| 268 | |
| 269 | Args: |
| 270 | builder: builder name (str). |
| 271 | views: dict where keys are names of consoles and values are either a |
| 272 | category for the console (str, pipe-separated) or True, which means |
| 273 | adding to a list view rather than a console. |
| 274 | """ |
| 275 | for view_name, category in views.items(): |
| 276 | if category == None: |
| 277 | continue |
| 278 | elif type(category) == "string": |
| 279 | category, _, short_name = category.rpartition("|") |
| 280 | luci.console_view_entry( |
| 281 | console_view = view_name, |
| 282 | builder = builder, |
| 283 | category = category or None, |
| 284 | short_name = short_name or None, |
| 285 | ) |
| 286 | elif category == True: |
| 287 | luci.list_view_entry( |
| 288 | list_view = view_name, |
| 289 | builder = builder, |
| 290 | ) |
| 291 | else: |
| 292 | fail("Unexpected value for category: %r" % category) |
| 293 | |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 294 | lkgr_builders = {} |
| 295 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 296 | # Builder-defining functions: |
| 297 | |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 298 | def webrtc_builder( |
| 299 | name, |
| 300 | recipe = "standalone", |
| 301 | dimensions = {}, |
| 302 | priority = 30, |
| 303 | execution_timeout = 2 * time.hour, |
| 304 | **kwargs): |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 305 | dimensions = merge_dicts({"cpu": "x86-64"}, dimensions) |
| 306 | |
| 307 | return luci.builder( |
| 308 | name = name, |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 309 | executable = recipe, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 310 | dimensions = {k: v for k, v in dimensions.items() if v != None}, |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 311 | execution_timeout = execution_timeout, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 312 | priority = priority, |
| 313 | build_numbers = True, |
| 314 | swarming_tags = ["vpython:native-python-wrapper"], |
| 315 | **kwargs |
| 316 | ) |
| 317 | |
| 318 | def ci_builder( |
| 319 | name, |
| 320 | ci_cat, |
| 321 | perf_cat = None, |
| 322 | fyi_cat = None, |
| 323 | properties = {}, |
| 324 | dimensions = {}, |
| 325 | prioritized = False, |
Oleh Prypin | f5432c5 | 2019-03-19 15:10:37 +0100 | [diff] [blame] | 326 | enabled = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 327 | **kwargs): |
Oleh Prypin | e567767 | 2019-04-25 12:21:35 +0200 | [diff] [blame] | 328 | """Add a post-submit builder. |
| 329 | |
| 330 | Args: |
| 331 | name: builder name (str). |
| 332 | ci_cat: the category + name for the /ci/ console, or None to omit from the console. |
| 333 | perf_cat: the category + name for the /perf/ console, or None to omit from the console. |
| 334 | fyi_cat: the category + name for the /fyi/ console, or None to omit from the console. |
| 335 | properties: dict of properties to pass to the recipe (on top of the default ones). |
| 336 | dimensions: dict of Swarming dimensions (strings) to search machines by. |
| 337 | prioritized: True to make this builder have a higher priority and never batch builds. |
| 338 | enabled: False to exclude this builder from consoles and failure notifications. |
| 339 | **kwargs: Pass on to webrtc_builder / luci.builder. |
| 340 | Returns: |
| 341 | A luci.builder. |
| 342 | |
| 343 | Notifications are also disabled if a builder is not on either of /ci/ or /perf/ consoles. |
| 344 | """ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 345 | if prioritized: |
| 346 | kwargs["triggering_policy"] = scheduler.greedy_batching( |
| 347 | max_batch_size = 1, |
| 348 | max_concurrent_invocations = 3, |
| 349 | ) |
| 350 | kwargs["priority"] = 29 |
| 351 | |
Oleh Prypin | f5432c5 | 2019-03-19 15:10:37 +0100 | [diff] [blame] | 352 | if enabled: |
| 353 | add_milo(name, {"ci": ci_cat, "perf": perf_cat, "fyi": fyi_cat}) |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 354 | if ci_cat: |
| 355 | lkgr_builders[name] = True |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 356 | return webrtc_builder( |
| 357 | name = name, |
| 358 | properties = merge_dicts({"mastername": "client.webrtc"}, properties), |
| 359 | dimensions = merge_dicts({"pool": "luci.webrtc.ci"}, dimensions), |
| 360 | bucket = "ci", |
| 361 | service_account = "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com", |
Oleh Prypin | f5432c5 | 2019-03-19 15:10:37 +0100 | [diff] [blame] | 362 | triggered_by = ["webrtc-gitiles-trigger-master"] if enabled else None, |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 363 | repo = WEBRTC_GIT, |
Owen Rodley | 6b721ba | 2020-05-26 10:04:20 +1000 | [diff] [blame] | 364 | notifies = ["ci_notifier", "webrtc_tree_closer"] if enabled and (ci_cat or perf_cat) else None, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 365 | **kwargs |
| 366 | ) |
| 367 | |
| 368 | def try_builder( |
| 369 | name, |
| 370 | try_cat = True, |
| 371 | fyi_cat = None, |
| 372 | properties = {}, |
| 373 | dimensions = {}, |
| 374 | cq = {}, |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 375 | branch_cq = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 376 | **kwargs): |
Oleh Prypin | e567767 | 2019-04-25 12:21:35 +0200 | [diff] [blame] | 377 | """Add a pre-submit builder. |
| 378 | |
| 379 | Args: |
| 380 | name: builder name (str). |
| 381 | try_cat: boolean, whether to include this builder in the /try/ console. See also: `add_milo`. |
| 382 | fyi_cat: the category + name for the /fyi/ console, or None to omit from the console. |
| 383 | properties: dict of properties to pass to the recipe (on top of the default ones). |
| 384 | dimensions: dict of Swarming dimensions (strings) to search machines by. |
| 385 | cq: None to exclude this from all commit queues, or a dict of kwargs for cq_tryjob_verifier. |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 386 | branch_cq: False to exclude this builder just from the release-branch CQ. |
Oleh Prypin | e567767 | 2019-04-25 12:21:35 +0200 | [diff] [blame] | 387 | **kwargs: Pass on to webrtc_builder / luci.builder. |
| 388 | Returns: |
| 389 | A luci.builder. |
| 390 | """ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 391 | add_milo(name, {"try": try_cat, "fyi": fyi_cat}) |
| 392 | if cq != None: |
| 393 | luci.cq_tryjob_verifier( |
| 394 | builder = name, |
| 395 | cq_group = "cq", |
| 396 | **cq |
| 397 | ) |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 398 | if branch_cq: |
| 399 | luci.cq_tryjob_verifier( |
| 400 | builder = name, |
| 401 | cq_group = "cq_branch", |
| 402 | **cq |
| 403 | ) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 404 | |
| 405 | return webrtc_builder( |
| 406 | name = name, |
| 407 | properties = merge_dicts({"mastername": "tryserver.webrtc"}, properties), |
| 408 | dimensions = merge_dicts({"pool": "luci.webrtc.try"}, dimensions), |
| 409 | bucket = "try", |
| 410 | service_account = "webrtc-try-builder@chops-service-accounts.iam.gserviceaccount.com", |
| 411 | **kwargs |
| 412 | ) |
| 413 | |
| 414 | def perf_builder( |
| 415 | name, |
| 416 | perf_cat, |
| 417 | recipe = "standalone", |
| 418 | properties = {}, |
| 419 | dimensions = {}, |
| 420 | **kwargs): |
| 421 | add_milo(name, {"perf": perf_cat}) |
| 422 | return webrtc_builder( |
| 423 | name = name, |
| 424 | recipe = recipe, |
| 425 | properties = merge_dicts({"mastername": "client.webrtc.perf"}, properties), |
| 426 | dimensions = merge_dicts({"pool": "luci.webrtc.perf", "os": "Linux", "cpu": None}, dimensions), |
| 427 | bucket = "perf", |
| 428 | service_account = "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com", |
| 429 | # log_base of 1.7 means: |
| 430 | # when there are P pending builds, LUCI will batch the first B builds. |
| 431 | # P: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ... |
| 432 | # B: 1 1 2 2 3 3 3 3 4 4 4 4 4 4 5 ... |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame^] | 433 | triggering_policy = scheduler.logarithmic_batching(log_base = 1.7), |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 434 | execution_timeout = 3 * time.hour, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 435 | **kwargs |
| 436 | ) |
| 437 | |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 438 | def android_perf_builder( |
| 439 | name, |
| 440 | perf_cat, |
| 441 | recipe = "standalone", |
| 442 | properties = {}, |
| 443 | dimensions = {}, |
| 444 | **kwargs): |
| 445 | return perf_builder( |
| 446 | name = name, |
| 447 | perf_cat = perf_cat, |
| 448 | recipe = recipe, |
| 449 | properties = merge_dicts(GOMA_BACKEND_WEBRTC_RBE_PROD, properties), |
| 450 | dimensions = dimensions, |
| 451 | **kwargs |
| 452 | ) |
| 453 | |
| 454 | def linux_perf_builder( |
| 455 | name, |
| 456 | perf_cat, |
| 457 | recipe = "standalone", |
| 458 | properties = {}, |
| 459 | dimensions = {}, |
| 460 | **kwargs): |
| 461 | return perf_builder( |
| 462 | name = name, |
| 463 | perf_cat = perf_cat, |
| 464 | recipe = recipe, |
| 465 | properties = merge_dicts(GOMA_BACKEND_WEBRTC_RBE_PROD, properties), |
| 466 | dimensions = dimensions, |
| 467 | **kwargs |
| 468 | ) |
| 469 | |
| 470 | def mac_perf_builder( |
| 471 | name, |
| 472 | perf_cat, |
| 473 | recipe = "standalone", |
| 474 | properties = {}, |
| 475 | dimensions = {}, |
| 476 | **kwargs): |
| 477 | return perf_builder( |
| 478 | name = name, |
| 479 | perf_cat = perf_cat, |
| 480 | recipe = recipe, |
| 481 | properties = merge_dicts(GOMA_BACKEND_WEBRTC_RBE_PROD, properties), |
| 482 | dimensions = dimensions, |
| 483 | **kwargs |
| 484 | ) |
| 485 | |
| 486 | def win_perf_builder( |
| 487 | name, |
| 488 | perf_cat, |
| 489 | recipe = "standalone", |
| 490 | properties = {}, |
| 491 | dimensions = {}, |
| 492 | **kwargs): |
| 493 | return perf_builder( |
| 494 | name = name, |
| 495 | perf_cat = perf_cat, |
| 496 | recipe = recipe, |
| 497 | properties = merge_dicts(GOMA_BACKEND_RBE_ATS_PROD, properties), |
| 498 | dimensions = dimensions, |
| 499 | **kwargs |
| 500 | ) |
| 501 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 502 | def cron_builder(name, dimensions = {}, **kwargs): |
| 503 | add_milo(name, {"cron": True}) |
| 504 | return webrtc_builder( |
| 505 | name = name, |
| 506 | dimensions = merge_dicts({"pool": "luci.webrtc.cron", "os": "Linux"}, dimensions), |
| 507 | bucket = "cron", |
| 508 | service_account = "chromium-webrtc-autoroll@webrtc-ci.iam.gserviceaccount.com", |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 509 | repo = WEBRTC_GIT, |
| 510 | notifies = ["cron_notifier"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 511 | **kwargs |
| 512 | ) |
| 513 | |
| 514 | # Helpers: |
| 515 | |
| 516 | def merge_dicts(a, b): |
| 517 | """Return the result of merging two dicts. |
| 518 | |
| 519 | If matching values are both dicts or both lists, they will be merged (non-recursively). |
| 520 | |
| 521 | Args: |
| 522 | a: first dict. |
| 523 | b: second dict (takes priority). |
| 524 | Returns: |
| 525 | Merged dict. |
| 526 | """ |
| 527 | a = dict(a) |
| 528 | for k, bv in b.items(): |
| 529 | av = a.get(k) |
| 530 | if type(av) == "dict" and type(bv) == "dict": |
| 531 | a[k] = dict(av) |
| 532 | a[k].update(bv) |
| 533 | elif type(av) == "list" and type(bv) == "list": |
| 534 | a[k] = av + bv |
| 535 | else: |
| 536 | a[k] = bv |
| 537 | return a |
| 538 | |
| 539 | def normal_builder_factory(**common_kwargs): |
| 540 | def builder(*args, **kwargs): |
| 541 | return ci_builder(*args, **merge_dicts(common_kwargs, kwargs)) |
| 542 | |
| 543 | def try_job(*args, **kwargs): |
| 544 | return try_builder(*args, **merge_dicts(common_kwargs, kwargs)) |
| 545 | |
| 546 | return builder, try_job |
| 547 | |
| 548 | # Mixins: |
| 549 | |
| 550 | linux_builder, linux_try_job = normal_builder_factory( |
| 551 | dimensions = {"os": "Linux", "inside_docker": "0"}, |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 552 | properties = GOMA_BACKEND_WEBRTC_RBE_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 553 | ) |
| 554 | |
| 555 | android_builder, android_try_job = normal_builder_factory( |
| 556 | dimensions = {"os": "Linux"}, |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 557 | properties = GOMA_BACKEND_WEBRTC_RBE_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 558 | ) |
| 559 | |
| 560 | win_builder, win_try_job = normal_builder_factory( |
| 561 | dimensions = {"os": "Windows"}, |
Patrik Höglund | 3916a97 | 2019-12-04 13:19:38 +0100 | [diff] [blame] | 562 | properties = GOMA_BACKEND_RBE_ATS_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 563 | ) |
| 564 | |
| 565 | mac_builder, mac_try_job = normal_builder_factory( |
| 566 | dimensions = {"os": "Mac"}, |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 567 | properties = GOMA_BACKEND_WEBRTC_RBE_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 568 | ) |
| 569 | |
| 570 | ios_builder, ios_try_job = normal_builder_factory( |
Patrik Höglund | d5dcd0e | 2020-02-19 21:50:39 +0100 | [diff] [blame] | 571 | dimensions = {"os": "Mac-10.14"}, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 572 | recipe = "ios", |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 573 | properties = GOMA_BACKEND_WEBRTC_IOS_RBE_PROD, |
| 574 | caches = [swarming.cache("osx_sdk")], |
| 575 | ) |
| 576 | |
| 577 | # Some iOS builders don't use goma because they build using |
| 578 | # `use_xcode_clang=true` which is not supported by goma. |
| 579 | # https://ci.chromium.org/p/webrtc/builders/ci/iOS%20API%20Framework%20Builder |
| 580 | # https://ci.chromium.org/p/webrtc/builders/try/ios_api_framework |
| 581 | ios_builder_no_goma, ios_try_job_no_goma = normal_builder_factory( |
| 582 | dimensions = {"os": "Mac-10.14"}, |
| 583 | recipe = "ios", |
Patrik Höglund | b681c16 | 2020-02-21 07:34:53 +0100 | [diff] [blame] | 584 | properties = {"$depot_tools/osx_sdk": {"sdk_version": "11c29"}}, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 585 | caches = [swarming.cache("osx_sdk")], |
| 586 | ) |
| 587 | |
| 588 | # Actual builder configuration: |
| 589 | |
| 590 | android_builder("Android32 (M Nexus5X)(dbg)", "Android|arm|dbg") |
| 591 | android_try_job("android_compile_arm_dbg", cq = None) |
| 592 | android_try_job("android_arm_dbg") |
| 593 | android_builder("Android32 (M Nexus5X)", "Android|arm|rel") |
| 594 | android_try_job("android_arm_rel") |
| 595 | android_builder("Android32 Builder arm", "Android|arm|size", perf_cat = "Android|arm|Builder|", prioritized = True) |
| 596 | android_try_job("android_compile_arm_rel") |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 597 | android_perf_builder("Perf Android32 (K Nexus5)", "Android|arm|Tester|K Nexus5", triggered_by = ["Android32 Builder arm"]) |
| 598 | android_perf_builder("Perf Android32 (M AOSP Nexus6)", "Android|arm|Tester|M AOSP Nexus6", triggered_by = ["Android32 Builder arm"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 599 | android_try_job("android_compile_arm64_dbg", cq = None) |
| 600 | android_try_job("android_arm64_dbg", cq = None) |
| 601 | android_builder("Android64 (M Nexus5X)", "Android|arm64|rel") |
| 602 | android_try_job("android_arm64_rel") |
| 603 | android_builder("Android64 Builder arm64", "Android|arm64|size", perf_cat = "Android|arm64|Builder|", prioritized = True) |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 604 | android_perf_builder("Perf Android64 (M Nexus5X)", "Android|arm64|Tester|M Nexus5X", triggered_by = ["Android64 Builder arm64"]) |
| 605 | android_perf_builder("Perf Android64 (O Pixel2)", "Android|arm64|Tester|O Pixel2", triggered_by = ["Android64 Builder arm64"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 606 | android_try_job("android_compile_arm64_rel") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 607 | android_builder("Android64 Builder x64 (dbg)", "Android|x64|dbg") |
| 608 | android_try_job("android_compile_x64_dbg") |
| 609 | android_try_job("android_compile_x64_rel", cq = None) |
| 610 | android_builder("Android32 Builder x86 (dbg)", "Android|x86|dbg") |
| 611 | android_try_job("android_compile_x86_dbg") |
| 612 | android_builder("Android32 Builder x86", "Android|x86|rel") |
| 613 | android_try_job("android_compile_x86_rel") |
| 614 | android_builder("Android32 (more configs)", "Android|arm|more", recipe = "more_configs") |
| 615 | android_try_job("android_arm_more_configs", recipe = "more_configs") |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 616 | android_try_job("android_chromium_compile", recipe = "chromium_trybot", branch_cq = False) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 617 | |
| 618 | ios_builder("iOS32 Debug", "iOS|arm|dbg") |
| 619 | ios_try_job("ios_compile_arm_dbg") |
| 620 | ios_builder("iOS32 Release", "iOS|arm|rel") |
| 621 | ios_try_job("ios_compile_arm_rel") |
| 622 | ios_builder("iOS64 Debug", "iOS|arm64|dbg") |
| 623 | ios_try_job("ios_compile_arm64_dbg") |
| 624 | ios_builder("iOS64 Release", "iOS|arm64|rel") |
| 625 | ios_try_job("ios_compile_arm64_rel") |
| 626 | ios_builder("iOS64 Sim Debug (iOS 10.0)", "iOS|x64|10") |
Patrik Höglund | 17bed67 | 2020-02-20 13:31:36 +0000 | [diff] [blame] | 627 | ios_try_job("ios_sim_x64_dbg_ios10") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 628 | ios_builder("iOS64 Sim Debug (iOS 11)", "iOS|x64|11") |
Patrik Höglund | 17bed67 | 2020-02-20 13:31:36 +0000 | [diff] [blame] | 629 | ios_try_job("ios_sim_x64_dbg_ios11") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 630 | ios_builder("iOS64 Sim Debug (iOS 12)", "iOS|x64|12") |
Patrik Höglund | 17bed67 | 2020-02-20 13:31:36 +0000 | [diff] [blame] | 631 | ios_try_job("ios_sim_x64_dbg_ios12") |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 632 | ios_builder_no_goma("iOS API Framework Builder", "iOS|fat|size", recipe = "ios_api_framework", prioritized = True) |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame^] | 633 | ios_try_job_no_goma("ios_api_framework", recipe = "ios_api_framework", cq = None) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 634 | |
| 635 | linux_builder("Linux32 Debug", "Linux|x86|dbg") |
| 636 | linux_try_job("linux_x86_dbg") |
| 637 | linux_builder("Linux32 Release", "Linux|x86|rel") |
| 638 | linux_try_job("linux_x86_rel") |
| 639 | linux_builder("Linux64 Debug", "Linux|x64|dbg") |
| 640 | linux_try_job("linux_dbg", cq = None) |
| 641 | linux_try_job("linux_compile_dbg") |
| 642 | linux_builder("Linux64 Release", "Linux|x64|rel") |
| 643 | linux_try_job("linux_rel") |
| 644 | linux_builder("Linux64 Builder", "Linux|x64|size", perf_cat = "Linux|x64|Builder|", prioritized = True) |
| 645 | linux_try_job("linux_compile_rel") |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 646 | linux_perf_builder("Perf Linux Trusty", "Linux|x64|Tester|Trusty", triggered_by = ["Linux64 Builder"]) |
| 647 | linux_perf_builder("Perf Linux Xenial", None, triggered_by = ["Linux64 Builder"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 648 | linux_builder("Linux32 Debug (ARM)", "Linux|arm|dbg") |
| 649 | linux_try_job("linux_compile_arm_dbg") |
| 650 | linux_builder("Linux32 Release (ARM)", "Linux|arm|rel") |
| 651 | linux_try_job("linux_compile_arm_rel") |
| 652 | linux_builder("Linux64 Debug (ARM)", "Linux|arm64|dbg") |
| 653 | linux_try_job("linux_compile_arm64_dbg") |
| 654 | linux_builder("Linux64 Release (ARM)", "Linux|arm64|rel") |
| 655 | linux_try_job("linux_compile_arm64_rel") |
| 656 | linux_builder("Linux64 Release (GCC)", "Linux|x64|gcc") |
| 657 | linux_try_job("linux_compile_gcc_rel") |
| 658 | linux_builder("Linux Asan", "Linux|x64|asan") |
| 659 | linux_try_job("linux_asan") |
| 660 | linux_builder("Linux MSan", "Linux|x64|msan") |
| 661 | linux_try_job("linux_msan") |
| 662 | linux_builder("Linux Tsan v2", "Linux|x64|tsan") |
| 663 | linux_try_job("linux_tsan2") |
| 664 | linux_builder("Linux UBSan", "Linux|x64|ubsan") |
| 665 | linux_try_job("linux_ubsan") |
| 666 | linux_builder("Linux UBSan vptr", "Linux|x64|ubsan") |
| 667 | linux_try_job("linux_ubsan_vptr") |
| 668 | linux_builder("Linux64 Release (Libfuzzer)", "Linux|x64|fuzz", recipe = "libfuzzer") |
| 669 | linux_try_job("linux_libfuzzer_rel", recipe = "libfuzzer") |
| 670 | linux_builder("Linux (more configs)", "Linux|x64|more", recipe = "more_configs") |
| 671 | linux_try_job("linux_more_configs", recipe = "more_configs") |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 672 | linux_try_job("linux_chromium_compile", recipe = "chromium_trybot", branch_cq = False) |
Mirko Bonadei | 40de50f | 2019-11-07 11:23:47 +0100 | [diff] [blame] | 673 | linux_try_job("linux_chromium_compile_dbg", recipe = "chromium_trybot", branch_cq = False) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 674 | |
| 675 | mac_builder("Mac64 Debug", "Mac|x64|dbg") |
| 676 | mac_try_job("mac_dbg", cq = None) |
| 677 | mac_try_job("mac_compile_dbg") |
| 678 | mac_builder("Mac64 Release", "Mac|x64|rel") |
| 679 | mac_try_job("mac_rel") |
| 680 | mac_try_job("mac_compile_rel", cq = None) |
| 681 | mac_builder("Mac64 Builder", ci_cat = None, perf_cat = "Mac|x64|Builder|") |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 682 | mac_perf_builder("Perf Mac 10.11", "Mac|x64|Tester|10.11", triggered_by = ["Mac64 Builder"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 683 | mac_builder("Mac Asan", "Mac|x64|asan") |
| 684 | mac_try_job("mac_asan") |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 685 | mac_try_job("mac_chromium_compile", recipe = "chromium_trybot", dimensions = {"cores": "8"}, branch_cq = False) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 686 | |
| 687 | win_builder("Win32 Debug", "Win MSVC|x86|dbg") |
| 688 | win_try_job("win_x86_msvc_dbg") |
| 689 | win_try_job("win_compile_x86_msvc_dbg", cq = None) |
Oleh Prypin | 63041b8 | 2019-03-19 22:56:01 +0000 | [diff] [blame] | 690 | win_builder("Win32 Release", "Win MSVC|x86|rel") |
| 691 | win_try_job("win_x86_msvc_rel") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 692 | win_try_job("win_compile_x86_msvc_rel", cq = None) |
| 693 | win_builder("Win64 Debug", "Win MSVC|x64|dbg") |
| 694 | win_try_job("win_x64_msvc_dbg") |
| 695 | win_try_job("win_compile_x64_msvc_dbg", cq = None) |
| 696 | win_builder("Win64 Release", "Win MSVC|x64|rel") |
| 697 | win_try_job("win_x64_msvc_rel") |
| 698 | win_try_job("win_compile_x64_msvc_rel", cq = None) |
| 699 | win_builder("Win32 Debug (Clang)", "Win Clang|x86|dbg") |
| 700 | win_try_job("win_x86_clang_dbg", cq = None) |
| 701 | win_try_job("win_compile_x86_clang_dbg") |
| 702 | win_builder("Win32 Release (Clang)", "Win Clang|x86|rel") |
| 703 | win_try_job("win_x86_clang_rel") |
| 704 | win_try_job("win_compile_x86_clang_rel", cq = None) |
| 705 | win_builder("Win32 Builder (Clang)", ci_cat = None, perf_cat = "Win|x86|Builder|") |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 706 | win_perf_builder("Perf Win7", "Win|x86|Tester|7", triggered_by = ["Win32 Builder (Clang)"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 707 | win_builder("Win64 Debug (Clang)", "Win Clang|x64|dbg") |
| 708 | win_try_job("win_x64_clang_dbg", cq = None) |
| 709 | win_try_job("win_x64_clang_dbg_win8", cq = None) |
| 710 | win_try_job("win_x64_clang_dbg_win10", cq = None) |
| 711 | win_try_job("win_compile_x64_clang_dbg") |
| 712 | win_builder("Win64 Release (Clang)", "Win Clang|x64|rel") |
| 713 | win_try_job("win_x64_clang_rel", cq = None) |
| 714 | win_try_job("win_compile_x64_clang_rel") |
Mirko Bonadei | afbe33d | 2019-05-31 09:27:54 +0200 | [diff] [blame] | 715 | win_builder("Win64 ASan", "Win Clang|x64|asan") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 716 | win_try_job("win_asan") |
| 717 | win_builder("Win64 UWP", ci_cat = None, fyi_cat = "") |
| 718 | win_try_job("win_x64_uwp", cq = None, try_cat = None, fyi_cat = "") |
| 719 | win_builder("Win (more configs)", "Win Clang|x86|more", recipe = "more_configs") |
| 720 | win_try_job("win_x86_more_configs", recipe = "more_configs") |
Patrik Höglund | 3953461 | 2019-12-09 14:46:41 +0100 | [diff] [blame] | 721 | win_try_job("win_chromium_compile", recipe = "chromium_trybot", branch_cq = False) |
Patrik Höglund | fe35045 | 2019-12-10 11:33:53 +0100 | [diff] [blame] | 722 | win_try_job("win_chromium_compile_dbg", recipe = "chromium_trybot", branch_cq = False) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 723 | |
| 724 | linux_try_job( |
| 725 | "presubmit", |
| 726 | recipe = "run_presubmit", |
| 727 | properties = {"repo_name": "webrtc", "runhooks": True}, |
| 728 | priority = 28, |
| 729 | cq = {"disable_reuse": True}, |
| 730 | ) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 731 | |
| 732 | cron_builder( |
| 733 | "Auto-roll - WebRTC DEPS", |
| 734 | recipe = "auto_roll_webrtc_deps", |
Oleh Prypin | dc68a72 | 2019-06-25 10:43:13 +0200 | [diff] [blame] | 735 | schedule = "0 */2 * * *", # Every 2 hours. |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 736 | ) |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 737 | |
| 738 | lkgr_config = { |
| 739 | "project": "webrtc", |
| 740 | "source_url": WEBRTC_GIT, |
| 741 | "status_url": "https://webrtc-status.appspot.com", |
| 742 | "allowed_lag": 300, # hours |
| 743 | "allowed_gap": 12, # commits behind |
| 744 | "error_recipients": "webrtc-troopers-robots@google.com", |
Michael Achenbach | 09dd7dc | 2019-07-26 15:26:11 +0200 | [diff] [blame] | 745 | "buckets": { |
| 746 | "webrtc/ci": { |
| 747 | # bucket alias: luci.webrtc.ci |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 748 | "builders": sorted(lkgr_builders), |
| 749 | }, |
Michael Achenbach | 09dd7dc | 2019-07-26 15:26:11 +0200 | [diff] [blame] | 750 | "chromium/webrtc.fyi": { |
| 751 | # bucket alias: luci.chromium.webrtc.fyi |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 752 | "builders": [ |
| 753 | "WebRTC Chromium FYI Android Builder (dbg)", |
| 754 | "WebRTC Chromium FYI Android Builder ARM64 (dbg)", |
| 755 | "WebRTC Chromium FYI Android Builder", |
Mirko Bonadei | 04fe32f | 2020-05-01 00:45:58 +0200 | [diff] [blame] | 756 | "WebRTC Chromium FYI Android Tests (dbg) (L Nexus5)", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 757 | "WebRTC Chromium FYI Android Tests (dbg) (M Nexus5X)", |
| 758 | "WebRTC Chromium FYI Linux Builder (dbg)", |
| 759 | "WebRTC Chromium FYI Linux Builder", |
| 760 | "WebRTC Chromium FYI Linux Tester", |
| 761 | "WebRTC Chromium FYI Mac Builder (dbg)", |
| 762 | "WebRTC Chromium FYI Mac Builder", |
| 763 | "WebRTC Chromium FYI Mac Tester", |
| 764 | "WebRTC Chromium FYI Win Builder (dbg)", |
| 765 | "WebRTC Chromium FYI Win Builder", |
| 766 | "WebRTC Chromium FYI Win10 Tester", |
| 767 | "WebRTC Chromium FYI Win7 Tester", |
| 768 | "WebRTC Chromium FYI Win8 Tester", |
| 769 | "WebRTC Chromium FYI ios-device", |
Mirko Bonadei | 37071f6 | 2020-02-15 10:42:49 +0100 | [diff] [blame] | 770 | "WebRTC Chromium FYI ios-simulator", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 771 | ], |
| 772 | }, |
| 773 | }, |
| 774 | } |
| 775 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 776 | cron_builder( |
| 777 | "WebRTC lkgr finder", |
| 778 | recipe = "lkgr_finder", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 779 | properties = { |
| 780 | "project": "webrtc", |
| 781 | "repo": WEBRTC_GIT, |
| 782 | "ref": "refs/heads/lkgr", |
| 783 | "lkgr_status_gs_path": "chromium-webrtc/lkgr-status", |
| 784 | "config": lkgr_config, |
| 785 | }, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 786 | schedule = "*/10 * * * *", # Every 10 minutes. |
| 787 | ) |