@@ -20,13 +20,17 @@ local os_arch_jdk_mixin(mapping) = r.task_spec(r.evaluate_late({
20
20
// These should always be used to set/add job targets, otherwise the 'target'
21
21
// key is not set.
22
22
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' ),
24
27
daily: self .target('daily' ),
25
28
weekly: self .target('weekly' ),
26
29
post_merge: self .target('post-merge' ),
27
30
// opt-post-merge jobs should have an associated tag to group the jobs
28
31
opt_post_merge(tag): self .target('opt-post-merge' ) + r.task_spec({ tags+: { opt_post_merge+: [tag] } }),
29
32
33
+ capabilities(capabilities): r.task_spec({ capabilities+: capabilities }),
30
34
31
35
docker_ol8: {
32
36
docker: {
@@ -75,6 +79,17 @@ local os_arch_jdk_mixin(mapping) = r.task_spec(r.evaluate_late({
75
79
evaluate_late: r.evaluate_late,
76
80
exclude: r.exclude,
77
81
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
+
78
93
// Base Task specification
79
94
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 {
80
95
// 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({
94
109
setup+: [
95
110
['cd' , './' + suite],
96
111
],
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]),
98
113
}),
99
114
100
115
// Get all web image flags in the given job
0 commit comments