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

Add test coverage for JDK 17 #3718

Merged
merged 8 commits into from
Jan 28, 2023
Merged

Conversation

marcphilipp
Copy link
Contributor

Since we'd like to use H2 on JDK 17, it would be great if it would be officially tested on it. Thus, this PR adds another CI build for JDK 17 (in addition to the ones for JDK 8 and 11). In order to work with JDK 17 bytecode, the test dependency on ASM was updated to 9.4. Since the Nashorn Javascript engine was removed in JDK 15, it's added as another test dependency when the build is running on 15 or later.

Copy link
Contributor

@katzyn katzyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

Comment on lines 1152 to 1156
String version = System.getProperty("java.specification.version");
if (version.startsWith("1.")) {
version = version.substring(2);
}
return Integer.parseInt(version) >= 15; // Nashorn was removed in Java 15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use getJavaVersion() here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I didn't see that! Done in 687cc0f.

@katzyn
Copy link
Contributor

katzyn commented Jan 28, 2023

Builds on Java 11 and Java 17 were cancelled after failure on Java 8. Did it happen due to changes in CI.yml? Previously a failure in one configuration didn't affect other configurations and we want to preserve that behavior, because some tests aren't fully stable and may fail from time to time.

@katzyn
Copy link
Contributor

katzyn commented Jan 28, 2023

Please, add fail-fast: false under strategy:.

@marcphilipp
Copy link
Contributor Author

Please, add fail-fast: false under strategy:.

Done in 1b2d113.

@katzyn katzyn merged commit 8835170 into h2database:master Jan 28, 2023
@marcphilipp marcphilipp deleted the jdk-17-ci-build branch January 28, 2023 13:02
@katzyn katzyn mentioned this pull request Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants