You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "clayburn (via GitHub)" <gi...@apache.org> on 2026/10/13 14:15:30 UTC
[PR] [CI] Use Develocity cache node for the remote Gradle build cache [beam]
clayburn opened a new pull request, #40551:
URL: https://github.com/apache/beam/pull/40551
Addresses [INFRA-28474](https://issues.apache.org/jira/browse/INFRA-28474).
The remote Gradle build cache at `beam-cache.apache.org` has been returning `403 Forbidden` since its credentials were revoked, so CI builds get no remote cache hits. That cache is a Develocity Build Cache Node, which is reaching end of life, so rather than restore its credentials this PR moves the remote cache to the Develocity build cache connector. Builds then use the built-in Edge node of `develocity.apache.org`, the same server Beam already publishes Build Scans to under the `beam` project.
### Changes
**`settings.gradle.kts`**
- Replace the `HttpBuildCache` pointing at `beam-cache.apache.org` with `remote(develocity.buildCache)`.
- **Reads:** enabled for every build, including pull requests and local builds. The cache on `develocity.apache.org` is anonymously readable, so no credentials are needed.
- **Writes:** only CI `push` and `schedule` runs that have a Develocity access key. This keeps the rule from #40358 that unmerged code never writes to the remote cache.
- Remove Jenkins detection, since Beam CI no longer runs on Jenkins.
**Workflows (308 files, mechanical)**
- `DEVELOCITY_ACCESS_KEY` now comes from the `BEAM_DEVELOCITY_ACCESS_KEY` secret that Apache Infra created for the `beam` project.
- Remove `GRADLE_ENTERPRISE_CACHE_USERNAME`/`GRADLE_ENTERPRISE_CACHE_PASSWORD`. The `GE_CACHE_USERNAME` and `GE_CACHE_PASSWORD` secrets are no longer used and can be deleted.
### Security
- No workflow that receives the secret is triggered by `pull_request_target` or `issue_comment`, and fork PRs do not receive secrets, so untrusted code never sees the key.
- The key goes only to builds of trusted code, and `isPush` further limits those builds to writing to the cache only on `push` and `schedule` events.
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). _(Not large: one settings change plus a mechanical secret rename.)_
- [x] Replace these instructions with a description of your change and why you have made it.
- [x] Mention the appropriate issue in your description (for example: `addresses #123` or `fixes #456`).
- [ ] Update `CHANGES.md` with noteworthy changes. _(CI-only change with no user-facing impact.)_
See [CONTRIBUTING.md](https://github.com/apache/beam/blob/master/CONTRIBUTING.md) for more details.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CI] Use Develocity cache node for the remote Gradle build cache [beam]
Posted by "clayburn (via GitHub)" <gi...@apache.org>.
clayburn commented on code in PR #40551:
URL: https://github.com/apache/beam/pull/40551#discussion_r4259945584
##########
settings.gradle.kts:
##########
@@ -65,20 +64,13 @@ buildCache {
local {
isEnabled = true
}
- remote<HttpBuildCache> {
- url = uri("https://beam-cache.apache.org/cache/")
- isAllowUntrustedServer = false
- credentials {
- username = System.getenv("GRADLE_ENTERPRISE_CACHE_USERNAME")
- password = System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
- }
- isEnabled = !System.getenv("GRADLE_ENTERPRISE_CACHE_USERNAME").isNullOrBlank()
+ remote(develocity.buildCache) {
+ isEnabled = true
Review Comment:
We recommend enable build cache reads all builds, but only writing from CI. For develocity.apache.org, reads are anonymous, so setting this to true allows contributors to benefit from remote cache reads.
That said, it is configurable if you prefer only CI.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CI] Use Develocity cache node for the remote Gradle build cache [beam]
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn merged PR #40551:
URL: https://github.com/apache/beam/pull/40551
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CI] Use Develocity cache node for the remote Gradle build cache [beam]
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on code in PR #40551:
URL: https://github.com/apache/beam/pull/40551#discussion_r4259908604
##########
settings.gradle.kts:
##########
@@ -65,20 +64,13 @@ buildCache {
local {
isEnabled = true
}
- remote<HttpBuildCache> {
- url = uri("https://beam-cache.apache.org/cache/")
- isAllowUntrustedServer = false
- credentials {
- username = System.getenv("GRADLE_ENTERPRISE_CACHE_USERNAME")
- password = System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
- }
- isEnabled = !System.getenv("GRADLE_ENTERPRISE_CACHE_USERNAME").isNullOrBlank()
+ remote(develocity.buildCache) {
+ isEnabled = true
Review Comment:
Is `isEnabled = true` intended, or shall we enable remote cache only for `isCI`?
I see the description,
> Reads: enabled for every build, including pull requests and local builds. The cache on develocity.apache.org is anonymously readable, so no credentials are needed.
Previously remote cache isn't enabled in release candidate builds (https://github.com/apache/beam/blob/master/.github/workflows/build_release_candidate.yml), as it's supposed to start with a fresh build. We can follow up later.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CI] Use Develocity cache node for the remote Gradle build cache [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #40551:
URL: https://github.com/apache/beam/pull/40551#issuecomment-6148243025
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment `assign set of reviewers`
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CI] Use Develocity cache node for the remote Gradle build cache [beam]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #40551:
URL: https://github.com/apache/beam/pull/40551#issuecomment-6147948729
## [Codecov](https://app.codecov.io/gh/apache/beam/pull/40551?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 75.82%. Comparing base ([`76f6e6d`](https://app.codecov.io/gh/apache/beam/commit/76f6e6d7c0c1b2ce582c73d068ad9260cf15c5f3?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`b582f37`](https://app.codecov.io/gh/apache/beam/commit/b582f3793fbb5635a4e36cf53cf72fd6323b87c9?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 149 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #40551 +/- ##
=============================================
+ Coverage 56.16% 75.82% +19.65%
Complexity 2288 2288
=============================================
Files 1124 259 -865
Lines 178336 14459 -163877
Branches 1489 1487 -2
=============================================
- Hits 100170 10964 -89206
+ Misses 75645 2792 -72853
+ Partials 2521 703 -1818
```
| [Flag](https://app.codecov.io/gh/apache/beam/pull/40551/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [go](https://app.codecov.io/gh/apache/beam/pull/40551/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [java](https://app.codecov.io/gh/apache/beam/pull/40551/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `75.82% <ø> (+0.04%)` | :arrow_up: |
| [python](https://app.codecov.io/gh/apache/beam/pull/40551/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/beam/pull/40551?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CI] Use Develocity cache node for the remote Gradle build cache [beam]
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on code in PR #40551:
URL: https://github.com/apache/beam/pull/40551#discussion_r4259908604
##########
settings.gradle.kts:
##########
@@ -65,20 +64,13 @@ buildCache {
local {
isEnabled = true
}
- remote<HttpBuildCache> {
- url = uri("https://beam-cache.apache.org/cache/")
- isAllowUntrustedServer = false
- credentials {
- username = System.getenv("GRADLE_ENTERPRISE_CACHE_USERNAME")
- password = System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
- }
- isEnabled = !System.getenv("GRADLE_ENTERPRISE_CACHE_USERNAME").isNullOrBlank()
+ remote(develocity.buildCache) {
+ isEnabled = true
Review Comment:
Is `isEnabled = true` intended, or shall we enable remote cache only for `isCI`?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org