Skip to content

Support JDK-24 builds on Jenkins #5426

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

Merged
merged 1 commit into from
Apr 24, 2025
Merged

Conversation

reta
Copy link
Contributor

@reta reta commented Mar 26, 2025

Description

Support JDK-24 builds on Jenkins

Issues Resolved

Part of opensearch-project/OpenSearch#17661

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@peterzhuamazon
Copy link
Member

Hi @reta are we in plans to build with jdk24 but still bundle jdk21?

cc: @getsaurabh02 @prudhvigodithi @rishabh6788

Thanks.

@@ -84,7 +84,7 @@ regedit /s $zlibRegFilePath
# Temurin jdk does not have all the versions supported on scoop, especially version 14, 20, and above
# As of now we will mix temurin and openjdk as temurin for production has support policies for fixes and patches
# We need to make sure we do not mis-install temurin and openjdk with the same version or the distribution build code will have issues
$jdkVersionList = "temurin8-jdk JAVA8_HOME", "temurin11-jdk JAVA11_HOME", "openjdk14 JAVA14_HOME", "temurin17-jdk JAVA17_HOME", "temurin19-jdk JAVA19_HOME", "openjdk20 JAVA20_HOME", "temurin21-jdk JAVA21_HOME", "temurin23-jdk JAVA23_HOME"
$jdkVersionList = "temurin8-jdk JAVA8_HOME", "temurin11-jdk JAVA11_HOME", "openjdk14 JAVA14_HOME", "temurin17-jdk JAVA17_HOME", "temurin19-jdk JAVA19_HOME", "openjdk20 JAVA20_HOME", "temurin21-jdk JAVA21_HOME", "temurin23-jdk JAVA23_HOME", "temurin24-jdk JAVA24_HOME"
Copy link
Member

Choose a reason for hiding this comment

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

Would need to hold this for a bit as temurin-24 is not available now:
https://scoop.sh/#/apps?q=temurin-24

@peterzhuamazon peterzhuamazon marked this pull request as draft March 26, 2025 02:14
@peterzhuamazon
Copy link
Member

Move to draft for the time being until windows has temurin-24.

Thanks.

@reta
Copy link
Contributor Author

reta commented Mar 26, 2025

Hi @reta are we in plans to build with jdk24 but still bundle jdk21?

cc: @getsaurabh02 @prudhvigodithi @rishabh6788

Thanks.

Thanks @peterzhuamazon , so the first step is to add JDK-24 to CI, so we could at least have an option to run the check. The work we are doing on Security Manager replacement would let us run on JDK-24 and above (if we pull it off in time for release)

@reta
Copy link
Contributor Author

reta commented Apr 15, 2025

@peterzhuamazon we should be good to go, right?

@reta reta marked this pull request as ready for review April 15, 2025 00:12
@peterzhuamazon
Copy link
Member

peterzhuamazon commented Apr 15, 2025

See it now: https://scoop.sh/#/apps?q=temurin24&p=1

May I suggest starting this once beta1 is out (pending next Tuesday)?

Also note that we are still building with jdk21. Are we planning to bundle jdk21 while build with jdk24 for GA? Thanks.

@reta
Copy link
Contributor Author

reta commented Apr 15, 2025

May I suggest starting this once beta1 is out (pending next Tuesday)?

Sure, we won't be updating core to JDK-24 before that :)

Also note that we are still building with jdk21. Are we planning to bundle jdk21 while build with jdk24 for GA? Thanks.

I am not sure we will bundle with JDK-24, unless there would be compelling reasons, we usually always bundle with LTSes

@peterzhuamazon
Copy link
Member

May I suggest starting this once beta1 is out (pending next Tuesday)?

Sure, we won't be updating core to JDK-24 before that :)

Also note that we are still building with jdk21. Are we planning to bundle jdk21 while build with jdk24 for GA? Thanks.

I am not sure we will bundle with JDK-24, unless there would be compelling reasons, we usually always bundle with LTSes

Yeah I agree with bundling JDK21, just wondering do we need to also build 3.0.0 GA with JDK24. Thanks.

@reta
Copy link
Contributor Author

reta commented Apr 15, 2025

Yeah I agree with bundling JDK21, just wondering do we need to also build 3.0.0 GA with JDK24. Thanks.

Yeah, we have to be sure it could run on JDK-24 (but no need to bundle)

@peterzhuamazon
Copy link
Member

Yeah I agree with bundling JDK21, just wondering do we need to also build 3.0.0 GA with JDK24. Thanks.

Yeah, we have to be sure it could run on JDK-24 (but no need to bundle)

I will put up a note and check it back next Wednesday.

@peterzhuamazon peterzhuamazon merged commit d81e61e into opensearch-project:main Apr 24, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In Review to ✅ Done in Engineering Effectiveness Board Apr 24, 2025
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (c3b60a1) to head (dd09903).
Report is 5 commits behind head on main.

❌ Your project status has failed because the head coverage (0.00%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #5426   +/-   ##
============================
============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@peterzhuamazon
Copy link
Member

We also need a PR to opensearch-ci, but due to we are currently migrating things.
Need to confirm with team on how to process. I will build the new images in the meanwhile.

Thanks.

@peterzhuamazon
Copy link
Member

Just confirmed that we can just push to opensearch-ci.

@peterzhuamazon
Copy link
Member

Note that windows update mistakenly in servercore again 😅

Thanks.

@peterzhuamazon
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants