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 new java-quarkus devfile version with java 21 as default #370
Conversation
Hi @vinokurig. Thanks for your PR. I'm waiting for a devfile member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
7bed6cc
to
feaed1a
Compare
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.
Does this work locally in odov3
? I'm unsure if the failure is related to our CI or the stack itself.
https://github.com/devfile/registry/actions/runs/8782390440/job/24096589141?pr=370#step:10:24997
cc @thepetk might be related to a combination of both because java stacks have given us issues in the past.
@Jdubrick Could be a result of what I've provided feedback on: #370 (comment) FYI @vinokurig |
/retest |
@Jdubrick locally it works for me by downloading the .zip file extract it and then run the devfile inside. Is strange that it doesn't work if I directly do:
Error:
|
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.
@vinokurig Suggestion commits need amending to include the sign-off footer to pass DCO.
820df95
to
cb0b853
Compare
This PR will close devfile/api#1542 |
@michael-valdron @Jdubrick Looks like all comments have been addressed, could you please take a look? |
/ok-to-test |
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.
Running odo dev
gives the following error:
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.10.0:dev (default-cli) on project code-with-quarkus: Detected Maven Version (3.8.5) is not supported, it must be in [3.8.6,). -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
This is related to devfile/api#1541 as applying this suggested fix solves the build error.
New changes work for me locally by doing it this way, I'm curious if it is possible to not use the |
@Jdubrick We need to use |
Could you please elaborate more on how to fix the build? I tried to use the |
76c50cd
to
86dc5bf
Compare
Signed-off-by: ivinokur <ivinokur@redhat.com>
86dc5bf
to
b0addd4
Compare
Also aligned with #399 |
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.
New changes are working for me with odov3
for both starter projects. After downloading the zip files and adding the devfile to them I can run odo
commands and they are successful.
@michael-valdron can you please review this and merge, as this would be needed for IDE extensions using devfiles. |
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.
With the #399 changes, changes here looks good to me.
Need a sign off from stack owner.
cc @maxandersen
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
If you've tested this working I'm fine merging but why is it the force move to 21 is required for ide ext release ? Is the fixes for java 17 not sufficient? |
@maxandersen It seems the projects being generated by code.quarkus.io use Java 21 by default. When trying out vscode-openshift, Don Schenck ran into this; the project he was working with used Java 21, and the suggested Devfile used Java 17. |
Yes but code.quarkus.redhat.com will use java 17. Anyhow - seems no way for dev file to handle these differences well thus Ill +1 and if any reports of product issues we'll have to tell users to manually update the image. |
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.
+1; knowing devfile will fail for red hat products defaults but do work for latest greatest Quarkus community default.
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
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Jdubrick, maxandersen, michael-valdron, svor, vinokurig The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What does this PR do?:
Add new java-quarkus devfile version:
registry.access.redhat.com/ubi8/openjdk-21:1.19-1
as a container image.j=21
query parameter to download the sample project configured to java 21.Which issue(s) this PR fixes:
Link to github issue(s)
fixes devfile/api#1542
PR acceptance criteria:
Have you read the devfile registry contributing guide and followed its instructions?
Does this repository's tests pass with your changes?
Does any documentation need to be updated with your changes?
Have you tested the changes with existing tools, i.e. Odo, Che, Console? (See devfile registry contributing guide on how to test changes)
How to test changes / Special notes to the reviewer: