Skip to content

rgw: Unbreak Java Tests - #73573

Merged
adamemerson merged 2 commits into
ceph:mainfrom
adamemerson:wip-82736
Nov 6, 2026
Merged

adamemerson merged 2 commits into
ceph:mainfrom
adamemerson:wip-82736

Conversation

@adamemerson

@adamemerson adamemerson commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Be rude to Google rather than rude to the Apache foundation, at least until we get some local caching.

This seems to work:

https://pulpito.ceph.com/aemerson-2026-11-06_01:58:13-rgw-wip-82736-distro-default-trial/#

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

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@adamemerson
adamemerson requested a review from a team as a code owner November 6, 2026 04:06
@adamemerson adamemerson changed the title rgw; Unbreak Java Tests rgw: Unbreak Java Tests Nov 6, 2026
Maven Central (repo.maven.apache.org) rate-limits the test lab, and the
java s3tests pull the AWS SDK and their one gradle plugin from it via
mavenCentral() in the suite's build.gradle. Enough of those downloads
fail that the rgw/verify suite loses a sizeable fraction of its jobs.

Write a gradle init script into the test checkout and pass it with
--init-script. It hooks repositories.all on every project, including
buildscript repositories and pluginManagement, and rewrites any
repository whose host is repo.maven.apache.org to the Google mirror of
Maven Central. Since the hooks fire for repositories added later by
build.gradle, this works regardless of what the test suite declares,
and the mirror can be changed per client with a new 'maven-repo' task
option.

Verified locally with gradle 6.0.1 on JDK 8 against ceph-master of
java_s3tests: without the script, 512 fetches from repo.maven.apache.org;
with it, 0 from Apache and 514 from the mirror, build successful.

Also give the task an explicit name so that a teuthology 'overrides'
block keyed 's3tests-java' applies to it; previously the key would have
had to be the lowercased class name, s3tests_java.

Fixes: https://tracker.ceph.com/issues/82736
Assisted-by: Claude Fable 5.1 <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
The jcksum workunit is a Maven project, so the gradle init script this
script writes is never read. It was also broken three ways: the tilde
in "~/.gradle/init.gradle" is quoted so never expands and the script
creates a literal '~' directory in the working directory; a
pluginManagement {} block is only valid in settings.gradle, not an init
script; and the cleanup line removes $gradle_savings, a typo. The Maven
settings.xml mirror and MVNW_REPOURL are what actually redirect the
downloads, and they stay.

Fixes: https://tracker.ceph.com/issues/82736
Assisted-by: Claude Fable 5.1 <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
@BBoozmen

BBoozmen commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Looking at one of the jobs, it clearly shows the fix taking affect as intended:

https://qa-proxy.ceph.com/teuthology/aemerson-2026-11-06_01:58:13-rgw-wip-82736-distro-default-trial/721212/teuthology.log

2026-11-06T02:32:52.658 INFO:teuthology.orchestra.run.trial029.stdout:s3tests-java: redirecting https://repo.maven.apache.org/maven2/ to https://maven-central.storage-download.googleapis.com/maven2

@adamemerson

Copy link
Copy Markdown
Contributor Author

jenkins test make check

1 similar comment
@adamemerson

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@ivancich

ivancich commented Nov 6, 2026

Copy link
Copy Markdown
Member

jenkins test api

@ivancich ivancich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as the tests are running, I think this meets the needs of the day. I'm not an expert on maven/gradle, so I can't review more deeply.

@adamemerson
adamemerson merged commit 2f1d1fa into ceph:main Nov 6, 2026
15 of 16 checks passed
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.

3 participants