Repository navigation
ci: leave the extracted IDEs out of the Actions cache, which they overflowed, and retry a refused download for a minute - #2175
Merged
lagergren merged 1 commit intoNov 24, 2026
Conversation
…rflowed, and retry a refused download for a minute
The entries that the CI jobs save on main reached 12.2 GB, over the
repository's 10 GB, most of it the IDEs that Gradle extracts as artifact
transforms (3.9, 3.3 and 0.9 GB). GitHub then evicted the other jobs'
entries, so a job found no cache ("Gradle User Home cache not found") and
downloaded everything again. On 436b029, Maven Central answered the
Windows job "429 Too Many Requests" before any test ran.
- setup-gradle deletes caches/transforms-4 and caches/*/transforms before
it saves. Gradle extracts an IDE again from its cached download.
- Gradle retries a download refused with a server error or a 429 six times,
2 to 32 seconds apart, instead of three times in 3 seconds.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2175 +/- ##
=======================================
Coverage 54.12% 54.12%
=======================================
Files 831 831
Lines 35275 35275
Branches 5527 5527
=======================================
Hits 19092 19092
Misses 13364 13364
Partials 2819 2819 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
@coderabbitai review |
Action performed
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Main's last CI run, for 436b029, failed on Windows before any test ran:
The job had no cache to start from: setup-gradle said "Gradle User Home cache not found. Will initialize empty.", so it
downloaded every dependency again.
Why there was no cache: the repository's Actions cache holds 12.2 GB, over GitHub's 10 GB per repository. Every
entry in it was saved in the 20 minutes before this PR, all on main. The biggest are
gradle-transformsentries of 3.9,3.3 and 0.9 GB. They are the IDEs that the IntelliJ Platform Gradle plugin extracts as Gradle artifact transforms, one
per job and platform version. Each push to main saves them again for the 5 test jobs, the plugin build and the
verifier. GitHub then evicts the oldest entries, the other jobs' downloads among them, and the next run of those jobs
fetches everything from Maven Central and JetBrains again.
Change
setup-gradlestep leavescaches/transforms-4andcaches/*/transformsout of the Actionscache, with
gradle-home-cache-excludes. setup-gradle deletes them before it saves. These are ci.yml, buildZip.yml,IJ.yml, IJ-latest.yml (3 steps), nightly.yml and release.yml.
gradle-dependencies, now 1.3 to 2 GB an entry), so the entries fit in10 GB, and Gradle extracts an IDE again from its cached download without a network access.
caches/9.9.2/transforms/*/transformed/extracted.(
NetworkingIssueVerifier), but only 3 times, 1 and 2 seconds apart.gradle.propertiesraises that to 6 times, 2,4, 8, 16 and 32 seconds apart, with
systemProp.org.gradle.internal.network.retry.max.attemptsand.initial.backOff,which
NetworkOperationBackOffAndRetryreads. A local build prints them back as 6 and 2000 from an init script.The other CI failures this week
I went through the 22 failed "Java CI with Gradle" runs since 2026-11-17:
InstallerTaskRegistryInitializeTestfailed on every job after fix: try a failed installation again at the next start of the IDE, download ada_language_server, clojure-lsp, docker-language-server, terraform-ls and wgsl-analyzer on Intel Macs, and fix other template and installer bugs #2102.LanguageServerManagerInstancesTestby test: let the tab connect a file before LanguageServerManagerInstancesTest stops its instance #2120;CancelRequestAfterShutdownTestby test: the language server asks for its configuration over the connection that it shuts down #2162;SocketLanguageServerTestby test: open no editor in the socket stop test, whose connect could start the language server again after the stop #2064;SelectedEditorConnectionTestandFileDocumentMoveTestby the fixes of fix: send a language server the notifications queued before its stop ahead of its shutdown #2099 and fix: keep a language server running while a move connects its last document again #2095.WatchedFilesTest(Windows, 2026-11-22) andLanguageServerInstancesTest(2026.3,2026-11-18).
Check
A pull request reads the cache but doesn't write it, so this PR's own CI can't show the saving. After the merge, the
next run on main should leave the repository's cache under 10 GB, and the run after it should restore each job's entry.
I'll check both.