[PATCH 0/2] Clean up the functional download cache after some months

Thomas Huth posted 2 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251010093244.807544-1-thuth@redhat.com
Maintainers: John Snow <jsnow@redhat.com>, Cleber Rosa <crosa@redhat.com>, Thomas Huth <thuth@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, "Daniel P. Berrangé" <berrange@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>
There is a newer version of this series
MAINTAINERS                         |  1 +
scripts/clean_functional_cache.py   | 47 +++++++++++++++++++++++++++++
tests/Makefile.include              |  1 +
tests/functional/qemu_test/asset.py |  8 +++++
4 files changed, 57 insertions(+)
create mode 100755 scripts/clean_functional_cache.py
[PATCH 0/2] Clean up the functional download cache after some months
Posted by Thomas Huth 1 month ago
The download cache of the functional tests is currently only growing.
But sometimes tests get removed or changed to use different assets,
thus we should clean up the stale old assets after a while when they
are not in use anymore.

This little patch series now introduces time stamps for the assets in
the cache (first patch) that we update during each test run, so we can
check these time stamps regularly and evict stale assets after half
of a year not being used anymore (that should be enough time to still
keep the assets around for a while in case you want to diagnose a
problem that is still some months old).

Thomas Huth (2):
  tests/functional: Set current time stamp of assets when using them
  tests: Evict stale files in the functional download cache after a
    while

 MAINTAINERS                         |  1 +
 scripts/clean_functional_cache.py   | 47 +++++++++++++++++++++++++++++
 tests/Makefile.include              |  1 +
 tests/functional/qemu_test/asset.py |  8 +++++
 4 files changed, 57 insertions(+)
 create mode 100755 scripts/clean_functional_cache.py

-- 
2.51.0