Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Periodically clean bazel cache on the CI #42

Merged
merged 8 commits into from
Jan 5, 2024

Conversation

sasa-tomic
Copy link
Member

@sasa-tomic sasa-tomic commented Jan 5, 2024

This pull request adds periodic cleaning of bazel cache.

It will run on every PR but will only delete the cache once it's older than 7 days.

We need this because bazel does not clear old cache entries, so the CI cache would try to grow indefinitely until it crosses 10GB, at which point it would stop uploading / refreshing completely.

@sasa-tomic sasa-tomic requested a review from a team as a code owner January 5, 2024 13:27
@sasa-tomic sasa-tomic changed the title Add script for cleaning old bazel cache entries Periodically clean bazel cache on the CI Jan 5, 2024
@sasa-tomic sasa-tomic merged commit fb8ca73 into main Jan 5, 2024
3 checks passed
@sasa-tomic sasa-tomic deleted the sat-clean-bazel-cache-script branch January 5, 2024 17:20
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.

2 participants