CI: Reduce Actions cache pressure in ResInsightWithCache - #14586
Merged
Conversation
Only save the buildcache from the default branch. GitHub scopes cache writes to the current ref, so a cache saved from a feature branch or PR is invisible to every other branch while still counting against the 10 GB per-repository quota and evicting the shared caches on the default branch. Disable unity build for all configurations. Unity blobs invalidate on any change to the sources they bundle, which defeats buildcache reuse and fills the cache with objects that are unlikely to be hit again.
magnesj
force-pushed
the
ci-cache-quota-gate-saves
branch
from
August 22, 2026 09:57
967068a to
0276a20
Compare
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.
Two changes to
ResInsightWithCache.ymlaimed at the GitHub Actions cache quota for the repository.Only save the buildcache from the default branch. GitHub scopes cache writes to the current ref, and a branch can read only its own scope plus the default branch. A cache saved from a feature branch or PR is therefore invisible to every other branch, yet it still counts against the 10 GB per-repository quota and evicts the shared caches on the default branch.
Disable unity build for all configurations. Unity blobs invalidate whenever any of the sources they bundle change, which defeats buildcache reuse and fills the cache with objects unlikely to be hit again. This matches
ResInsightMac.yml,rhel8-package.ymlandrhel8-unit-tests.yml, which already build with unity off.The
restore-keysprefix fallback is left as is, so branches keep restoring the most recent cache for their configuration. The nightly scheduled run on the default branch remains the producer of the shared caches.