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

Automatically prune the fetch cache after fetches #852

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

cjreynol
Copy link
Collaborator

@cjreynol cjreynol commented Jan 16, 2025

Keeps the fetch cache from growing unbounded.

Test: # populate cache if necessary
Test: cvd fetch --target_directory=/tmp/cvd/fetch_test
--default_build=12924704,12924909,12924919
Test: cvd cache info
Test: cvd fetch --target_directory=/tmp/cvd/fetch_test2
--default_build=12924921 --max_cache_size_GB=2
Test: # only prunes when caching is enabled
Test: cvd fetch --target_directory=/tmp/cvd/fetch_test3
--default_build=12924578 --max_cache_size_GB=0 --enable_caching=false
Test: cvd cache info

@cjreynol cjreynol self-assigned this Jan 16, 2025
@cjreynol cjreynol added the kokoro:run Run e2e tests. label Jan 16, 2025
@cjreynol cjreynol marked this pull request as ready for review January 16, 2025 01:42
@cjreynol cjreynol enabled auto-merge January 16, 2025 01:42
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Jan 16, 2025
@cjreynol cjreynol added the kokoro:run Run e2e tests. label Jan 16, 2025
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Jan 16, 2025
Keeps the fetch cache from growing unbounded.

Test: # populate cache if necessary
Test: cvd fetch --target_directory=/tmp/cvd/fetch_test
--default_build=12924704,12924909,12924919
Test: cvd cache info
Test: cvd fetch --target_directory=/tmp/cvd/fetch_test2
--default_build=12924921 --max_cache_size_GB=2
Test: # only prunes when caching is enabled
Test: cvd fetch --target_directory=/tmp/cvd/fetch_test3
--default_build=12924578 --max_cache_size_GB=0 --enable_caching=false
Test: cvd cache info
@cjreynol cjreynol added the kokoro:run Run e2e tests. label Jan 16, 2025
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Jan 16, 2025
@cjreynol cjreynol added this pull request to the merge queue Jan 16, 2025
Merged via the queue into google:main with commit 9c80e98 Jan 16, 2025
11 checks passed
@cjreynol cjreynol deleted the fetch_auto_prune branch January 16, 2025 04:44
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.

3 participants