Auto-enable Nexus mirror when credentials are present [master] - #16947
Merged
Conversation
Nightly CI runs 40+ parallel EC2 test runners that all hit Maven Central simultaneously to resolve buildSrc dependencies, triggering HTTP 429 (Too Many Requests) rate limiting. This causes all Java and Smoke tests to fail with `:buildSrc:compileJava FAILED`. Auto-enable the Nexus mirror when H2O_NEXUS_USERNAME and H2O_NEXUS_PASSWORD are set in the environment, removing the need for the explicit H2O_NEXUS_ENABLED flag. OSS builds without credentials are unaffected. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
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.



Summary
buildSrc/build.gradleandbuild.gradlewhenH2O_NEXUS_USERNAMEandH2O_NEXUS_PASSWORDare set in the environmentH2O_NEXUS_ENABLED=trueflag in CIProblem
Nightly CI runs 40+ parallel EC2 test runners that all hit Maven Central simultaneously to resolve
buildSrcdependencies (io.minio:minio:3.0.3), triggering HTTP 429 (Too Many Requests) rate limiting. This causes all Java JUnit tests and Smoke tests to fail with:buildSrc:compileJava FAILED.The Nexus mirror credentials (
H2O_NEXUS_USERNAME/H2O_NEXUS_PASSWORD) are already present in the CI environment, but the mirror was never activated becauseH2O_NEXUS_ENABLEDwas not set.Fix
Instead of requiring an explicit
H2O_NEXUS_ENABLED=true, the build now auto-detects when Nexus credentials are available and enables the mirror automatically.Test plan