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 | |
Christoffer Jansson | a814c56 | 2021-09-09 13:44:54 +0200 | [diff] [blame] | 7 | # https://chromium.googlesource.com/infra/luci/luci-go/+/main/lucicfg/doc/ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 8 | |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 9 | """LUCI project configuration for WebRTC CQ and CI.""" |
| 10 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 11 | lucicfg.check_version("1.23.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" |
Mirko Bonadei | f4b78bf | 2021-04-29 11:23:41 +0200 | [diff] [blame] | 15 | WEBRTC_TROOPER_EMAIL = "webrtc-troopers-robots@google.com" |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 16 | |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 17 | GOMA_BACKEND_WEBRTC_RBE_PROD = { |
Mirko Bonadei | 1e90534 | 2020-03-04 09:39:42 +0100 | [diff] [blame] | 18 | "$build/goma": { |
| 19 | "server_host": "goma.chromium.org", |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 20 | "use_luci_auth": True, |
| 21 | }, |
Mirko Bonadei | 1e90534 | 2020-03-04 09:39:42 +0100 | [diff] [blame] | 22 | } |
| 23 | |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 24 | GOMA_BACKEND_WEBRTC_IOS_RBE_PROD = { |
| 25 | "$build/goma": { |
| 26 | "server_host": "goma.chromium.org", |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 27 | "use_luci_auth": True, |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 28 | }, |
Artem Titov | 1d47d31 | 2020-11-03 14:45:52 +0100 | [diff] [blame] | 29 | "$depot_tools/osx_sdk": {"sdk_version": "12a7209"}, |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 30 | } |
| 31 | |
Patrik Höglund | 3916a97 | 2019-12-04 13:19:38 +0100 | [diff] [blame] | 32 | GOMA_BACKEND_RBE_ATS_PROD = { |
| 33 | "$build/goma": { |
| 34 | "server_host": "goma.chromium.org", |
Mirko Bonadei | 2688eca | 2020-03-25 09:15:54 +0100 | [diff] [blame] | 35 | "use_luci_auth": True, |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 36 | "enable_ats": True, |
| 37 | }, |
Patrik Höglund | 3916a97 | 2019-12-04 13:19:38 +0100 | [diff] [blame] | 38 | } |
| 39 | |
Mirko Bonadei | 5aafd47 | 2021-04-21 10:42:00 +0200 | [diff] [blame] | 40 | # Disable ATS on CQ/try. |
| 41 | GOMA_BACKEND_RBE_NO_ATS_PROD = { |
| 42 | "$build/goma": { |
| 43 | "server_host": "goma.chromium.org", |
| 44 | "use_luci_auth": True, |
| 45 | "enable_ats": False, |
| 46 | }, |
| 47 | } |
| 48 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 49 | # Top-level configs: |
| 50 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 51 | # Enable LUCI Realms support. |
| 52 | lucicfg.enable_experiment("crbug.com/1085650") |
| 53 | |
Andrii Shyshkalov | 32515d4 | 2021-04-29 14:39:42 +0200 | [diff] [blame] | 54 | # Launch all builds in "realms-aware mode", crbug.com/1177975. |
| 55 | luci.builder.defaults.experiments.set({"luci.use_realms": 100}) |
Andrii Shyshkalov | 20b2187 | 2021-04-28 15:10:53 +0200 | [diff] [blame] | 56 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 57 | lucicfg.config( |
| 58 | config_dir = ".", |
| 59 | tracked_files = [ |
| 60 | "commit-queue.cfg", |
| 61 | "cr-buildbucket.cfg", |
| 62 | "luci-logdog.cfg", |
| 63 | "luci-milo.cfg", |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 64 | "luci-notify.cfg", |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 65 | "luci-notify/**/*", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 66 | "luci-scheduler.cfg", |
| 67 | "project.cfg", |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 68 | "realms.cfg", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 69 | ], |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 70 | lint_checks = ["default"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 71 | ) |
| 72 | |
| 73 | luci.project( |
| 74 | name = "webrtc", |
| 75 | buildbucket = "cr-buildbucket.appspot.com", |
| 76 | logdog = "luci-logdog.appspot.com", |
| 77 | milo = "luci-milo.appspot.com", |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 78 | notify = "luci-notify.appspot.com", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 79 | scheduler = "luci-scheduler.appspot.com", |
| 80 | swarming = "chromium-swarm.appspot.com", |
| 81 | acls = [ |
| 82 | acl.entry( |
| 83 | [acl.BUILDBUCKET_READER, acl.LOGDOG_READER, acl.PROJECT_CONFIGS_READER, acl.SCHEDULER_READER], |
| 84 | groups = ["all"], |
| 85 | ), |
| 86 | acl.entry(acl.LOGDOG_WRITER, groups = ["luci-logdog-chromium-writers"]), |
| 87 | acl.entry(acl.SCHEDULER_OWNER, groups = ["project-webrtc-admins"]), |
| 88 | ], |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 89 | bindings = [ |
| 90 | luci.binding( |
| 91 | roles = "role/swarming.poolOwner", |
| 92 | groups = "project-webrtc-admins", |
| 93 | ), |
| 94 | luci.binding( |
| 95 | roles = "role/swarming.poolViewer", |
| 96 | groups = "all", |
| 97 | ), |
Andrii Shyshkalov | 2961b64 | 2021-04-29 14:01:53 +0200 | [diff] [blame] | 98 | # Allow any WebRTC build to trigger a test ran under chromium-tester@ |
| 99 | # task service account. |
| 100 | luci.binding( |
| 101 | roles = "role/swarming.taskServiceAccount", |
| 102 | users = [ |
| 103 | "chromium-tester@chops-service-accounts.iam.gserviceaccount.com", |
| 104 | ], |
| 105 | ), |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 106 | ], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 107 | ) |
| 108 | |
| 109 | luci.logdog( |
| 110 | gs_bucket = "chromium-luci-logdog", |
| 111 | ) |
| 112 | |
| 113 | luci.milo( |
| 114 | logo = "https://storage.googleapis.com/chrome-infra/webrtc-logo-vert-retro-255x305.png", |
| 115 | ) |
| 116 | |
Owen Rodley | a55c38e | 2020-06-15 11:16:10 +1000 | [diff] [blame] | 117 | luci.notify(tree_closing_enabled = True) |
| 118 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 119 | luci.cq( |
| 120 | status_host = "chromium-cq-status.appspot.com", |
| 121 | submit_max_burst = 1, |
| 122 | submit_burst_delay = 1 * time.minute, |
| 123 | ) |
| 124 | |
| 125 | luci.gitiles_poller( |
Christoffer Jansson | fa64689 | 2021-06-28 17:34:20 +0200 | [diff] [blame] | 126 | name = "webrtc-gitiles-trigger-main", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 127 | bucket = "ci", |
| 128 | repo = WEBRTC_GIT, |
Christoffer Jansson | fa64689 | 2021-06-28 17:34:20 +0200 | [diff] [blame] | 129 | refs = ["refs/heads/main"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 130 | ) |
| 131 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 132 | # Swarming permissions: |
| 133 | |
Andrii Shyshkalov | c26aaad | 2021-04-27 16:47:26 +0200 | [diff] [blame] | 134 | luci.realm(name = "pools/cron", bindings = [ |
| 135 | # Unlike WebRTC's own builders, other projects need an explicit grant to use this pool. |
| 136 | luci.binding( |
| 137 | roles = "role/swarming.poolUser", |
| 138 | projects = "libyuv", |
| 139 | ), |
| 140 | ]) |
| 141 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 142 | luci.realm(name = "pools/ci") |
Andrii Shyshkalov | c26aaad | 2021-04-27 16:47:26 +0200 | [diff] [blame] | 143 | luci.realm(name = "pools/ci-tests", bindings = [ |
| 144 | # Allow task service accounts of .ci pool/bucket to trigger tasks here. |
| 145 | luci.binding( |
| 146 | roles = "role/swarming.poolUser", |
| 147 | groups = "project-webrtc-ci-task-accounts", |
| 148 | ), |
| 149 | # Allow tasks here to use .ci task service accounts. |
| 150 | luci.binding( |
| 151 | roles = "role/swarming.taskServiceAccount", |
| 152 | groups = "project-webrtc-ci-task-accounts", |
| 153 | ), |
| 154 | ]) |
| 155 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 156 | luci.realm(name = "pools/try") |
Andrii Shyshkalov | c26aaad | 2021-04-27 16:47:26 +0200 | [diff] [blame] | 157 | luci.realm(name = "pools/try-tests", bindings = [ |
| 158 | # Allow task service accounts of .try pool/bucket to trigger tasks here. |
| 159 | luci.binding( |
| 160 | roles = "role/swarming.poolUser", |
| 161 | groups = "project-webrtc-try-task-accounts", |
| 162 | ), |
| 163 | # Allow tasks here to use .try task service accounts. |
| 164 | luci.binding( |
| 165 | roles = "role/swarming.taskServiceAccount", |
| 166 | groups = "project-webrtc-try-task-accounts", |
| 167 | ), |
| 168 | ]) |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 169 | |
Mirko Bonadei | 4cf0fc7 | 2021-08-31 17:38:10 +0200 | [diff] [blame] | 170 | # Allow to use LED & Swarming "Debug" feature to a larger group but only on perf bots / builders. |
| 171 | luci.realm(name = "pools/perf", bindings = [ |
| 172 | luci.binding( |
| 173 | roles = "role/swarming.poolUser", |
| 174 | groups = "project-webrtc-led-users", |
| 175 | ), |
| 176 | ]) |
| 177 | luci.binding( |
| 178 | realm = "perf", |
| 179 | roles = "role/swarming.taskTriggerer", |
| 180 | groups = "project-webrtc-led-users", |
| 181 | ) |
| 182 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 183 | # Allow admins to use LED & Swarming "Debug" feature on all WebRTC bots. |
| 184 | luci.binding( |
| 185 | realm = "@root", |
| 186 | roles = "role/swarming.poolUser", |
| 187 | groups = "project-webrtc-admins", |
| 188 | ) |
| 189 | luci.binding( |
| 190 | realm = "@root", |
| 191 | roles = "role/swarming.taskTriggerer", |
| 192 | groups = "project-webrtc-admins", |
| 193 | ) |
| 194 | |
Mirko Bonadei | 4cf0fc7 | 2021-08-31 17:38:10 +0200 | [diff] [blame] | 195 | # Allow to use LED & Swarming "Debug" feature to a larger group but only on try bots / builders. |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 196 | luci.binding( |
| 197 | realm = "pools/try", |
| 198 | roles = "role/swarming.poolUser", |
| 199 | groups = "project-webrtc-led-users", |
| 200 | ) |
| 201 | luci.binding( |
| 202 | realm = "try", |
| 203 | roles = "role/swarming.taskTriggerer", |
| 204 | groups = "project-webrtc-led-users", |
| 205 | ) |
| 206 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 207 | # Bucket definitions: |
| 208 | |
| 209 | luci.bucket( |
| 210 | name = "try", |
| 211 | acls = [ |
| 212 | acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [ |
| 213 | "service-account-cq", |
| 214 | "project-webrtc-tryjob-access", |
| 215 | ]), |
| 216 | ], |
| 217 | ) |
| 218 | |
| 219 | luci.bucket( |
| 220 | name = "ci", |
| 221 | acls = [ |
Oleh Prypin | f35939d | 2019-05-03 20:42:38 +0200 | [diff] [blame] | 222 | acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [ |
| 223 | "project-webrtc-ci-schedulers", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 224 | ]), |
Jeremy Leconte | 2e25bb5 | 2020-07-16 09:38:56 +0200 | [diff] [blame] | 225 | acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [ |
| 226 | # Allow Pinpoint to trigger builds for bisection |
| 227 | "service-account-chromeperf", |
| 228 | ]), |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 229 | ], |
| 230 | ) |
| 231 | |
| 232 | luci.bucket( |
| 233 | name = "perf", |
| 234 | acls = [ |
| 235 | acl.entry(acl.BUILDBUCKET_TRIGGERER, users = [ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 236 | "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com", |
| 237 | ]), |
| 238 | ], |
| 239 | ) |
| 240 | |
| 241 | luci.bucket( |
| 242 | name = "cron", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 243 | ) |
| 244 | |
| 245 | # Commit queue definitions: |
| 246 | |
| 247 | luci.cq_group( |
| 248 | name = "cq", |
| 249 | tree_status_host = "webrtc-status.appspot.com", |
Christoffer Jansson | 1746b25 | 2021-05-31 16:03:55 +0200 | [diff] [blame] | 250 | watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/heads/master", "refs/heads/main"])], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 251 | acls = [ |
| 252 | acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-committers"]), |
| 253 | acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]), |
| 254 | ], |
| 255 | retry_config = cq.RETRY_ALL_FAILURES, |
Oleh Prypin | 5416f2d | 2019-08-02 09:43:15 +0200 | [diff] [blame] | 256 | cancel_stale_tryjobs = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 257 | ) |
| 258 | |
| 259 | luci.cq_group( |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 260 | name = "cq_branch", |
| 261 | watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/branch-heads/.+"])], |
| 262 | acls = [ |
| 263 | acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-committers"]), |
| 264 | acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]), |
| 265 | ], |
| 266 | retry_config = cq.RETRY_ALL_FAILURES, |
Oleh Prypin | 5416f2d | 2019-08-02 09:43:15 +0200 | [diff] [blame] | 267 | cancel_stale_tryjobs = True, |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 268 | ) |
| 269 | |
| 270 | luci.cq_group( |
| 271 | name = "cq_infra", |
| 272 | watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/heads/infra/config"])], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 273 | acls = [ |
| 274 | acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-admins"]), |
| 275 | acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]), |
| 276 | ], |
| 277 | retry_config = cq.RETRY_ALL_FAILURES, |
Oleh Prypin | 5416f2d | 2019-08-02 09:43:15 +0200 | [diff] [blame] | 278 | cancel_stale_tryjobs = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 279 | ) |
| 280 | |
| 281 | luci.cq_tryjob_verifier( |
| 282 | builder = "presubmit", |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 283 | cq_group = "cq_infra", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 284 | ) |
| 285 | |
Oleh Prypin | e56cd9b | 2019-05-29 21:14:31 +0200 | [diff] [blame] | 286 | luci.cq_tryjob_verifier( |
| 287 | builder = "webrtc-internal:g3.webrtc-internal.try/internal_compile_lite", |
| 288 | owner_whitelist = ["project-webrtc-internal-tryjob-access"], |
| 289 | cq_group = "cq", |
| 290 | ) |
| 291 | |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 292 | # Notifier definitions: |
| 293 | |
| 294 | luci.notifier( |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 295 | name = "post_submit_failure_notifier", |
| 296 | on_new_status = ["FAILURE"], |
Mirko Bonadei | f4b78bf | 2021-04-29 11:23:41 +0200 | [diff] [blame] | 297 | notify_emails = [WEBRTC_TROOPER_EMAIL], |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 298 | template = luci.notifier_template( |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 299 | name = "build_failure", |
| 300 | body = io.read_file("luci-notify/email-templates/build_failure.template"), |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 301 | ), |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 302 | ) |
| 303 | |
| 304 | luci.notifier( |
| 305 | name = "cron_notifier", |
Jeremy Leconte | 67a904e | 2020-07-08 11:48:18 +0200 | [diff] [blame] | 306 | on_new_status = ["FAILURE", "INFRA_FAILURE"], |
Mirko Bonadei | f4b78bf | 2021-04-29 11:23:41 +0200 | [diff] [blame] | 307 | notify_emails = [WEBRTC_TROOPER_EMAIL], |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 308 | template = luci.notifier_template( |
| 309 | name = "cron", |
| 310 | body = io.read_file("luci-notify/email-templates/cron.template"), |
| 311 | ), |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 312 | ) |
| 313 | |
Jeremy Leconte | 67a904e | 2020-07-08 11:48:18 +0200 | [diff] [blame] | 314 | luci.notifier( |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 315 | name = "infra_failure_notifier", |
Jeremy Leconte | 67a904e | 2020-07-08 11:48:18 +0200 | [diff] [blame] | 316 | on_new_status = ["INFRA_FAILURE"], |
Mirko Bonadei | f4b78bf | 2021-04-29 11:23:41 +0200 | [diff] [blame] | 317 | notify_emails = [WEBRTC_TROOPER_EMAIL], |
Jeremy Leconte | 67a904e | 2020-07-08 11:48:18 +0200 | [diff] [blame] | 318 | template = luci.notifier_template( |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 319 | name = "infra_failure", |
| 320 | body = io.read_file("luci-notify/email-templates/infra_failure.template"), |
Jeremy Leconte | 67a904e | 2020-07-08 11:48:18 +0200 | [diff] [blame] | 321 | ), |
| 322 | ) |
| 323 | |
Owen Rodley | 6b721ba | 2020-05-26 10:04:20 +1000 | [diff] [blame] | 324 | # Tree closer definitions: |
| 325 | |
| 326 | luci.tree_closer( |
| 327 | name = "webrtc_tree_closer", |
| 328 | tree_status_host = "webrtc-status.appspot.com", |
Owen Rodley | 6b721ba | 2020-05-26 10:04:20 +1000 | [diff] [blame] | 329 | # TODO: These step filters are copied verbatim from Gatekeeper, for testing |
| 330 | # that LUCI-Notify would take the exact same actions. Once we've switched |
| 331 | # over, this should be updated - several of these steps don't exist in |
| 332 | # WebRTC recipes. |
| 333 | failed_step_regexp = [ |
| 334 | "bot_update", |
| 335 | "compile", |
| 336 | "gclient runhooks", |
| 337 | "runhooks", |
| 338 | "update", |
| 339 | "extract build", |
| 340 | "cleanup_temp", |
| 341 | "taskkill", |
| 342 | "compile", |
| 343 | "gn", |
| 344 | ], |
| 345 | failed_step_regexp_exclude = ".*\\(experimental\\).*", |
| 346 | ) |
| 347 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 348 | # Recipe definitions: |
| 349 | |
| 350 | def recipe(recipe, pkg = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"): |
| 351 | return luci.recipe( |
| 352 | name = recipe.split("/")[-1], |
| 353 | cipd_package = pkg, |
Christoffer Jansson | a814c56 | 2021-09-09 13:44:54 +0200 | [diff] [blame] | 354 | cipd_version = "refs/heads/main", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 355 | recipe = recipe, |
| 356 | ) |
| 357 | |
| 358 | recipe("chromium_trybot") |
| 359 | recipe("run_presubmit") |
| 360 | recipe("webrtc/auto_roll_webrtc_deps") |
| 361 | recipe("webrtc/ios") |
| 362 | recipe("webrtc/ios_api_framework") |
| 363 | recipe("webrtc/libfuzzer") |
| 364 | recipe("webrtc/more_configs") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 365 | recipe("webrtc/standalone") |
Mirko Bonadei | 54bbd1c | 2020-12-14 15:54:46 +0100 | [diff] [blame] | 366 | recipe("webrtc/update_webrtc_binary_version") |
Jeff Yoon | f421c68 | 2020-12-17 00:16:22 -0800 | [diff] [blame] | 367 | 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] | 368 | |
| 369 | # Console definitions: |
| 370 | |
Josip Sokcevic | 5a906ed | 2021-06-28 08:55:46 -0700 | [diff] [blame] | 371 | luci.console_view(name = "ci", title = "Main", repo = WEBRTC_GIT, header = "console-header.textpb", refs = ["refs/heads/master", "refs/heads/main"]) |
| 372 | luci.console_view(name = "perf", title = "Perf", repo = WEBRTC_GIT, header = "console-header.textpb", refs = ["refs/heads/master", "refs/heads/main"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 373 | luci.list_view(name = "cron", title = "Cron") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 374 | luci.list_view(name = "try", title = "Tryserver") |
| 375 | |
| 376 | def add_milo(builder, views): |
| 377 | """Add Milo console entries for the builder. |
| 378 | |
| 379 | Args: |
| 380 | builder: builder name (str). |
| 381 | views: dict where keys are names of consoles and values are either a |
| 382 | category for the console (str, pipe-separated) or True, which means |
| 383 | adding to a list view rather than a console. |
| 384 | """ |
| 385 | for view_name, category in views.items(): |
| 386 | if category == None: |
| 387 | continue |
| 388 | elif type(category) == "string": |
| 389 | category, _, short_name = category.rpartition("|") |
| 390 | luci.console_view_entry( |
| 391 | console_view = view_name, |
| 392 | builder = builder, |
| 393 | category = category or None, |
| 394 | short_name = short_name or None, |
| 395 | ) |
| 396 | elif category == True: |
| 397 | luci.list_view_entry( |
| 398 | list_view = view_name, |
| 399 | builder = builder, |
| 400 | ) |
| 401 | else: |
| 402 | fail("Unexpected value for category: %r" % category) |
| 403 | |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 404 | lkgr_builders = {} |
| 405 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 406 | # Builder-defining functions: |
| 407 | |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 408 | def webrtc_builder( |
| 409 | name, |
| 410 | recipe = "standalone", |
| 411 | dimensions = {}, |
Mirko Bonadei | 825f9c2 | 2020-07-01 11:52:39 +0200 | [diff] [blame] | 412 | properties = {}, |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 413 | priority = 30, |
| 414 | execution_timeout = 2 * time.hour, |
Mirko Bonadei | b7ef460 | 2020-07-01 13:28:26 +0200 | [diff] [blame] | 415 | goma_jobs = None, |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 416 | **kwargs): |
Mirko Bonadei | b7ef460 | 2020-07-01 13:28:26 +0200 | [diff] [blame] | 417 | """WebRTC specific wrapper around luci.builder. |
| 418 | |
| 419 | Args: |
| 420 | name: builder name (str). |
| 421 | recipe: string with the name of the recipe to run. |
| 422 | dimensions: dict of Swarming dimensions (strings) to search machines by. |
| 423 | properties: dict of properties to pass to the recipe (on top of the default ones). |
| 424 | priority: int [1-255] or None, indicating swarming task priority, lower is |
| 425 | more important. If None, defer the decision to Buildbucket service. |
| 426 | execution_timeout: int or None, how long to wait for a running build to finish before |
| 427 | forcefully aborting it and marking the build as timed out. If None, |
| 428 | defer the decision to Buildbucket service. |
| 429 | goma_jobs: int or None, number of jobs to be used by the builder. If None, defer the |
| 430 | decition to the goma module. |
| 431 | **kwargs: Pass on to webrtc_builder / luci.builder. |
| 432 | Returns: |
| 433 | A luci.builder. |
| 434 | """ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 435 | dimensions = merge_dicts({"cpu": "x86-64"}, dimensions) |
| 436 | |
Mirko Bonadei | b7ef460 | 2020-07-01 13:28:26 +0200 | [diff] [blame] | 437 | if goma_jobs != None: |
| 438 | goma_additional_params = {"$build/goma": {"jobs": goma_jobs}} |
| 439 | properties = merge_dicts(properties, goma_additional_params) |
Ye Kuang | 8df2049 | 2020-10-15 14:54:17 +0900 | [diff] [blame] | 440 | properties = merge_dicts(properties, { |
| 441 | "$recipe_engine/isolated": { |
| 442 | "server": "https://isolateserver.appspot.com", |
| 443 | }, |
| 444 | }) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 445 | return luci.builder( |
| 446 | name = name, |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 447 | executable = recipe, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 448 | dimensions = {k: v for k, v in dimensions.items() if v != None}, |
Mirko Bonadei | b7ef460 | 2020-07-01 13:28:26 +0200 | [diff] [blame] | 449 | properties = properties, |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 450 | execution_timeout = execution_timeout, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 451 | priority = priority, |
| 452 | build_numbers = True, |
| 453 | swarming_tags = ["vpython:native-python-wrapper"], |
| 454 | **kwargs |
| 455 | ) |
| 456 | |
| 457 | def ci_builder( |
| 458 | name, |
| 459 | ci_cat, |
| 460 | perf_cat = None, |
| 461 | fyi_cat = None, |
| 462 | properties = {}, |
| 463 | dimensions = {}, |
| 464 | prioritized = False, |
Oleh Prypin | f5432c5 | 2019-03-19 15:10:37 +0100 | [diff] [blame] | 465 | enabled = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 466 | **kwargs): |
Oleh Prypin | e567767 | 2019-04-25 12:21:35 +0200 | [diff] [blame] | 467 | """Add a post-submit builder. |
| 468 | |
| 469 | Args: |
| 470 | name: builder name (str). |
| 471 | ci_cat: the category + name for the /ci/ console, or None to omit from the console. |
| 472 | perf_cat: the category + name for the /perf/ console, or None to omit from the console. |
| 473 | fyi_cat: the category + name for the /fyi/ console, or None to omit from the console. |
| 474 | properties: dict of properties to pass to the recipe (on top of the default ones). |
| 475 | dimensions: dict of Swarming dimensions (strings) to search machines by. |
| 476 | prioritized: True to make this builder have a higher priority and never batch builds. |
| 477 | enabled: False to exclude this builder from consoles and failure notifications. |
| 478 | **kwargs: Pass on to webrtc_builder / luci.builder. |
| 479 | Returns: |
| 480 | A luci.builder. |
| 481 | |
| 482 | Notifications are also disabled if a builder is not on either of /ci/ or /perf/ consoles. |
| 483 | """ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 484 | if prioritized: |
| 485 | kwargs["triggering_policy"] = scheduler.greedy_batching( |
| 486 | max_batch_size = 1, |
| 487 | max_concurrent_invocations = 3, |
| 488 | ) |
| 489 | kwargs["priority"] = 29 |
| 490 | |
Oleh Prypin | f5432c5 | 2019-03-19 15:10:37 +0100 | [diff] [blame] | 491 | if enabled: |
| 492 | add_milo(name, {"ci": ci_cat, "perf": perf_cat, "fyi": fyi_cat}) |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 493 | if ci_cat: |
| 494 | lkgr_builders[name] = True |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 495 | return webrtc_builder( |
| 496 | name = name, |
Garrett Beaty | 4a106ce | 2020-09-09 14:51:23 -0700 | [diff] [blame] | 497 | properties = merge_dicts({"builder_group": "client.webrtc"}, properties), |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 498 | dimensions = merge_dicts({"pool": "luci.webrtc.ci"}, dimensions), |
| 499 | bucket = "ci", |
| 500 | service_account = "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com", |
Christoffer Jansson | fa64689 | 2021-06-28 17:34:20 +0200 | [diff] [blame] | 501 | triggered_by = ["webrtc-gitiles-trigger-main"] if enabled else None, |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 502 | repo = WEBRTC_GIT, |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 503 | 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] | 504 | **kwargs |
| 505 | ) |
| 506 | |
| 507 | def try_builder( |
| 508 | name, |
| 509 | try_cat = True, |
| 510 | fyi_cat = None, |
| 511 | properties = {}, |
| 512 | dimensions = {}, |
| 513 | cq = {}, |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 514 | branch_cq = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 515 | **kwargs): |
Oleh Prypin | e567767 | 2019-04-25 12:21:35 +0200 | [diff] [blame] | 516 | """Add a pre-submit builder. |
| 517 | |
| 518 | Args: |
| 519 | name: builder name (str). |
| 520 | try_cat: boolean, whether to include this builder in the /try/ console. See also: `add_milo`. |
| 521 | fyi_cat: the category + name for the /fyi/ console, or None to omit from the console. |
| 522 | properties: dict of properties to pass to the recipe (on top of the default ones). |
| 523 | dimensions: dict of Swarming dimensions (strings) to search machines by. |
| 524 | 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] | 525 | 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] | 526 | **kwargs: Pass on to webrtc_builder / luci.builder. |
| 527 | Returns: |
| 528 | A luci.builder. |
| 529 | """ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 530 | add_milo(name, {"try": try_cat, "fyi": fyi_cat}) |
| 531 | if cq != None: |
| 532 | luci.cq_tryjob_verifier( |
| 533 | builder = name, |
| 534 | cq_group = "cq", |
| 535 | **cq |
| 536 | ) |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 537 | if branch_cq: |
| 538 | luci.cq_tryjob_verifier( |
| 539 | builder = name, |
| 540 | cq_group = "cq_branch", |
| 541 | **cq |
| 542 | ) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 543 | |
| 544 | return webrtc_builder( |
| 545 | name = name, |
Garrett Beaty | 4a106ce | 2020-09-09 14:51:23 -0700 | [diff] [blame] | 546 | properties = merge_dicts({"builder_group": "tryserver.webrtc"}, properties), |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 547 | dimensions = merge_dicts({"pool": "luci.webrtc.try"}, dimensions), |
| 548 | bucket = "try", |
| 549 | service_account = "webrtc-try-builder@chops-service-accounts.iam.gserviceaccount.com", |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 550 | notifies = ["infra_failure_notifier"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 551 | **kwargs |
| 552 | ) |
| 553 | |
| 554 | def perf_builder( |
| 555 | name, |
| 556 | perf_cat, |
| 557 | recipe = "standalone", |
| 558 | properties = {}, |
| 559 | dimensions = {}, |
| 560 | **kwargs): |
| 561 | add_milo(name, {"perf": perf_cat}) |
| 562 | return webrtc_builder( |
| 563 | name = name, |
| 564 | recipe = recipe, |
Garrett Beaty | 4a106ce | 2020-09-09 14:51:23 -0700 | [diff] [blame] | 565 | properties = merge_dicts({"builder_group": "client.webrtc.perf"}, properties), |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 566 | dimensions = merge_dicts({"pool": "luci.webrtc.perf", "os": "Linux", "cpu": None}, dimensions), |
| 567 | bucket = "perf", |
| 568 | service_account = "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com", |
| 569 | # log_base of 1.7 means: |
| 570 | # when there are P pending builds, LUCI will batch the first B builds. |
| 571 | # P: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ... |
| 572 | # 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] | 573 | triggering_policy = scheduler.logarithmic_batching(log_base = 1.7), |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 574 | execution_timeout = 3 * time.hour, |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 575 | notifies = ["post_submit_failure_notifier", "infra_failure_notifier"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 576 | **kwargs |
| 577 | ) |
| 578 | |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 579 | def android_perf_builder( |
| 580 | name, |
| 581 | perf_cat, |
| 582 | recipe = "standalone", |
| 583 | properties = {}, |
| 584 | dimensions = {}, |
| 585 | **kwargs): |
| 586 | return perf_builder( |
| 587 | name = name, |
| 588 | perf_cat = perf_cat, |
| 589 | recipe = recipe, |
| 590 | properties = merge_dicts(GOMA_BACKEND_WEBRTC_RBE_PROD, properties), |
| 591 | dimensions = dimensions, |
| 592 | **kwargs |
| 593 | ) |
| 594 | |
| 595 | def linux_perf_builder( |
| 596 | name, |
| 597 | perf_cat, |
| 598 | recipe = "standalone", |
| 599 | properties = {}, |
| 600 | dimensions = {}, |
| 601 | **kwargs): |
| 602 | return perf_builder( |
| 603 | name = name, |
| 604 | perf_cat = perf_cat, |
| 605 | recipe = recipe, |
| 606 | properties = merge_dicts(GOMA_BACKEND_WEBRTC_RBE_PROD, properties), |
| 607 | dimensions = dimensions, |
| 608 | **kwargs |
| 609 | ) |
| 610 | |
| 611 | def mac_perf_builder( |
| 612 | name, |
| 613 | perf_cat, |
| 614 | recipe = "standalone", |
| 615 | properties = {}, |
| 616 | dimensions = {}, |
| 617 | **kwargs): |
| 618 | return perf_builder( |
| 619 | name = name, |
| 620 | perf_cat = perf_cat, |
| 621 | recipe = recipe, |
| 622 | properties = merge_dicts(GOMA_BACKEND_WEBRTC_RBE_PROD, properties), |
| 623 | dimensions = dimensions, |
| 624 | **kwargs |
| 625 | ) |
| 626 | |
| 627 | def win_perf_builder( |
| 628 | name, |
| 629 | perf_cat, |
| 630 | recipe = "standalone", |
| 631 | properties = {}, |
| 632 | dimensions = {}, |
| 633 | **kwargs): |
| 634 | return perf_builder( |
| 635 | name = name, |
| 636 | perf_cat = perf_cat, |
| 637 | recipe = recipe, |
| 638 | properties = merge_dicts(GOMA_BACKEND_RBE_ATS_PROD, properties), |
| 639 | dimensions = dimensions, |
| 640 | **kwargs |
| 641 | ) |
| 642 | |
Mirko Bonadei | 54bbd1c | 2020-12-14 15:54:46 +0100 | [diff] [blame] | 643 | def cron_builder(name, dimensions = {}, service_account = None, **kwargs): |
| 644 | if service_account == None: |
| 645 | service_account = "chromium-webrtc-autoroll@webrtc-ci.iam.gserviceaccount.com" |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 646 | add_milo(name, {"cron": True}) |
| 647 | return webrtc_builder( |
| 648 | name = name, |
| 649 | dimensions = merge_dicts({"pool": "luci.webrtc.cron", "os": "Linux"}, dimensions), |
| 650 | bucket = "cron", |
Mirko Bonadei | 54bbd1c | 2020-12-14 15:54:46 +0100 | [diff] [blame] | 651 | service_account = service_account, |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 652 | notifies = ["cron_notifier"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 653 | **kwargs |
| 654 | ) |
| 655 | |
| 656 | # Helpers: |
| 657 | |
| 658 | def merge_dicts(a, b): |
| 659 | """Return the result of merging two dicts. |
| 660 | |
| 661 | If matching values are both dicts or both lists, they will be merged (non-recursively). |
| 662 | |
| 663 | Args: |
| 664 | a: first dict. |
| 665 | b: second dict (takes priority). |
| 666 | Returns: |
| 667 | Merged dict. |
| 668 | """ |
| 669 | a = dict(a) |
| 670 | for k, bv in b.items(): |
| 671 | av = a.get(k) |
| 672 | if type(av) == "dict" and type(bv) == "dict": |
| 673 | a[k] = dict(av) |
| 674 | a[k].update(bv) |
| 675 | elif type(av) == "list" and type(bv) == "list": |
| 676 | a[k] = av + bv |
| 677 | else: |
| 678 | a[k] = bv |
| 679 | return a |
| 680 | |
| 681 | def normal_builder_factory(**common_kwargs): |
| 682 | def builder(*args, **kwargs): |
| 683 | return ci_builder(*args, **merge_dicts(common_kwargs, kwargs)) |
| 684 | |
| 685 | def try_job(*args, **kwargs): |
| 686 | return try_builder(*args, **merge_dicts(common_kwargs, kwargs)) |
| 687 | |
| 688 | return builder, try_job |
| 689 | |
| 690 | # Mixins: |
| 691 | |
| 692 | linux_builder, linux_try_job = normal_builder_factory( |
| 693 | dimensions = {"os": "Linux", "inside_docker": "0"}, |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 694 | properties = GOMA_BACKEND_WEBRTC_RBE_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 695 | ) |
| 696 | |
| 697 | android_builder, android_try_job = normal_builder_factory( |
| 698 | dimensions = {"os": "Linux"}, |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 699 | properties = GOMA_BACKEND_WEBRTC_RBE_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 700 | ) |
| 701 | |
Mirko Bonadei | 5aafd47 | 2021-04-21 10:42:00 +0200 | [diff] [blame] | 702 | def win_builder(*args, **kwargs): |
| 703 | return ci_builder( |
| 704 | *args, |
| 705 | **merge_dicts({ |
| 706 | "dimensions": {"os": "Windows"}, |
| 707 | "properties": GOMA_BACKEND_RBE_ATS_PROD, |
| 708 | }, kwargs) |
| 709 | ) |
| 710 | |
| 711 | def win_try_job(*args, **kwargs): |
| 712 | return try_builder( |
| 713 | *args, |
| 714 | **merge_dicts({ |
| 715 | "dimensions": {"os": "Windows"}, |
| 716 | "properties": GOMA_BACKEND_RBE_NO_ATS_PROD, |
| 717 | }, kwargs) |
| 718 | ) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 719 | |
| 720 | mac_builder, mac_try_job = normal_builder_factory( |
| 721 | dimensions = {"os": "Mac"}, |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 722 | properties = GOMA_BACKEND_WEBRTC_RBE_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 723 | ) |
| 724 | |
| 725 | ios_builder, ios_try_job = normal_builder_factory( |
Mirko Bonadei | 8096c23 | 2020-08-26 21:44:42 +0200 | [diff] [blame] | 726 | dimensions = {"os": "Mac-10.15"}, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 727 | recipe = "ios", |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 728 | properties = GOMA_BACKEND_WEBRTC_IOS_RBE_PROD, |
| 729 | caches = [swarming.cache("osx_sdk")], |
| 730 | ) |
| 731 | |
Mirko Bonadei | a7677a3 | 2021-10-05 08:31:36 +0200 | [diff] [blame] | 732 | ios_builder_macos11, ios_try_job_macos11 = normal_builder_factory( |
Mirko Bonadei | e680bce | 2021-10-03 12:05:13 +0200 | [diff] [blame] | 733 | dimensions = {"os": "Mac-11"}, |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 734 | recipe = "ios", |
Mirko Bonadei | a7677a3 | 2021-10-05 08:31:36 +0200 | [diff] [blame] | 735 | properties = GOMA_BACKEND_WEBRTC_IOS_RBE_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 736 | caches = [swarming.cache("osx_sdk")], |
| 737 | ) |
| 738 | |
| 739 | # Actual builder configuration: |
| 740 | |
| 741 | android_builder("Android32 (M Nexus5X)(dbg)", "Android|arm|dbg") |
| 742 | android_try_job("android_compile_arm_dbg", cq = None) |
| 743 | android_try_job("android_arm_dbg") |
| 744 | android_builder("Android32 (M Nexus5X)", "Android|arm|rel") |
Andrey Logvin | 849978d | 2021-09-14 10:20:19 +0000 | [diff] [blame] | 745 | android_try_job("android_arm_rel") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 746 | android_builder("Android32 Builder arm", "Android|arm|size", perf_cat = "Android|arm|Builder|", prioritized = True) |
| 747 | android_try_job("android_compile_arm_rel") |
Mirko Bonadei | 86b4f2d | 2020-07-08 14:24:48 +0200 | [diff] [blame] | 748 | 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] | 749 | 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] | 750 | android_try_job("android_compile_arm64_dbg", cq = None) |
| 751 | android_try_job("android_arm64_dbg", cq = None) |
| 752 | android_builder("Android64 (M Nexus5X)", "Android|arm64|rel") |
| 753 | android_try_job("android_arm64_rel") |
| 754 | 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] | 755 | android_perf_builder("Perf Android64 (M Nexus5X)", "Android|arm64|Tester|M Nexus5X", triggered_by = ["Android64 Builder arm64"]) |
| 756 | 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] | 757 | android_try_job("android_compile_arm64_rel") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 758 | android_builder("Android64 Builder x64 (dbg)", "Android|x64|dbg") |
| 759 | android_try_job("android_compile_x64_dbg") |
| 760 | android_try_job("android_compile_x64_rel", cq = None) |
| 761 | android_builder("Android32 Builder x86 (dbg)", "Android|x86|dbg") |
| 762 | android_try_job("android_compile_x86_dbg") |
| 763 | android_builder("Android32 Builder x86", "Android|x86|rel") |
| 764 | android_try_job("android_compile_x86_rel") |
| 765 | android_builder("Android32 (more configs)", "Android|arm|more", recipe = "more_configs") |
| 766 | android_try_job("android_arm_more_configs", recipe = "more_configs") |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 767 | android_try_job("android_chromium_compile", recipe = "chromium_trybot", branch_cq = False) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 768 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 769 | ios_builder("iOS64 Debug", "iOS|arm64|dbg") |
| 770 | ios_try_job("ios_compile_arm64_dbg") |
| 771 | ios_builder("iOS64 Release", "iOS|arm64|rel") |
| 772 | ios_try_job("ios_compile_arm64_rel") |
Artem Titov | 1d47d31 | 2020-11-03 14:45:52 +0100 | [diff] [blame] | 773 | ios_builder("iOS64 Sim Debug (iOS 14.0)", "iOS|x64|14") |
Andrey Logvin | 81320ad | 2021-06-02 16:45:09 +0000 | [diff] [blame] | 774 | ios_try_job("ios_sim_x64_dbg_ios14") |
Artem Titov | 1d47d31 | 2020-11-03 14:45:52 +0100 | [diff] [blame] | 775 | ios_builder("iOS64 Sim Debug (iOS 13)", "iOS|x64|13") |
Andrey Logvin | 81320ad | 2021-06-02 16:45:09 +0000 | [diff] [blame] | 776 | ios_try_job("ios_sim_x64_dbg_ios13") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 777 | ios_builder("iOS64 Sim Debug (iOS 12)", "iOS|x64|12") |
Andrey Logvin | 81320ad | 2021-06-02 16:45:09 +0000 | [diff] [blame] | 778 | ios_try_job("ios_sim_x64_dbg_ios12") |
Mirko Bonadei | a7677a3 | 2021-10-05 08:31:36 +0200 | [diff] [blame] | 779 | ios_builder_macos11("iOS API Framework Builder", "iOS|fat|size", recipe = "ios_api_framework", prioritized = True) |
| 780 | ios_try_job_macos11("ios_api_framework", recipe = "ios_api_framework") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 781 | |
| 782 | linux_builder("Linux32 Debug", "Linux|x86|dbg") |
| 783 | linux_try_job("linux_x86_dbg") |
| 784 | linux_builder("Linux32 Release", "Linux|x86|rel") |
| 785 | linux_try_job("linux_x86_rel") |
| 786 | linux_builder("Linux64 Debug", "Linux|x64|dbg") |
| 787 | linux_try_job("linux_dbg", cq = None) |
| 788 | linux_try_job("linux_compile_dbg") |
| 789 | linux_builder("Linux64 Release", "Linux|x64|rel") |
| 790 | linux_try_job("linux_rel") |
| 791 | linux_builder("Linux64 Builder", "Linux|x64|size", perf_cat = "Linux|x64|Builder|", prioritized = True) |
| 792 | linux_try_job("linux_compile_rel") |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 793 | linux_perf_builder("Perf Linux Trusty", "Linux|x64|Tester|Trusty", triggered_by = ["Linux64 Builder"]) |
Christoffer Jansson | 627cb05 | 2021-06-29 12:34:58 +0200 | [diff] [blame] | 794 | linux_perf_builder("Perf Linux Bionic", "Linux|x64|Tester|Bionic", triggered_by = ["Linux64 Builder"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 795 | linux_builder("Linux32 Debug (ARM)", "Linux|arm|dbg") |
| 796 | linux_try_job("linux_compile_arm_dbg") |
| 797 | linux_builder("Linux32 Release (ARM)", "Linux|arm|rel") |
| 798 | linux_try_job("linux_compile_arm_rel") |
| 799 | linux_builder("Linux64 Debug (ARM)", "Linux|arm64|dbg") |
| 800 | linux_try_job("linux_compile_arm64_dbg") |
| 801 | linux_builder("Linux64 Release (ARM)", "Linux|arm64|rel") |
| 802 | linux_try_job("linux_compile_arm64_rel") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 803 | linux_builder("Linux Asan", "Linux|x64|asan") |
| 804 | linux_try_job("linux_asan") |
| 805 | linux_builder("Linux MSan", "Linux|x64|msan") |
| 806 | linux_try_job("linux_msan") |
| 807 | linux_builder("Linux Tsan v2", "Linux|x64|tsan") |
| 808 | linux_try_job("linux_tsan2") |
| 809 | linux_builder("Linux UBSan", "Linux|x64|ubsan") |
| 810 | linux_try_job("linux_ubsan") |
| 811 | linux_builder("Linux UBSan vptr", "Linux|x64|ubsan") |
| 812 | linux_try_job("linux_ubsan_vptr") |
| 813 | linux_builder("Linux64 Release (Libfuzzer)", "Linux|x64|fuzz", recipe = "libfuzzer") |
| 814 | linux_try_job("linux_libfuzzer_rel", recipe = "libfuzzer") |
| 815 | linux_builder("Linux (more configs)", "Linux|x64|more", recipe = "more_configs") |
| 816 | linux_try_job("linux_more_configs", recipe = "more_configs") |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 817 | linux_try_job("linux_chromium_compile", recipe = "chromium_trybot", branch_cq = False) |
Mirko Bonadei | 40de50f | 2019-11-07 11:23:47 +0100 | [diff] [blame] | 818 | 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] | 819 | |
| 820 | mac_builder("Mac64 Debug", "Mac|x64|dbg") |
| 821 | mac_try_job("mac_dbg", cq = None) |
| 822 | mac_try_job("mac_compile_dbg") |
| 823 | mac_builder("Mac64 Release", "Mac|x64|rel") |
Andrey Logvin | a950122 | 2021-04-27 18:08:39 +0000 | [diff] [blame] | 824 | mac_try_job("mac_rel") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 825 | mac_try_job("mac_compile_rel", cq = None) |
| 826 | mac_builder("Mac64 Builder", ci_cat = None, perf_cat = "Mac|x64|Builder|") |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 827 | 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] | 828 | mac_builder("Mac Asan", "Mac|x64|asan") |
Andrey Logvin | a950122 | 2021-04-27 18:08:39 +0000 | [diff] [blame] | 829 | mac_try_job("mac_asan") |
Mirko Bonadei | 2f407ea | 2021-08-31 07:27:22 +0000 | [diff] [blame] | 830 | mac_try_job("mac_chromium_compile", recipe = "chromium_trybot", dimensions = {"cores": "8"}, branch_cq = False) |
Christoffer Jansson | b21c950 | 2021-06-09 16:15:39 +0200 | [diff] [blame] | 831 | mac_builder("MacARM64 M1 Release", "Mac|arm64M1|rel", dimensions = {"cpu": "arm64-64-Apple_M1"}) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 832 | |
| 833 | win_builder("Win32 Debug", "Win MSVC|x86|dbg") |
Björn Terelius | 46fc2e3 | 2021-10-06 15:13:25 +0200 | [diff] [blame] | 834 | win_try_job("win_x86_msvc_dbg", cq = None) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 835 | win_try_job("win_compile_x86_msvc_dbg", cq = None) |
Oleh Prypin | 63041b8 | 2019-03-19 22:56:01 +0000 | [diff] [blame] | 836 | win_builder("Win32 Release", "Win MSVC|x86|rel") |
Björn Terelius | 46fc2e3 | 2021-10-06 15:13:25 +0200 | [diff] [blame] | 837 | win_try_job("win_x86_msvc_rel", cq = None) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 838 | win_try_job("win_compile_x86_msvc_rel", cq = None) |
| 839 | win_builder("Win64 Debug", "Win MSVC|x64|dbg") |
Björn Terelius | 46fc2e3 | 2021-10-06 15:13:25 +0200 | [diff] [blame] | 840 | win_try_job("win_x64_msvc_dbg", cq = None) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 841 | win_try_job("win_compile_x64_msvc_dbg", cq = None) |
| 842 | win_builder("Win64 Release", "Win MSVC|x64|rel") |
Björn Terelius | 46fc2e3 | 2021-10-06 15:13:25 +0200 | [diff] [blame] | 843 | win_try_job("win_x64_msvc_rel", cq = None) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 844 | win_try_job("win_compile_x64_msvc_rel", cq = None) |
| 845 | win_builder("Win32 Debug (Clang)", "Win Clang|x86|dbg") |
| 846 | win_try_job("win_x86_clang_dbg", cq = None) |
| 847 | win_try_job("win_compile_x86_clang_dbg") |
| 848 | win_builder("Win32 Release (Clang)", "Win Clang|x86|rel") |
| 849 | win_try_job("win_x86_clang_rel") |
| 850 | win_try_job("win_compile_x86_clang_rel", cq = None) |
| 851 | 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] | 852 | 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] | 853 | win_builder("Win64 Debug (Clang)", "Win Clang|x64|dbg") |
| 854 | win_try_job("win_x64_clang_dbg", cq = None) |
| 855 | win_try_job("win_x64_clang_dbg_win8", cq = None) |
| 856 | win_try_job("win_x64_clang_dbg_win10", cq = None) |
| 857 | win_try_job("win_compile_x64_clang_dbg") |
| 858 | win_builder("Win64 Release (Clang)", "Win Clang|x64|rel") |
| 859 | win_try_job("win_x64_clang_rel", cq = None) |
| 860 | win_try_job("win_compile_x64_clang_rel") |
Mirko Bonadei | afbe33d | 2019-05-31 09:27:54 +0200 | [diff] [blame] | 861 | win_builder("Win64 ASan", "Win Clang|x64|asan") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 862 | win_try_job("win_asan") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 863 | win_builder("Win (more configs)", "Win Clang|x86|more", recipe = "more_configs") |
| 864 | win_try_job("win_x86_more_configs", recipe = "more_configs") |
Mirko Bonadei | 825f9c2 | 2020-07-01 11:52:39 +0200 | [diff] [blame] | 865 | win_try_job("win_chromium_compile", recipe = "chromium_trybot", branch_cq = False, goma_jobs = 150) |
| 866 | 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] | 867 | |
| 868 | linux_try_job( |
| 869 | "presubmit", |
| 870 | recipe = "run_presubmit", |
| 871 | properties = {"repo_name": "webrtc", "runhooks": True}, |
| 872 | priority = 28, |
| 873 | cq = {"disable_reuse": True}, |
| 874 | ) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 875 | |
| 876 | cron_builder( |
| 877 | "Auto-roll - WebRTC DEPS", |
| 878 | recipe = "auto_roll_webrtc_deps", |
Oleh Prypin | dc68a72 | 2019-06-25 10:43:13 +0200 | [diff] [blame] | 879 | schedule = "0 */2 * * *", # Every 2 hours. |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 880 | ) |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 881 | |
Mirko Bonadei | 54bbd1c | 2020-12-14 15:54:46 +0100 | [diff] [blame] | 882 | cron_builder( |
| 883 | "WebRTC version update", |
| 884 | recipe = "update_webrtc_binary_version", |
| 885 | schedule = "0 4 * * *", # Every day at 4am. |
| 886 | service_account = "webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com", |
| 887 | ) |
| 888 | |
Mirko Bonadei | c8ce5ea | 2021-07-12 10:54:14 +0200 | [diff] [blame] | 889 | # Add names of builders to remove from LKGR finder to this list. This is |
| 890 | # useful when a failure can be safely ignored while fixing it without |
| 891 | # blocking the LKGR finder on it. |
Mirko Bonadei | ab3ff26 | 2020-12-18 10:17:43 +0100 | [diff] [blame] | 892 | skipped_lkgr_bots = [ |
Björn Terelius | 6719383 | 2021-10-06 15:27:37 +0200 | [diff] [blame^] | 893 | # TODO(webrtc:13232): The following 4 bots are excluded because they |
| 894 | # use MSVC. Remove when the bug has been fixed. |
Björn Terelius | 46fc2e3 | 2021-10-06 15:13:25 +0200 | [diff] [blame] | 895 | "Win32 Debug", |
| 896 | "Win32 Release", |
| 897 | "Win64 Debug", |
| 898 | "Win64 Release", |
Mirko Bonadei | ab3ff26 | 2020-12-18 10:17:43 +0100 | [diff] [blame] | 899 | ] |
| 900 | |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 901 | lkgr_config = { |
| 902 | "project": "webrtc", |
| 903 | "source_url": WEBRTC_GIT, |
| 904 | "status_url": "https://webrtc-status.appspot.com", |
| 905 | "allowed_lag": 300, # hours |
| 906 | "allowed_gap": 12, # commits behind |
Mirko Bonadei | f4b78bf | 2021-04-29 11:23:41 +0200 | [diff] [blame] | 907 | "error_recipients": WEBRTC_TROOPER_EMAIL, |
Michael Achenbach | 09dd7dc | 2019-07-26 15:26:11 +0200 | [diff] [blame] | 908 | "buckets": { |
| 909 | "webrtc/ci": { |
| 910 | # bucket alias: luci.webrtc.ci |
Mirko Bonadei | ab3ff26 | 2020-12-18 10:17:43 +0100 | [diff] [blame] | 911 | "builders": [ |
| 912 | b |
| 913 | for b in sorted(lkgr_builders) |
| 914 | if b not in skipped_lkgr_bots |
| 915 | ], |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 916 | }, |
Michael Achenbach | 09dd7dc | 2019-07-26 15:26:11 +0200 | [diff] [blame] | 917 | "chromium/webrtc.fyi": { |
| 918 | # bucket alias: luci.chromium.webrtc.fyi |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 919 | "builders": [ |
| 920 | "WebRTC Chromium FYI Android Builder (dbg)", |
| 921 | "WebRTC Chromium FYI Android Builder ARM64 (dbg)", |
| 922 | "WebRTC Chromium FYI Android Builder", |
Mirko Bonadei | 04fe32f | 2020-05-01 00:45:58 +0200 | [diff] [blame] | 923 | "WebRTC Chromium FYI Android Tests (dbg) (L Nexus5)", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 924 | "WebRTC Chromium FYI Android Tests (dbg) (M Nexus5X)", |
| 925 | "WebRTC Chromium FYI Linux Builder (dbg)", |
| 926 | "WebRTC Chromium FYI Linux Builder", |
| 927 | "WebRTC Chromium FYI Linux Tester", |
| 928 | "WebRTC Chromium FYI Mac Builder (dbg)", |
| 929 | "WebRTC Chromium FYI Mac Builder", |
| 930 | "WebRTC Chromium FYI Mac Tester", |
| 931 | "WebRTC Chromium FYI Win Builder (dbg)", |
Andrey Logvin | 7228ba1 | 2021-09-15 17:59:21 +0000 | [diff] [blame] | 932 | "WebRTC Chromium FYI Win Builder", |
Andrey Logvin | 7484d1b8 | 2021-09-15 17:32:39 +0000 | [diff] [blame] | 933 | "WebRTC Chromium FYI Win10 Tester", |
| 934 | "WebRTC Chromium FYI Win7 Tester", |
| 935 | "WebRTC Chromium FYI Win8 Tester", |
Mirko Bonadei | 2f05cfe | 2020-11-25 10:41:58 +0100 | [diff] [blame] | 936 | "WebRTC Chromium FYI ios-device", |
Björn Terelius | c20ed6b | 2021-06-21 14:31:35 +0200 | [diff] [blame] | 937 | "WebRTC Chromium FYI ios-simulator", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 938 | ], |
| 939 | }, |
| 940 | }, |
| 941 | } |
| 942 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 943 | cron_builder( |
| 944 | "WebRTC lkgr finder", |
| 945 | recipe = "lkgr_finder", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 946 | properties = { |
| 947 | "project": "webrtc", |
| 948 | "repo": WEBRTC_GIT, |
| 949 | "ref": "refs/heads/lkgr", |
Christoffer Jansson | e9fcc7b | 2021-06-29 13:02:15 +0200 | [diff] [blame] | 950 | "src_ref": "refs/heads/main", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 951 | "lkgr_status_gs_path": "chromium-webrtc/lkgr-status", |
| 952 | "config": lkgr_config, |
| 953 | }, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 954 | schedule = "*/10 * * * *", # Every 10 minutes. |
| 955 | ) |