Title: Cache Gradle's downloads in CI by abashev · Pull Request #142 · openjavaformat/open-java-format · GitHub
Open Graph Title: Cache Gradle's downloads in CI by abashev · Pull Request #142 · openjavaformat/open-java-format
X Title: Cache Gradle's downloads in CI by abashev · Pull Request #142 · openjavaformat/open-java-format
Description: Six of the last 120 CI runs lost a job to a download, and every re-run passed: date job what failed 2026-10-19 native (windows-x86-64), native (linux-aarch64) twice Maven Central: Connection reset while resolving :buildSrc:compileClasspath 2026-10-19 native (macos-x86-64) Maven Central: nodename nor servname provided, or not known 2026-10-03, 2026-10-19 native (macos-x86-64) services.gradle.org: UnknownHostException, then Connect timed out, fetching gradle-9.8.1-bin.zip No JDK or GraalVM download failed in those runs. gradle/actions/setup-gradle v6.4.0, the SHA dependency-submission.yml already pins, now runs in build, jdk and native. It restores the dependencies and the wrapper's distribution from the Actions cache and saves them after builds of the default branch; pull requests read. Three paths stay out through gradle-home-cache-excludes: caches/build-cache-1, the local build cache; caches/modules-2/files-2.1/com.jetbrains.intellij.idea, the 852 MB IDE zip the IntelliJ plugin's tests start, and caches/*/transforms, where a transform unpacks it to 2.1 GB: slower to restore than to download from JetBrains, and a third of the repository's 10 GB cache. The default cache provider is Gradle's proprietary library, vendored in the action and free for public repositories; the open-source basic provider cannot leave paths out. JDK downloads are not cached: none has failed, and setup-graalvm finds a cached GraalVM only by its exact version, which would mean pinning versions by hand in ci.yml and release.yml. Still on the network: wrapper validation fetches checksums from services.gradle.org while 9.8.2 is in no cached valid-wrappers.json, so on the first run and on PR runs after a wrapper bump; the jdk job's TestKit builds download their Gradle outside Gradle User Home; JDKs, GraalVM and the IDE as before. act --list parses the workflow. Not run in CI yet: the "Gradle Build Results" summary of the first run on 21.X.X should list what was saved, and the next run what was restored.
Open Graph Description: Six of the last 120 CI runs lost a job to a download, and every re-run passed: date job what failed 2026-10-19 native (windows-x86-64), native (linux-aarch64) twice Maven Central: Connection...
X Description: Six of the last 120 CI runs lost a job to a download, and every re-run passed: date job what failed 2026-10-19 native (windows-x86-64), native (linux-aarch64) twice Maven Central: Connection...
Opengraph URL: https://github.com/openjavaformat/open-java-format/pull/142
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1f642b09-07f1-df25-cae5-c913c17dbcdf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AD16:C4A52:714611:965FC9:6AFBCC48 |
| html-safe-nonce | accbc934e62c2d3f0cd35e0648eeb278644afe653947a3966429b99355f197fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDE2OkM0QTUyOjcxNDYxMTo5NjVGQzk6NkFGQkNDNDgiLCJ2aXNpdG9yX2lkIjoiMjUzNTY1Njg3OTgzNzQwMDEzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | df6e348dde1372f7911845fb1714e67655b2e3196c6c906f33a8c7135de0c7cc |
| hovercard-subject-tag | pull_request:4935095956 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/openjavaformat/open-java-format/pull/142/files |
| twitter:image | https://avatars.githubusercontent.com/u/214171?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/214171?s=400&v=4 |
| og:image:alt | Six of the last 120 CI runs lost a job to a download, and every re-run passed: date job what failed 2026-10-19 native (windows-x86-64), native (linux-aarch64) twice Maven Central: Connection... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 18742cb872ec73544356e60359266b67aafece70c4ce008042e06227924cdd07 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/openjavaformat/open-java-format git https://github.com/openjavaformat/open-java-format.git |
| octolytics-dimension-user_id | 325177626 |
| octolytics-dimension-user_login | openjavaformat |
| octolytics-dimension-repository_id | 1288055459 |
| octolytics-dimension-repository_nwo | openjavaformat/open-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 214273098 |
| octolytics-dimension-repository_parent_nwo | palantir/palantir-java-format |
| octolytics-dimension-repository_network_root_id | 214273098 |
| octolytics-dimension-repository_network_root_nwo | palantir/palantir-java-format |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 820be804f18e1ef3940bd74a00d41d73d02e2b91 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width