Conversation
The repository held 10.78GB of caches against a 10GB quota, so GitHub was evicting caches that jobs were about to use. CodeQL accounted for 5.97GB of that, and closed pull requests for another 1.3GB. Replace code scanning's default setup with this advanced setup, which is the only form in which "dependency-caching" can be turned off. Each Java dependency cache holds about 1GB of "~/.m2/repository" and "~/.gradle/caches", and its key covers every "*.gradle" file, so several of them existed at once. Delete a pull request's caches when it closes, rather than waiting the 7 days after which GitHub removes an unused cache. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Member
Author
|
Dropping this. Disabling CodeQL's #8230's shared Gradle module cache, plus deleting about 3.3 GB of stale caches, already brought the repository from 10.78 GB to under the 10 GB quota. |
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.
The repository held 10.78 GB of Actions caches against a 10 GB quota, so GitHub was evicting caches that jobs were about to use. This is why #8230's Gradle caches would not have survived on their own.
Where the 10.78 GB went:
codeql-dependencies-*gradle-modules-*setup-java-*-gradle*prek.yamlcodeql-overlay-base-database-*gradle-wrapper-*Default setup replaced by advanced setup
Default setup enables Java dependency caching automatically and exposes no way to turn it off. Advanced setup — this workflow — makes
dependency-cachingconfigurable, and it is set tofalsehere.Each such cache holds about 1 GB of
~/.m2/repositoryand~/.gradle/caches, and its key covers every*.gradlefile in the repository, so any build-file change mints a fresh gigabyte while the old entry lingers. Five coexisted.The workflow reproduces what default setup was configured to do: languages
actions,java-kotlin, andpython; the default query suite; a weekly schedule; andcategory: /language:<language>, so existing alerts keep their identity rather than being reported as new.Code scanning is currently in default setup (
gh api repos/typetools/checker-framework/code-scanning/default-setupreportsstate: configured). An advanced-setup workflow cannot upload results while default setup is enabled — CodeQL rejects the SARIF with "analyses from advanced configurations cannot be processed when the default setup is enabled". So the CodeQL job on this very pull request is expected to fail until default setup is switched off, in Settings → Code security → Code scanning.I did not flip that setting, since it briefly leaves the repository without code scanning and it is a repository-wide security setting.
One consequence worth weighing
Disabling
dependency-cachingmeans CodeQL re-resolves Java dependencies from Maven Central on each analysis. There were 35–39 analyses per day over the last few days, roughly a third of themjava-kotlin, so this adds on the order of 12 GB per day of Maven Central traffic — which cuts against #8230, whose purpose is to stop provoking Maven Central into returning HTTP 403.If that trade is not worth it, this pull request can simply be dropped: #8230's shared module cache, plus deleting stale caches, already bring the total under quota, though with CodeQL occupying most of it.
Already done by hand
11 stale caches, about 3.3 GB, were deleted: merged #8207's CodeQL cache, the deleted
renovate/gradle-9.xbranch's caches, supersededsetup-javaentries on master, stale per-commit CodeQL overlay databases, and the oldest CodeQL dependency cache. Open pull requests' caches were left alone. The repository now sits at 7.89 GB.🤖 Generated with Claude Code