Skip to content
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

[java-springboot] Use LTS JDK 17 image #169

Merged
merged 3 commits into from
Oct 20, 2023

Conversation

rm3l
Copy link
Member

@rm3l rm3l commented Mar 17, 2023

What does this PR do?:

This updates the container image to registry.access.redhat.com/ubi9/openjdk-17, to keep up with the latest JDK LTS, security-wise.
Also JDK 17 is now a requirement for recent versions of Spring Boot.

Which issue(s) this PR fixes:

PR acceptance criteria:

  • Contributing guide
    Have you read the devfile registry contributing guide and followed its instructions?
  • Test automation
    Does this repository's tests pass with your changes?
  • Documentation
    Does any documentation need to be updated with your changes?
  • Check Tools Provider
    Have you tested the changes with existing tools, i.e. Odo, Che, Console? (See devfile registry contributing guide on how to test changes)
    Tested with odo.

How to test changes / Special notes to the reviewer:

@openshift-ci
Copy link

openshift-ci bot commented Mar 17, 2023

Hi @rm3l. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@rm3l rm3l changed the title [java-springboot] Use registry.access.redhat.com/ubi9/openjdk-17 image [java-springboot] Use LTS JDK 17 image Mar 17, 2023
@rm3l rm3l force-pushed the java-springboot_bump_jdk_to_17 branch from fa02b90 to 6033b16 Compare March 29, 2023 20:10
@christoph-jerolimov
Copy link
Member

/uncc

@openshift-ci openshift-ci bot removed the request for review from christoph-jerolimov March 31, 2023 09:15
@kadel
Copy link
Member

kadel commented Mar 31, 2023

Now that we have multi-version support, it might be better to keep the old versions (1.2.0 and 2.0.0) there

@kadel kadel mentioned this pull request Mar 31, 2023
4 tasks
@rm3l rm3l force-pushed the java-springboot_bump_jdk_to_17 branch from 6033b16 to 9f4fd9a Compare April 6, 2023 21:34
@rm3l
Copy link
Member Author

rm3l commented Apr 6, 2023

Now that we have multi-version support, it might be better to keep the old versions (1.2.0 and 2.0.0) there

Done. I hesitated to do so in the beginning mainly because of the maintenance overhead, but yes, it makes sense to keep the old versions. The default version of the stack still points to the old 1.2.0, but let me know if you think this should be changed.

@kadel
Copy link
Member

kadel commented Apr 12, 2023

The default version of the stack still points to the old 1.2.0, but let me know if you think this should be changed.

I would change it, but this is also a question or @elsony

@kim-tsao
Copy link
Collaborator

kim-tsao commented May 3, 2023

/ok-to-test

@kim-tsao
Copy link
Collaborator

kim-tsao commented May 17, 2023

The default version of the stack still points to the old 1.2.0, but let me know if you think this should be changed.

I would change it, but this is also a question or @elsony

I raised this in a meeting and we agreed we need to update our samples to work with parent v2.2 versions (currently they don't so if we change the default they will break). This is the tracking issue: devfile/api#1112

@mohitsuman
Copy link

@elsony @kim-tsao can we please get this PR merged? We have customers whose workflow is broken due to the older JDK version. We would need this on priority.

@openshift-ci openshift-ci bot added lgtm Looks good to me approved labels Oct 17, 2023
@rm3l
Copy link
Member Author

rm3l commented Oct 17, 2023

The default version of the stack still points to the old 1.2.0, but let me know if you think this should be changed.

I would change it, but this is also a question or @elsony

I raised this in a meeting and we agreed we need to update our samples to work with parent v2.2 versions (currently they don't so if we change the default they will break). This is the tracking issue: devfile/api#1112

@kim-tsao @elsony @kadel devfile/api#1112 is mostly about parent Devfiles using v2.2.0 schema. But this PR is mostly about updating the container image.
I think we can update the default to 1.3.0 here (still using Devfile 2.1.0, but with JDK 17), so we are not blocked on devfile/api#1112. And once devfile/api#1112 is merged, we would be able to switch the default to a version using Devfile 2.2.0 (maybe as part of devfile/api#1129). WDYT?

@thepetk
Copy link
Contributor

thepetk commented Oct 17, 2023

so we are not blocked on devfile/api#1112

@rm3l

I'm not sure I have the full context for the usage of multiple sample versions for this case.

But, fyi after the implementation of devfile/api#1209 we are able to have multiple versions of samples and add them to extraDevFileEntries.yaml. For this specific stack we have already an opened PR on the springboot sample here: devfile-samples/devfile-sample-java-springboot-basic#33

@rm3l
Copy link
Member Author

rm3l commented Oct 18, 2023

so we are not blocked on devfile/api#1112

@rm3l

I'm not sure I have the full context for the usage of multiple sample versions for this case.

I think the initial point was whether to switch the default version of this stack to the latest one here (which would be using Devfile 2.2.0). However, the problem mentioned by Kim is that doing so would break the current samples.

But, fyi after the implementation of devfile/api#1209 we are able to have multiple versions of samples and add them to extraDevFileEntries.yaml. For this specific stack we have already an opened PR on the springboot sample here: devfile-samples/devfile-sample-java-springboot-basic#33

Ok (correct me if I'm wrong), so devfile/api#1209 paved the way to supporting versioned samples, but the actual work of updating extraDevfileEntries.yaml would be done in devfile/api#1112, right?

To move forward with this PR, I'm suggesting we decorrelate it from the work being done on samples, by updating the default version of this stack to the one using Devfile 2.1.0 but with JDK 17. This would keep backward compatibility with the current samples as I guess they would still be working with parent v2.1.0 (only with a different container image).
And the task of updating extraDevFileEntries would be handled separately as part of devfile/api#1112, at which point we could also consider switching the default stack version to a version on Devfile 2.2.0 (scope of devfile/api#1129).

1.3.0 is the most up-to-date version using Devfile 2.1.0 schema,
for backward compatibility with current samples.
We are purposely not using the most up-date version on 2.2.0 schema,
as this would reportedly break current samples.

See [1] for more context.

[1] devfile#169 (comment)

Signed-off-by: Armel Soro <[email protected]>
@rm3l rm3l force-pushed the java-springboot_bump_jdk_to_17 branch from 9f4fd9a to eb05706 Compare October 18, 2023 15:56
@openshift-ci openshift-ci bot removed the lgtm Looks good to me label Oct 18, 2023
@rm3l
Copy link
Member Author

rm3l commented Oct 18, 2023

As agreed with the rest of the team, I'm switching the default version of this stack to 1.3.0 (the one still on Devfile 2.1.0, but with a more recent JDK 17), for backward compatibility with the samples.

Also rebased and force-pushed as the branch was a bit outdated.

@rm3l rm3l requested a review from kadel October 18, 2023 16:02
rm3l added a commit to rm3l/devfile-registry that referenced this pull request Oct 18, 2023
1.3.0 is the most up-to-date version using Devfile 2.1.0 schema,
for backward compatibility with current samples.
We are purposely not using the most up-date version on 2.2.0 schema,
as this would reportedly break current samples.

See [1] for more context.

[1] devfile#169 (comment)

Signed-off-by: Armel Soro <[email protected]>
@openshift-ci openshift-ci bot added the lgtm Looks good to me label Oct 19, 2023
@openshift-ci
Copy link

openshift-ci bot commented Oct 19, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kadel, rm3l

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rm3l rm3l merged commit 59b8ee4 into devfile:main Oct 20, 2023
8 checks passed
@rm3l rm3l deleted the java-springboot_bump_jdk_to_17 branch October 20, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants