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