Skip to content
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

965: hgupdate-sync mistakenly added to 16.0.2 backport record #1116

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -253,8 +253,12 @@ private static List<String> releaseStreams(JdkVersion jdkVersion) {
if (jdkVersion.update().isPresent()) {
var numericUpdate = Integer.parseInt(jdkVersion.update().get());
if (numericUpdate == 1 || numericUpdate == 2) {
ret.add(jdkVersion.feature() + "+updates-oracle");
ret.add(jdkVersion.feature() + "+updates-openjdk");
if (jdkVersion.opt().isPresent() && jdkVersion.opt().get().equals("oracle") && jdkVersion.components().size() > 4) {
ret.add(jdkVersion.feature() + "+bpr");
} else {
ret.add(jdkVersion.feature() + "+updates-oracle");
ret.add(jdkVersion.feature() + "+updates-openjdk");
}
} else if (numericUpdate > 2) {
if (jdkVersion.opt().isPresent() && jdkVersion.opt().get().equals("oracle")) {
if (jdkVersion.components().size() > 4) {
@@ -769,4 +769,15 @@ void wontFix(TestInfo testInfo) throws IOException {
backports.assertLabeled("15");
}
}

@Test
void testBpr(TestInfo testInfo) throws IOException {
try (var credentials = new HostCredentials(testInfo)) {
var backports = new BackportManager(credentials, "17");
backports.assertLabeled();

backports.addBackports("16.0.2", "16.0.1.0.1-oracle", "11.0.12-oracle", "11.0.11.0.1-oracle", "8u301", "8u291", "8u281");
backports.assertLabeled("8u291", "8u301");
}
}
}