Skip to content

Auto-enable Nexus mirror when credentials are present [master] - #16947

Merged
silvarohan18 merged 1 commit into
masterfrom
rohan-auto-enable-nexus-mirror
Aug 25, 2026
Merged

Auto-enable Nexus mirror when credentials are present [master]#16947
silvarohan18 merged 1 commit into
masterfrom
rohan-auto-enable-nexus-mirror

Conversation

@silvarohan18

@silvarohan18 silvarohan18 commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Auto-enable the Nexus mirror in buildSrc/build.gradle and build.gradle when H2O_NEXUS_USERNAME and H2O_NEXUS_PASSWORD are set in the environment
  • Removes the need for the explicit H2O_NEXUS_ENABLED=true flag in CI
  • OSS builds without credentials remain unaffected (no behavioral change)

Problem

Nightly CI runs 40+ parallel EC2 test runners that all hit Maven Central simultaneously to resolve buildSrc dependencies (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 because H2O_NEXUS_ENABLED was 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

  • Verify OSS builds without credentials still resolve from Maven Central
  • Verify CI builds with credentials now resolve from Nexus mirror
  • Confirm nightly Java/Smoke test failures are resolved

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>
@sonarqubecloud

Copy link
Copy Markdown

@silvarohan18
silvarohan18 requested a review from valenad1 August 24, 2026 04:01
@silvarohan18 silvarohan18 self-assigned this Aug 24, 2026
@silvarohan18 silvarohan18 changed the title Auto-enable Nexus mirror when credentials are present Auto-enable Nexus mirror when credentials are present [master] Aug 24, 2026
@silvarohan18
silvarohan18 merged commit a9c166e into master Aug 25, 2026
62 of 70 checks passed
@silvarohan18
silvarohan18 deleted the rohan-auto-enable-nexus-mirror branch August 25, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant