Skip to content

Commit 114921e

Browse files
committed
[GR-65236] Move Web Image jobs to tiers
PullRequest: graal/21543
2 parents 3566e04 + 96a997a commit 114921e

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

ci.jsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ local libgraal(builds, include=true) = [b for b in builds if (std.findSubstr("li
5555
tier1: "gate",
5656
tier2: "gate",
5757
tier3: "gate",
58+
tier4: "post-merge",
5859
},
5960
builds: [common.add_excludes_guard(common.with_style_component(b)) for b in (
6061
common.with_components(compiler.builds + libgraal(vm.builds), ["compiler"]) +

web-image/ci/ci.jsonnet

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@ local mxgate(tags) = r.mxgate(tags, suite='web-image');
88
local platforms = r.platforms;
99
local t = r.t;
1010

11-
local gate = r.gate;
11+
local tier1 = r.tier1;
12+
local tier2 = r.tier2;
1213
local weekly = r.weekly;
1314

1415
{
1516
// THE TASK CONFIGURATION
1617
task_dict:: {
18+
// TODO GR-67831 Split into separate style and fullbuild jobs
1719
'style-fullbuild': mxgate('style,fullbuild,webimagehelp,webimageoptions') + t('30:00') + r.eclipse + r.jdt + r.spotbugs + r.prettier + platforms({
18-
'linux:amd64:jdk-latest': gate,
20+
'linux:amd64:jdk-latest': tier1,
1921
}),
2022
'unittest': mxgate('webimagebuild,webimageunittest') + t('30:00') + r.node22 + platforms({
21-
'linux:amd64:jdk-latest': gate,
23+
'linux:amd64:jdk-latest': tier2,
2224
}),
2325
},
2426
processed_tasks:: r.process(self.task_dict),

web-image/ci/ci_common/wi-run-spec.jsonnet

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ local os_arch_jdk_mixin(mapping) = r.task_spec(r.evaluate_late({
2020
// These should always be used to set/add job targets, otherwise the 'target'
2121
// key is not set.
2222
target(t): r.task_spec({ target: t, targets+: [t] }),
23-
gate: self.target('gate'),
23+
tier1: self.target('tier1'),
24+
tier2: self.target('tier2'),
25+
tier3: self.target('tier3'),
26+
tier4: self.target('tier4'),
2427
daily: self.target('daily'),
2528
weekly: self.target('weekly'),
2629
post_merge: self.target('post-merge'),
2730
// opt-post-merge jobs should have an associated tag to group the jobs
2831
opt_post_merge(tag): self.target('opt-post-merge') + r.task_spec({ tags+: { opt_post_merge+: [tag] } }),
2932

33+
capabilities(capabilities): r.task_spec({ capabilities+: capabilities }),
3034

3135
docker_ol8: {
3236
docker: {
@@ -75,6 +79,17 @@ local os_arch_jdk_mixin(mapping) = r.task_spec(r.evaluate_late({
7579
evaluate_late: r.evaluate_late,
7680
exclude: r.exclude,
7781

82+
// Tiered jobs should be treated as gate jobs. Moving a job to the tier system
83+
// or moving it between tiers should not affect anything else about the job
84+
// definition
85+
is_gate_target(target): target == 'gate' || std.startsWith(target, 'tier'),
86+
87+
target_to_prefix(target):
88+
if $.is_gate_target(target) then
89+
'gate'
90+
else
91+
target,
92+
7893
// Base Task specification
7994
job(suite, suite_short=suite, os_arch_mapping=$.default_os_arch): os_arch_jdk_mixin(os_arch_mapping) + r.task_spec(common.catch_test_failures + common.svm {
8095
// These 4 are provided by the run-spec library
@@ -94,7 +109,7 @@ local os_arch_jdk_mixin(mapping) = r.task_spec(r.evaluate_late({
94109
setup+: [
95110
['cd', './' + suite],
96111
],
97-
name: std.join('-', [self.target, self.suite_short, self.task_name] + self.variations + [self.os, self.arch, self.jdk]),
112+
name: std.join('-', [$.target_to_prefix(self.target), self.suite_short, self.task_name] + self.variations + [self.os, self.arch, self.jdk]),
98113
}),
99114

100115
// Get all web image flags in the given job

0 commit comments

Comments
 (0)