Skip to content

CI: Reduce Actions cache pressure in ResInsightWithCache - #14586

Merged
magnesj merged 1 commit into
OPM:devfrom
magnesj:ci-cache-quota-gate-saves
Aug 22, 2026
Merged

CI: Reduce Actions cache pressure in ResInsightWithCache#14586
magnesj merged 1 commit into
OPM:devfrom
magnesj:ci-cache-quota-gate-saves

Conversation

@magnesj

@magnesj magnesj commented Aug 22, 2026

Copy link
Copy Markdown
Member

Two changes to ResInsightWithCache.yml aimed 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.yml and rhel8-unit-tests.yml, which already build with unity off.

The restore-keys prefix 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.

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
magnesj force-pushed the ci-cache-quota-gate-saves branch from 967068a to 0276a20 Compare August 22, 2026 09:57
@magnesj
magnesj merged commit abefc17 into OPM:dev Aug 22, 2026
9 checks passed
@magnesj
magnesj deleted the ci-cache-quota-gate-saves branch August 22, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant