From e01109dd9bddb8809d03dd38da1fdea539a8f244 Mon Sep 17 00:00:00 2001 From: Jeremy Leconte Date: Wed, 18 Dec 2024 20:44:18 +0100 Subject: [PATCH] Add constraints to the luci buckets. Goal is to be able to run led jobs, current error is: constraints for libyuv:try not found Bug: b/384862261 Change-Id: Ia88f2de7a4068baf151f94ea8cf708983939d11a Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/6105837 Commit-Queue: Jeremy Leconte Reviewed-by: Mirko Bonadei --- infra/config/cr-buildbucket.cfg | 7 +++++++ infra/config/main.star | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/infra/config/cr-buildbucket.cfg b/infra/config/cr-buildbucket.cfg index 8d67803df..c2e6177c7 100644 --- a/infra/config/cr-buildbucket.cfg +++ b/infra/config/cr-buildbucket.cfg @@ -904,6 +904,9 @@ buckets { } } } + constraints { + pools: "luci.flex.ci" + } } buckets { name: "cron" @@ -1701,4 +1704,8 @@ buckets { } } } + constraints { + pools: "luci.flex.try" + service_accounts: "libyuv-try-builder@chops-service-accounts.iam.gserviceaccount.com" + } } diff --git a/infra/config/main.star b/infra/config/main.star index 91c67cc7a..8dcc8d9f0 100755 --- a/infra/config/main.star +++ b/infra/config/main.star @@ -175,6 +175,9 @@ luci.cq_group( luci.bucket( name = "ci", + constraints = luci.bucket_constraints( + pools = ["luci.flex.ci"], + ), ) luci.bucket( name = "try", @@ -184,6 +187,12 @@ luci.bucket( "service-account-cq", ]), ], + constraints = luci.bucket_constraints( + pools = ["luci.flex.try"], + service_accounts = [ + "libyuv-try-builder@chops-service-accounts.iam.gserviceaccount.com", + ], + ), ) luci.bucket( name = "cron",