-
-
Notifications
You must be signed in to change notification settings - Fork 255
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 metadata version to java.vendor.version #2544
Conversation
629c4cd
to
9e104cd
Compare
9e104cd
to
807095b
Compare
Dragonwell example:
Adopt nightly:
Adopt release:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked out the artifacts and the code, looks good! 👍
On Slack, Andrew raised the question whether it's okay that we now have OpenJDK Runtime Environment AdoptOpenJDK-16+36 (build 16+36) instead of OpenJDK Runtime Environment AdoptOpenJDK (build 16+36) I think it makes sense and that's what we're supposed to do. Because what's in the brackets is OpenJDK's version and we should add our own which by accident (Narrator: It's not.) is the same as OpenJDK's. That's how it looks in the case of Azul Zulu: OpenJDK Runtime Environment Zulu16.28+11-CA (build 16+36) Let's also have a look at the last time we did a .1: https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/tag/jdk-11.0.9%2B11.1. That's what comes out of it: OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9+11) How on earth should anybody know whether that's the .1 or not? @andrew-m-leonard Would a .1 appear in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe we've ever put the buildNumber (the .1
in your question) anywhere in the binary itself - only the tarball. I would also suggest that unless we change policy and want to put it in there, then the duplication of 16.36` in here seems superficially pointless (To be clear: this comment isn't me saying it should be removed, but as Andreas said if we're making a change to expose it we ought to call out that we're doing tit)
OpenJDK Runtime Environment AdoptOpenJDK-16+36 (build 16+36)
Presumably this is currently matching what the smoke tests are coded to expect?
@sxa I don't believe the SmokeTest code to check this has been written yet... it's waiting for me to merge this so they know what to check.... |
@aahlenst so as @sxa mentioned the .1 is just added to the metadata during tarball creation. However we are setting the "java.vendor.version" sys property... The assumption in the generation of the java -version output is that vendor version is different to the runtime version:
|
It was. That's how we found the problem (if it's one). The test can be changed. However, reading:
If we don't want to have a vendor version, why not leave it empty, then, and change |
@aahlenst ah, I couldn't find any test? could you point me at it please? would help me solve the problem |
807095b
to
041c33c
Compare
Signed-off-by: Andrew Leonard <[email protected]>
@andrew-m-leonard I'm guessing he's referring to the stuff at https://github.com/AdoptOpenJDK/openjdk-build/tree/master/test/functional/buildAndPackage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Update jdk11+ java.vendor.version for Adopt binaries to be:
AdoptOpenJDK-<metadata version>
Signed-off-by: Andrew Leonard [email protected]