[release/10.0.1xx] [build] Recommend latest supported JDK in workload metadata - #12543
Merged
jonathanpeppers merged 1 commit intoAug 28, 2026
Merged
Conversation
## Summary - select `jdk.recommendedVersion` from the newest non-preview, non-obsolete JDK in the Android installer feed within the workload's supported JDK range - carry the normalized `Version` used for revision ordering into range filtering while preserving the original feed revision string for output - continue accepting single-component feed revisions such as `revision="21"` - preserve the existing compatibility range while allowing installer feed refreshes to advance the recommended Microsoft OpenJDK release For the current stable inputs, this changes `recommendedVersion` from `17.0.14` to `21.0.9` while leaving `version` at `[17.0,22.0)`. This prevents setup tools that honor `recommendedVersion` from proposing JDK 17 when JDK 21 is supported and preferred. ## Testing - `dotnet build tools/workload-dependencies/workload-dependencies.csproj -p:DotNetStableTargetFramework=net10.0 -p:MonoOptionsVersion=6.12.0.148 -p:NewtonsoftJsonPackageVersion=13.0.3 --no-restore --nologo` - generated stable workload metadata with `JavaSdkVersion=17.0.14` and `LatestSupportedJavaVersion=21.0.99`; verified `version: "[17.0,22.0)"` and `recommendedVersion: "21.0.9"` - ran `GenerateWorkloadDependencies` through `tools/workload-dependencies/WorkloadDependencies.proj`; verified packaged `data/WorkloadDependencies.json` contains the expected JDK metadata - generated with a JDK 17 maximum and verified the range filter retains `recommendedVersion: "17.0.14"` Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
github-actions
Bot
requested review from
jonathanpeppers and
simonrozsival
as code owners
August 27, 2026 18:44
Member
|
/azp run |
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. |
jonathanpeppers
approved these changes
Aug 28, 2026
jonathanpeppers
left a comment
Member
There was a problem hiding this comment.
I reran some of the test lanes, to see if it would be slightly greener.
Member
|
Checked the build artifacts from Azure DevOps build 15122095. The generated and packaged WorkloadDependencies.json now contains jdk.version: [17.0,22.0) and jdk.recommendedVersion: 21.0.6. This looks fixed for the release branch's feed inputs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #12500 to release/10.0.1xx
/cc @jonathanpeppers @Redth