Skip to content

Conversation

@breskeby
Copy link
Contributor

Backports the following commits to 9.1:

* Introduce dedicated toolchain resolver for EA java versions

* Fix reproducability of builds against Java EA versions

This fixes a reproducability issue when using the gradle javaToolChain api.

There is no way to test toolchain candidates reliable against the build number in use.

This meant that ones you e.g. have resolved some version of java 25, gradle toolchain detection
does not detect the difference between certain builds (or even ea vs. released version)
Therefore we fallback to rely on our custom JDKDownloadPlugin for now here.

Syncing with the gradle team, they want to fix this somewhen in 9.x. We will revisit our solution
ones something is available. Ultimately we want to get rid of usages of the JDK download plugin.

* Minor cleanup and fixing non set distribution type in jdk

* Fix ea jdk selection not just based on major version

explicitly requires to add a ea postfix to the runtime sys property

* Fix test reproduce linies when using java ea version

* Apply review feedback

* Use runtime jdk when patching

* More cleanup
@breskeby breskeby added :Delivery/Build Build or test infrastructure >non-issue labels Aug 15, 2025
@breskeby breskeby requested a review from a team as a code owner August 15, 2025 11:39
@breskeby breskeby added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Delivery Meta label for Delivery team labels Aug 15, 2025
@github-actions
Copy link
Contributor

🔍 Preview links for changed docs:

🔔 The preview site may take up to 3 minutes to finish building. These links will become live once it completes.

@elasticsearchmachine elasticsearchmachine merged commit 3980973 into elastic:9.1 Aug 15, 2025
34 checks passed
@breskeby breskeby deleted the backport/9.1/pr-132847 branch August 15, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v9.1.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants