Skip to content

[GR-67230] Use tiered CI for /substratevm #11625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions substratevm/ci/ci.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
local use_musl_static = sg.use_musl_static,
local use_musl_dynamic = sg.use_musl_dynamic,
local add_quickbuild = sg.add_quickbuild,
local partial = sg.partial,

local use_oraclejdk_latest = task_spec(run_spec.evaluate_late({
"use_oraclejdk_latest": common.oraclejdkLatest + galahad.exclude
Expand Down Expand Up @@ -122,24 +123,24 @@
// START MAIN BUILD DEFINITION
local task_dict = {
"style-fullbuild": mxgate("fullbuild,style,nativeimagehelp,check_libcontainer_annotations,check_libcontainer_namespace") + eclipse + jdt + spotbugs + maven + mx_build_exploded + gdb("14.2") + platform_spec(no_jobs) + platform_spec({
"linux:amd64:jdk-latest": gate + t("30:00"),
"linux:amd64:jdk-latest": tier1 + t("30:00"),
}),
"basics": mxgate("build,helloworld,native_unittests,truffle_unittests,debuginfotest,hellomodule,java_agent,condconfig") + maven + jsonschema + platform_spec(no_jobs) + platform_spec({
"linux:amd64:jdk-latest": gate + gdb("14.2") + t("55:00"),
"windows:amd64:jdk-latest": gate + t("1:30:00"),
"linux:amd64:jdk-latest": tier2 + partial(2) + gdb("14.2") + t("40:00"),
"windows:amd64:jdk-latest": tier3 + t("1:30:00"),
}) + variants({
"optlevel:quickbuild": {
"windows:amd64:jdk-latest": gate + t("1:30:00"),
"windows:amd64:jdk-latest": tier3 + t("1:30:00"),
},
"libc:musl_static": {
"linux:amd64:jdk-latest": gate + gdb("14.2") + t("55:00"),
"linux:amd64:jdk-latest": tier3 + gdb("14.2") + t("55:00"),
},
"java-compiler:ecj": {
"linux:amd64:jdk-latest": gate + gdb("14.2") + t("55:00"),
"linux:amd64:jdk-latest": tier2 + partial(2) + gdb("14.2") + t("40:00"),
},
}),
"oraclejdk-helloworld": mxgate("build,helloworld,hellomodule") + maven + jsonschema + platform_spec(no_jobs) + platform_spec({
"linux:amd64:jdk-latest": gate + use_oraclejdk_latest + t("30:00"),
"linux:amd64:jdk-latest": tier1 + use_oraclejdk_latest + t("30:00"),
}),
},
// END MAIN BUILD DEFINITION
Expand Down
12 changes: 12 additions & 0 deletions substratevm/ci/ci_common/svm-gate.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@
targets: [t],
}),

// Split gate into multiple batches
partial(num):: run_spec.add_multiply(
[
task_spec({
local batch = "%d/%d" % [i, num],
mxgate_batch:: batch,
mxgate_extra_args+: ["--partial=" + batch],
})
for i in std.range(1, num)
]
),

gate:: $.target("gate"),
tier1:: $.target("tier1"),
tier2:: $.target("tier2"),
Expand Down
Loading