Skip to content

Commit a9567ba

Browse files
committed
svm/ci: validate tiers
1 parent 782b28c commit a9567ba

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

substratevm/ci/ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,6 @@
145145
},
146146
// END MAIN BUILD DEFINITION
147147
processed_builds::run_spec.process(task_dict),
148-
builds: util.add_defined_in([util.add_gate_predicate(b, gate_triggering_suites) for b in self.processed_builds.list], std.thisFile),
148+
builds: util.add_defined_in([util.add_gate_predicate(sg.validate_tiers(b), gate_triggering_suites) for b in self.processed_builds.list], std.thisFile),
149149
assert tools.check_names($.builds),
150150
}

substratevm/ci/ci_common/svm-gate.libsonnet

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,9 @@
152152
JAVA_HOME_RISCV : {name : "labsjdk", version : b.downloads.JAVA_HOME.version + "-linux-riscv64" }
153153
},
154154
})),
155+
156+
validate_tiers(b)::
157+
assert b.target != "gate": "Must not add new `gate` jobs.\nPlease change the target of the job '%s' to `tier1`, `tier2`, `tier3` or make it a post-merge or periodic job" % [b.name] ;
158+
b
159+
,
155160
}

0 commit comments

Comments
 (0)