Repository navigation
rgw: Unbreak Java Tests - #73573
Merged
Merged
rgw: Unbreak Java Tests#73573
Conversation
adamemerson
force-pushed
the
wip-82736
branch
from
November 6, 2026 15:17
e09ca53 to
531bb4c
Compare
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]>
adamemerson
force-pushed
the
wip-82736
branch
from
November 6, 2026 15:19
531bb4c to
6f8544e
Compare
BBoozmen
approved these changes
Nov 6, 2026
Contributor
|
Looking at one of the jobs, it clearly shows the fix taking affect as intended: |
Contributor
Author
|
jenkins test make check |
1 similar comment
Contributor
Author
|
jenkins test make check |
Member
|
jenkins test api |
ivancich
approved these changes
Nov 6, 2026
ivancich
left a comment
Member
There was a problem hiding this comment.
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.
This was referenced Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.