@@ -218,20 +218,20 @@ local part_definitions = {
218
218
jdk: {
219
219
local with_path = { environment+: { path+:: ["$JAVA_HOME/bin" ] } },
220
220
221
- v17: with_path + common.jdks["labsjdk-ce-17" ] + {
221
+ local v17 = with_path + common.jdks["labsjdk-ce-17" ] + {
222
222
environment+: {
223
223
JT_JDK: "17" ,
224
224
},
225
225
},
226
226
227
- v21: with_path + common.jdks["labsjdk-ce-21" ] + {
227
+ local v21 = with_path + common.jdks["labsjdk-ce-21" ] + {
228
228
environment+: {
229
229
JT_JDK: "21" ,
230
230
},
231
231
},
232
232
233
- lts: self . v17,
234
- new: self . v21,
233
+ lts: v17 + { jdk_label:: 'lts' } ,
234
+ new: v21 + { jdk_label:: 'new' } ,
235
235
},
236
236
237
237
platform: {
@@ -707,18 +707,26 @@ local composition_environment = utils.add_inclusion_tracking(part_definitions, "
707
707
708
708
builds:
709
709
local all_builds = $.test_builds + $.bench_builds + $.manual_builds;
710
+ local filtered_builds = if $.jdk.lts.jdk_version == $.jdk.new.jdk_version then
711
+ {
712
+ [k]: all_builds[k]
713
+ for k in std.objectFields (all_builds)
714
+ if !std.objectHasAll (all_builds[k], "jdk_label" ) || all_builds[k].jdk_label == $.jdk.lts.jdk_label
715
+ }
716
+ else
717
+ all_builds;
710
718
utils.check_builds(
711
719
restrict_builds_to,
712
720
# Move name inside into `name` field
713
721
# and ensure timelimit is present
714
722
[
715
- all_builds [k] {
723
+ filtered_builds [k] {
716
724
name: k,
717
- timelimit: if std.objectHas (all_builds [k], "timelimit" )
718
- then all_builds [k].timelimit
725
+ timelimit: if std.objectHas (filtered_builds [k], "timelimit" )
726
+ then filtered_builds [k].timelimit
719
727
else error "Missing timelimit in " + k + " build." ,
720
728
}
721
- for k in std.objectFields (all_builds )
729
+ for k in std.objectFields (filtered_builds )
722
730
]
723
731
),
724
732
};
0 commit comments