Skip to content

Avoid Maven Central fallback when proxy is configured - #12403

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
alexeyk/temporary-maven-central-rate-limit-fix
Sep 3, 2026
Merged

Avoid Maven Central fallback when proxy is configured#12403
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
alexeyk/temporary-maven-central-rate-limit-fix

Conversation

@AlexeyKuznetsov-DD

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

This is a temporary workaround for Maven Central rate limiting. The previous Muzzle fallback remains visible in a comment for straightforward restoration, and the test that asserts the fallback is disabled with a corresponding TODO.

When a Maven repository proxy is configured, use it instead of retaining Maven Central as a fallback for project dependency resolution and Muzzle version discovery.

Motivation

Adding the proxy before Maven Central did not isolate CI from Maven Central. Gradle dynamic-version resolution and Muzzle's Aether version-range resolution can inspect every configured repository, so CI continued making direct Maven Central requests and received HTTP 429 responses.

Combining repository metadata also allowed Muzzle to discover a newly published dependency version from Maven Central before it was available through the configured proxy. Muzzle then generated compatibility tasks for a version that the proxy could not resolve. Making version discovery proxy-only keeps the generated task set aligned with the artifacts available to the build.

Additional Notes

Representative failure evidence:

Could not GET 'https://repo.maven.apache.org/maven2/.../maven-metadata.xml'.
Received status code 429 from server: Too Many Requests

Contributor Checklist

Jira ticket: N/A

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added type: bug fix Bug fix tag: no release notes Changes to exclude from release notes comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM labels Sep 3, 2026
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD self-assigned this Sep 3, 2026
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD marked this pull request as ready for review September 3, 2026 21:53
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD requested a review from a team as a code owner September 3, 2026 21:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T21:58:22.248508Z bdcc0a7 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bdcc0a7fc8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread gradle/repositories.gradle

@datadog-datadog-prod-us1-2 datadog-datadog-prod-us1-2 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Datadog Autotest: FAIL

A Gradle property can configure the proxy without the matching environment variable. Gradle then uses the proxy, but Muzzle still uses Maven Central and can select a version that the proxy cannot resolve.

Open Bits AI session

🤖 Datadog Autotest · Commit bdcc0a7 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

Comment thread gradle/repositories.gradle
@dd-octo-sts

dd-octo-sts Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.79 s 14.72 s [-0.4%; +1.3%] (no difference)
startup:insecure-bank:tracing:Agent 13.66 s 13.70 s [-1.0%; +0.4%] (no difference)
startup:petclinic:appsec:Agent 17.50 s 17.37 s [-0.1%; +1.6%] (no difference)
startup:petclinic:iast:Agent 16.28 s 17.44 s [-12.4%; -1.0%] (unstable)
startup:petclinic:profiling:Agent 17.20 s 17.23 s [-1.4%; +1.0%] (no difference)
startup:petclinic:sca:Agent 16.82 s 17.34 s [-7.0%; +1.1%] (no difference)
startup:petclinic:tracing:Agent 16.05 s 16.71 s [-8.0%; +0.0%] (no difference)

Commit: bdcc0a7f · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@AlexeyKuznetsov-DD

Copy link
Copy Markdown
Contributor Author

/merge -f --reason "Skip MQ, since it is a build fix and tested on PR"

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Sep 3, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-09-03 22:32:41 UTC ℹ️ Start processing command /merge -f --reason "Skip MQ, since it is a build fix and tested on PR"


2026-09-03 22:32:51 UTC ℹ️ MergeQueue: Pull request is not mergeable yet

It will be processed automatically as soon as GitHub reports it as mergeable. View in MergeQueue UI.

  • Run /code blockers to see what is blocking it.
  • Run /remove to cancel it.

2026-09-03 22:37:59 UTC ⚠️ MergeQueue: This merge request was unqueued

alexey.kuznetsov@datadoghq.com unqueued this merge request

@AlexeyKuznetsov-DD

Copy link
Copy Markdown
Contributor Author

/code blockers

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Sep 3, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-09-03 22:33:20 UTC ℹ️ Start processing command /code blockers


2026-09-03 22:33:20 UTC ℹ️ Devflow:

Checking merge blockers for #12403...


2026-09-03 22:33:27 UTC ℹ️ Devflow: /code blockers

No merge blockers detected.

@AlexeyKuznetsov-DD

Copy link
Copy Markdown
Contributor Author

/merge -c

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Sep 3, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-09-03 22:37:53 UTC ℹ️ Start processing command /merge -c

@AlexeyKuznetsov-DD

Copy link
Copy Markdown
Contributor Author

/merge -f --reason "Skip MQ, since it is a build fix and tested on PR"

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Sep 3, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-09-03 22:39:17 UTC ℹ️ Start processing command /merge -f --reason "Skip MQ, since it is a build fix and tested on PR"


2026-09-03 22:39:22 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 0s (p90).


2026-09-03 22:39:31 UTC ℹ️ MergeQueue: This merge request was merged

Warning

This change was merged without running any pre merge CI checks

Reason: Skip MQ, since it is a build fix and tested on PR

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit c5cda76 into master Sep 3, 2026
608 of 612 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the alexeyk/temporary-maven-central-rate-limit-fix branch September 3, 2026 22:39
@github-actions github-actions Bot added this to the 1.66.0 milestone Sep 3, 2026
AlexeyKuznetsov-DD added a commit that referenced this pull request Sep 4, 2026
Avoid Maven Central fallback when proxy is configured

Co-authored-by: alexey.kuznetsov <alexey.kuznetsov@datadoghq.com>
AlexeyKuznetsov-DD added a commit that referenced this pull request Sep 4, 2026
Avoid Maven Central fallback when proxy is configured

Co-authored-by: alexey.kuznetsov <alexey.kuznetsov@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants