Skip to content

The latest 11.x JDK does not appear to be used on helix #57476

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

Open
halter73 opened this issue Aug 23, 2024 · 5 comments
Open

The latest 11.x JDK does not appear to be used on helix #57476

halter73 opened this issue Aug 23, 2024 · 5 comments
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Comments

@halter73
Copy link
Member

#56210 and #56211 both intended to update our repo to use the latest 11.x JDK, but those changes do not appear to affect our helix runs. I'm guessing we want to use the same JDK everywhere.

<HelixPreCommand Condition="'$(IsWindowsHelixQueue)' == 'true'" Include="call RunPowershell.cmd InstallJdk.ps1 11.0.3 %25HELIX_CORRELATION_PAYLOAD%25\jdk &amp;&amp; set %22JAVA_HOME=%25HELIX_CORRELATION_PAYLOAD%25\jdk%22" />
<HelixPreCommand Condition="'$(IsWindowsHelixQueue)' != 'true' AND '$(IsMacHelixQueue)' != 'true'" Include="./installjdk.sh 10.0.2 x64 &amp;&amp; if [ &quot;%24JAVA_HOME&quot; = &quot;&quot; ]%3B then export JAVA_HOME=%24PWD/java%3B fi" />

I do not think our InstallJdk.ps1 or installjdk.sh scripts support leaving the minor version and patch unspecified. If you try, you get 404 responses from https://netcorenativeassets.blob.core.windows.net.

This can also hinder local development, because unlike in release/8.0, .\eng\scripts\InstallJdk.ps1 fails in main and release/9.0 unless a version with a patch is explicitly specified, since it only reads JDK version "11" in global.json. It's unclear what JDK versions are available. 11.0.3 appears to exist for Windows, but not 11.0.23, and it doesn't appear to be possible to anonymously list available versions.

@wtgodbe @BrennanConroy

@halter73 halter73 added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Aug 23, 2024
@wtgodbe
Copy link
Member

wtgodbe commented Aug 26, 2024

global.json can read msbuild properties, so maybe we could move it out to Versions.props & update it manually every 6 months or so? e.g.

"$(MicrosoftNETCoreBrowserDebugHostTransportVersion)"

We could then have the .ps1/.sh files read it from Versions.props as well

@wtgodbe
Copy link
Member

wtgodbe commented Sep 3, 2024

@halter73 @BrennanConroy what do you think the priority on this one is?

@halter73
Copy link
Member Author

halter73 commented Sep 7, 2024

It's not a huge problem for me personally, but I figure it should have similar priority to other component governance issues. It just looks like component governance hasn't caught this since the version isn't specified in a conventional place.

It'd be nice if we could move the version to a place where component governance can track it as part of the fix.

@wtgodbe
Copy link
Member

wtgodbe commented Sep 10, 2024

Since it's only relevant for Helix, I'd dismiss this if it was a CG alert, because it's test-only. I think it moreso has value as a means of making sure we test with the same stuff we build with. I'll move it to 10 planning

@wtgodbe wtgodbe added this to the .NET 10 Planning milestone Sep 10, 2024
@adityamandaleeka
Copy link
Member

In addition to unifying how we get the JDK, it would be good to get onto a more current version. 21 is the latest LTS and it looks like we use 11 or 10 depending on what job we're running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

No branches or pull requests

3 participants