damccorm opened a new pull request, #41835:
URL: https://github.com/apache/beam/pull/41835
Note: this PR was auto-generated by tooling. Before moving it out of draft,
the author has done a full review of the PR, specifically evaluating it on the
following criteria:
- The PR is an appropriate fix for the issue (e.g. we're not changing a test
to avoid a bug)
- The PR is a simple fix to the issue (e.g. we're not adding infra when we
could just modify a test)
- The PR is not covering for other problems (e.g. if we're bumping timeouts,
it is not because we're covering for a performance problem)
Full details of the methodology of generation and review can be found here -
https://docs.google.com/document/d/14lj7ECVov4T4EdwmIzNlWrRGE3lLDMOwX5xUMGzaLoc/edit?usp=sharing
If you have concerns with the PR or with the underlying methodology used to
generate this, please comment below - they will be addressed by the author not
the tooling :)
## Summary
Fixes recurring HTTP `429 Too Many Requests` failures on shared
GitHub-hosted runner NAT IPs (`macos` and `ubuntu-24.04-arm`) when Gradle
resolves `com.github.jk1:gradle-license-report:1.16` during plugin management.
### Observed Failures (3 total; 2 in last 7 days)
- [Local environment tests run
46578092770](https://github.com/apache/beam/actions/runs/46578092770/job/142405530211)
(`2026-12-01`, build scan https://develocity.apache.org/s/n6iqae5yac6ja)
- [Python ValidatesContainer Dataflow ARM run
46205702699](https://github.com/apache/beam/actions/runs/46205702699/job/141167776061)
(`2026-11-29`, build scan https://develocity.apache.org/s/47o573wl6rypg)
- [Local environment tests run
45323725505](https://github.com/apache/beam/actions/runs/45323725505)
(`2026-11-24`)
## Root Cause
`com.github.jk1:gradle-license-report:1.16` is published on the Gradle
Plugin Portal (`plugins-artifacts.gradle.org`), not Maven Central (so
`maven-central.storage-download.googleapis.com` returns 404). Its POM includes
the `<!-- do_not_remove: published-with-gradle-metadata -->` marker and
declares zero transitive dependencies, yet its `.module` file is missing from
`plugins.gradle.org/m2`. Consequently:
- `.pom` (`303`) and `.jar` (`303`) resolve directly from
`plugins-artifacts.gradle.org`.
- `.module` (`303`) redirects to
`https://repo.maven.apache.org/maven2/com/github/jk1/gradle-license-report/1.16/gradle-license-report-1.16.module`,
which rate-limits shared GitHub-hosted runner NAT IPs with HTTP `429`.
## Changes
- In `settings.gradle.kts` (`pluginManagement.repositories`), when `isCi`
(`GITHUB_ACTIONS != null`), add a scoped `plugins.gradle.org/m2/` Maven
repository for `com.github.jk1` and `com.github.jk1.dependency-license-report`
with `metadataSources { mavenPom(); artifact();
ignoreGradleMetadataRedirection() }` before `gradlePluginPortal()`.
- Strictly scoped to `pluginManagement` lines 33–50 (disjoint from open
draft PR #41572, which only touches line 370 `include(...)`).
## Verification
- Verified via `HEAD` requests that
`com.github.jk1.dependency-license-report.gradle.plugin:1.16` `.pom` returns
`200` on `plugins.gradle.org/m2`, `gradle-license-report:1.16` `.pom` and
`.jar` redirect to `plugins-artifacts.gradle.org`, and
`gradle-license-report-1.16.pom` has zero transitive dependencies.
- Triggering `.github/workflows/local_env_tests.yml` (Mac runner) on this
branch.
### Verification
- Triggered `.github/workflows/local_env_tests.yml` workflow run on branch:
[`46581942514`](https://github.com/apache/beam/actions/runs/46581942514)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]