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

Update Project Java Version to 21.04-ms and Ensure Successful Build and Test Completion #29685

Closed
Tracked by #27993
dcolina opened this issue Aug 21, 2024 · 4 comments · Fixed by #29418 or #29757
Closed
Tracked by #27993

Comments

@dcolina
Copy link
Contributor

dcolina commented Aug 21, 2024

Parent Issue

User Story

As a developer, I need to update the Java version in our project to 21.0.4-ms. This involves building the base Java image 21.0.4-ms using the GitHub workflow 'Build SDKMan Base Java Image'. It is crucial to ensure that the project compiles correctly with the new Java version and that all integration flow tests complete successfully.

Acceptance Criteria

  • The base Java image 21.0.4-ms is successfully built using the 'Build SDKMan Base Java Image' workflow.
  • The project's Java version is updated to 21.0.4-ms.
  • Compilation of the project with the new Java version completes without errors.
  • All tests in the integration flow pass successfully.

Proposed Objective

Core Features

Proposed Priority

Priority 1 - Show Stopper

dotCMS Version

N/A

External Links

N/A

Assumptions & Initiation Needs

  • Access to the GitHub workflow configuration for 'Build SDKMan Base Java Image'.
  • Knowledge of how to update Java versions within the project and manage dependencies accordingly.

Quality Assurance Notes & Workarounds

  • Ensure that any dependencies incompatible with Java 21.04-ms are identified and addressed.
  • Monitor the integration flow tests closely to catch and rectify any issues arising from the Java update.

Sub-Tasks & Estimates

N/A

@dcolina dcolina self-assigned this Aug 21, 2024
@dcolina dcolina converted this from a draft issue Aug 21, 2024
@dcolina dcolina changed the title Update java version to 21.04-ms Update java version to 21.0.4-ms Aug 21, 2024
@dcolina dcolina changed the title Update java version to 21.0.4-ms Update Project Java Version to 21.04-ms and Ensure Successful Build and Test Completion Aug 21, 2024
@dcolina dcolina linked a pull request Aug 21, 2024 that will close this issue
@dcolina dcolina moved this from Current Sprint Backlog to In Progress in dotCMS - Product Planning Aug 21, 2024
github-merge-queue bot pushed a commit that referenced this issue Aug 23, 2024
### Proposed Changes
* In this PR we update project java version to `21.0.4-ms`

### Fixes
#29685

---------

Co-authored-by: Steve Freudenthaler <[email protected]>
@github-project-automation github-project-automation bot moved this from In Review to Internal QA in dotCMS - Product Planning Aug 23, 2024
@nollymar nollymar reopened this Aug 23, 2024
@github-project-automation github-project-automation bot moved this from Internal QA to Current Sprint Backlog in dotCMS - Product Planning Aug 23, 2024
@nollymar
Copy link
Contributor

nollymar commented Aug 23, 2024

Internal QA: Apparently some changes are missing. The latest docker image generated is running Java 11.

Besides, it seems like there are some changes missing from this PR

@spbolton
Copy link
Contributor

The docker image created during CICD build/test is working fine but the image is regenerated in the master deployment phase, we were missing passing the build-arg to specify the base image to use in this step and it was falling back to the default in the Docker file.

We need to be more clear about what changes are missing from the PR as it is old and does not reflect some changes that have already been deployed in different ways into master. There are also some changes that were purposely not included in this PR and should be added after initial Java 21 was merged. The new garbage collection options are only supported with Java 21, the old Java 11 options may not be preferable for Java 21, and we may also have some warnings after switch over but It is preferable to have smaller PRs and to have and test a commit where we are only changing the Java version essentially a commit that is compatible with both, and then follow up with changes that are only supported in the new version. We can then also distinguish between issues that may be caused by those tomcat parameter changes from the core java change. There may be something missing from the PR we want to include but if it is not something that is going to cause things to break when running on java 21 they should be separately included.

@spbolton spbolton self-assigned this Aug 27, 2024
github-merge-queue bot pushed a commit that referenced this issue Aug 27, 2024
…age (#29685) (#29757)

### Proposed Changes
* Ensure that correct java version is used by passing
SDKMAN_JAVA_VERSION build arg during deployment image build
* Remove confusion by replacing specific default for SDKMAN_JAVA_VERSION
from Dockerfile requiring it to be set.

Change will only have impact in deployment step in trunk workflow. 



### Checklist
- [ ] Tests
- [ ] Translations
- [ ] Security Implications Contemplated (add notes if applicable)

### Additional Info
Related to #29685 (Update Project Java Version to 21.04ms and Ensure ).


### Screenshots
Original             |  Updated
:-------------------------:|:-------------------------:
** original screenshot **  |  ** updated screenshot **
@github-project-automation github-project-automation bot moved this from Current Sprint Backlog to Internal QA in dotCMS - Product Planning Aug 27, 2024
@nollymar nollymar reopened this Aug 28, 2024
@github-project-automation github-project-automation bot moved this from Internal QA to Current Sprint Backlog in dotCMS - Product Planning Aug 28, 2024
@nollymar nollymar moved this from Current Sprint Backlog to Internal QA in dotCMS - Product Planning Aug 28, 2024
@rjvelazco rjvelazco self-assigned this Aug 28, 2024
@rjvelazco
Copy link
Contributor

Passed Internal QA

  • Tested on docker image: [dotcms/dotcms:trunk_b8fe837]
  • Server: dotCMS QA Server and My Local Host

Video

Checking Build SDKMan Base Java Image Workflow and Java version in dotCMS instance

iqa-29685-update-project-java-version-to-2104-ms-and-ensure-successful-build-and-test-completion.mov

Checking the Java version directly in the terminal

iqa-29685-update-project-java-version-to-2104-ms-and-ensure-successful-build-and-test-completion-terminal.mov

@rjvelazco rjvelazco moved this from Internal QA to QA - Backlog in dotCMS - Product Planning Aug 29, 2024
@rjvelazco rjvelazco removed their assignment Aug 29, 2024
@github-project-automation github-project-automation bot moved this from QA - Backlog to Internal QA in dotCMS - Product Planning Aug 29, 2024
@rjvelazco rjvelazco moved this from Internal QA to QA - Backlog in dotCMS - Product Planning Aug 29, 2024
@bryanboza
Copy link
Member

Fixed, tested on the latest trunk // Docker // FF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment