summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2024-11-11 18:17:07 +0000
committer David Srbecky <dsrbecky@google.com> 2024-11-11 18:23:19 +0000
commit2aaea4a0da6943f69cd16b8a9970f90413c40376 (patch)
tree6fea2c72fd4e8c97acfe4dd1597f215bb032c043
parentb18b55181f08fb62d07ecf33ebcc687a4191155d (diff)
LUCI: Enable git superproject checkout for QEMU (non-repo)
Long-term isolated test whether this approach works. Unlike repo, this would: - Actually guarantee to checkout the relevant CL rather than ToT - Ensure all builders test the same code - Be able to checkout older CLs for retries or binary search - Avoid any split topic issues Test: trigger build with LUCI led Change-Id: Ie3a490cbfdd5f76834089d26fa64de6e7e31abea
-rw-r--r--tools/luci/config/generated/cr-buildbucket.cfg8
-rwxr-xr-xtools/luci/config/main.star7
2 files changed, 14 insertions, 1 deletions
diff --git a/tools/luci/config/generated/cr-buildbucket.cfg b/tools/luci/config/generated/cr-buildbucket.cfg
index a88c58f056..7ff98559f9 100644
--- a/tools/luci/config/generated/cr-buildbucket.cfg
+++ b/tools/luci/config/generated/cr-buildbucket.cfg
@@ -399,6 +399,10 @@ buckets {
build_numbers: YES
service_account: "art-ci-builder@chops-service-accounts.iam.gserviceaccount.com"
experiments {
+ key: "art.superproject"
+ value: 100
+ }
+ experiments {
key: "luci.recipes.use_python3"
value: 100
}
@@ -432,6 +436,10 @@ buckets {
build_numbers: YES
service_account: "art-ci-builder@chops-service-accounts.iam.gserviceaccount.com"
experiments {
+ key: "art.superproject"
+ value: 100
+ }
+ experiments {
key: "luci.recipes.use_python3"
value: 100
}
diff --git a/tools/luci/config/main.star b/tools/luci/config/main.star
index d142446d8b..a2e4e2afa1 100755
--- a/tools/luci/config/main.star
+++ b/tools/luci/config/main.star
@@ -175,7 +175,8 @@ luci.gitiles_poller(
refs = ["refs/heads/master-art"],
)
-def ci_builder(name, category, short_name, dimensions, properties={}, hidden=False):
+def ci_builder(name, category, short_name, dimensions, properties={},
+ experiments={}, hidden=False):
luci.builder(
name = name,
bucket = "ci",
@@ -210,6 +211,7 @@ def ci_builder(name, category, short_name, dimensions, properties={}, hidden=Fal
"manifest",
"vogar",
],
+ experiments = experiments,
)
if not hidden:
luci.console_view_entry(
@@ -297,11 +299,14 @@ def add_builder(mode,
"testrunner_args": testrunner_args,
}
+ experiments = {"art.superproject": 100} if mode == "qemu" else {}
+
ci_builder(name=name,
category="|".join(category.split("|")[:-1]),
short_name=category.split("|")[-1],
dimensions=dimensions,
properties={k:v for k, v in properties.items() if v},
+ experiments=experiments,
hidden=hidden)
def add_builders():