Merged
Conversation
Our caches are rather big (nearly all of the total quota). Unless the cache was built from the default branch, it can only be used from the same branch as the run that pushed it. This means that we end up pushing lots of cache that can never be reused, causing the actually useful ones (i.e. the caches from the default branch) to be evicted due to space. Fix this by using explicit cache save and restore, and then limiting the save to only apply on the main branch. Signed-off-by: Mark Yen <mark.yen@suse.com>
7909c77 to
2e40098
Compare
Nino-K
approved these changes
Dec 8, 2025
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.
Our caches are rather big (nearly all of the total quota). Unless the cache was built from the default branch, it can only be used from the same branch as the run that pushed it. This means that we end up pushing lots of cache that can never be reused, causing the actually useful ones (i.e. the caches from the default branch) to be evicted due to space.
Fix this by using explicit cache save and restore, and then limiting the save to only apply on the main branch.
This depends on #5 because of merge conflicts.