Skip to content

qa/rgw: fix s3 java tests by forcing gradle to run on Java 8 - #61010

Merged
ivancich merged 1 commit into
ceph:mainfrom
ivancich:wip-fix-s3java
Dec 11, 2024
Merged

ivancich merged 1 commit into
ceph:mainfrom
ivancich:wip-fix-s3java

Conversation

@ivancich

@ivancich ivancich commented Dec 10, 2024 •

Copy link
Copy Markdown
Member

During testing sets JAVA_HOME to refer to the java interpreter for Java 8, so there aren't any issues with gradle.

Fixes: https://tracker.ceph.com/issues/69204

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@ivancich
ivancich requested a review from cbodley December 10, 2024 04:01
@ivancich
ivancich requested a review from a team as a code owner December 10, 2024 04:01
@ivancich
ivancich force-pushed the wip-fix-s3java branch 2 times, most recently from 0591d5d to b0c58d2 Compare December 10, 2024 04:07
@ivancich

Copy link
Copy Markdown
Member Author

@cbodley This seems to solve the issue but it's currently very clunky. I'm thinking it'd be better just to use alternatives to set Java 8 the default version. (Also, the second commit is just for testing purposes.) What do you think?

@ivancich

Copy link
Copy Markdown
Member Author

@cbodley

cbodley commented Dec 10, 2024

Copy link
Copy Markdown
Contributor

What do you think?

i love it if it works! have you tried running this against a ubuntu worker? i'm not familiar with the alternatives command, so can't tell whether or not it's specific to rpm-based distros

Previously gradle would run using the default Java version. This looks
for Java 8 using `alternatives` and sets JAVA_HOME to the
corresponding directory prior to launching gradle.

Signed-off-by: J. Eric Ivancich <[email protected]>
@ivancich

Copy link
Copy Markdown
Member Author

What do you think?

i love it if it works! have you tried running this against a ubuntu worker? i'm not familiar with the alternatives command, so can't tell whether or not it's specific to rpm-based distros

So it works on both centos and ubuntu. See: https://pulpito.ceph.com/ivancich-2024-12-11_15:44:29-rgw-wip-eric-testing-1-distro-default-smithi/

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants