Update presubmit bot to include the list of testers
Change-Id: I264d744d8949e6419ff4add2e5b045ca9814be52
diff --git a/infra/config/global/generated/cr-buildbucket.cfg b/infra/config/global/generated/cr-buildbucket.cfg
index 6975896..69927c9 100644
--- a/infra/config/global/generated/cr-buildbucket.cfg
+++ b/infra/config/global/generated/cr-buildbucket.cfg
@@ -2395,6 +2395,29 @@
' "--no_internal",'
' "--one_line_per_test",'
' "--archive_failures"'
+ ' ],'
+ ' "testers": ['
+ ' "linux-default",'
+ ' "linux-none",'
+ ' "linux-jdk8",'
+ ' "linux-jdk11",'
+ ' "linux-jdk17",'
+ ' "linux-jdk21",'
+ ' "linux-jdk25",'
+ ' "linux-android-4.0",'
+ ' "linux-android-4.4",'
+ ' "linux-android-5",'
+ ' "linux-android-6",'
+ ' "linux-android-7",'
+ ' "linux-android-8",'
+ ' "linux-android-9",'
+ ' "linux-android-10",'
+ ' "linux-android-12",'
+ ' "linux-android-13",'
+ ' "linux-android-14",'
+ ' "linux-android-15",'
+ ' "linux-android-16",'
+ ' "win"'
' ]'
'}'
priority: 26
diff --git a/infra/config/global/main.star b/infra/config/global/main.star
index 813edd8..e09cde9 100755
--- a/infra/config/global/main.star
+++ b/infra/config/global/main.star
@@ -298,9 +298,15 @@
expiration_timeout = time.hour * 35,
max_concurrent_invocations = 1,
category = None,
- release_trigger = None):
+ release_trigger = None,
+ extra_properties = {}):
dimensions = dimensions if dimensions else get_dimensions()
names = [name, name + "_release"] if trigger else [name]
+ properties = {
+ "test_options": test_options,
+ "builder_group": "internal.client.r8",
+ }
+ properties.update(extra_properties)
for name in names:
r8_builder(
name = name,
@@ -312,10 +318,7 @@
dimensions = dimensions,
release_trigger = release_trigger,
max_concurrent_invocations = max_concurrent_invocations,
- properties = {
- "test_options": test_options,
- "builder_group": "internal.client.r8",
- },
+ properties = properties,
)
def r8_tester_with_default(
@@ -327,7 +330,8 @@
category = None,
release_trigger = None,
max_concurrent_invocations = 1,
- execution_timeout = default_timeout):
+ execution_timeout = default_timeout,
+ extra_properties = {}):
r8_tester(
name,
test_options + common_test_options,
@@ -338,6 +342,7 @@
release_trigger = release_trigger,
max_concurrent_invocations = max_concurrent_invocations,
execution_timeout = execution_timeout,
+ extra_properties = extra_properties,
)
def archivers():
@@ -470,11 +475,38 @@
max_concurrent_invocations = 2,
)
+presubmit_testers = [
+ "linux-default",
+ "linux-none",
+ "linux-jdk8",
+ "linux-jdk11",
+ "linux-jdk17",
+ "linux-jdk21",
+ "linux-jdk25",
+ "linux-android-4.0",
+ "linux-android-4.4",
+ "linux-android-5",
+ "linux-android-6",
+ "linux-android-7",
+ "linux-android-8",
+ "linux-android-9",
+ "linux-android-10",
+ "linux-android-12",
+ "linux-android-13",
+ "linux-android-14",
+ "linux-android-15",
+ "linux-android-16",
+ "win",
+]
+
r8_tester_with_default(
"presubmit",
[],
bucket = "try",
trigger = False,
+ extra_properties = {
+ "testers": presubmit_testers,
+ },
)
luci.cq_tryjob_verifier(