From 469b5aaba8d4a7472d61acd53ee7fa087108c8e1 Mon Sep 17 00:00:00 2001 From: Jeremy Leconte Date: Tue, 18 Feb 2025 20:13:43 +0100 Subject: [PATCH] Add build constraints to allow bots to be triggered with led. Change-Id: I46f1e2e89ff7376b13f4e54679e64e5152c6f71f Bug: None Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/377620 Reviewed-by: Mirko Bonadei Commit-Queue: Jeremy Leconte Cr-Commit-Position: refs/heads/main@{#43927} --- infra/config/config.star | 8 ++++++++ infra/config/cr-buildbucket.cfg | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/infra/config/config.star b/infra/config/config.star index ad626d61a1..4f47256b06 100755 --- a/infra/config/config.star +++ b/infra/config/config.star @@ -291,6 +291,10 @@ luci.bucket( "project-webrtc-ci-schedulers", ]), ], + constraints = luci.bucket_constraints( + pools = ["luci.webrtc.ci"], + service_accounts = ["webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com"], + ), ) luci.bucket( @@ -304,6 +308,10 @@ luci.bucket( "service-account-chromeperf", ]), ], + constraints = luci.bucket_constraints( + pools = ["luci.webrtc.perf"], + service_accounts = ["webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com"], + ), ) luci.bucket( diff --git a/infra/config/cr-buildbucket.cfg b/infra/config/cr-buildbucket.cfg index 5264a78cbb..6e20161eb1 100644 --- a/infra/config/cr-buildbucket.cfg +++ b/infra/config/cr-buildbucket.cfg @@ -1774,6 +1774,10 @@ buckets { } } } + constraints { + pools: "luci.webrtc.ci" + service_accounts: "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com" + } } buckets { name: "cron" @@ -2639,6 +2643,10 @@ buckets { } } } + constraints { + pools: "luci.webrtc.perf" + service_accounts: "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com" + } } buckets { name: "try"