]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests: Evict stale files in the functional download cache after a while
authorThomas Huth <thuth@redhat.com>
Tue, 14 Oct 2025 08:34:24 +0000 (10:34 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 16 Oct 2025 15:44:32 +0000 (17:44 +0200)
commitdd10dbe61751dc85a4d84ffde73f341ab027eb73
tree4fa1c88df1779bcbfa410354382c05a637f71723
parentcb1379ce646e9f41b096c4d7590e558393e6e960
tests: Evict stale files in the functional download cache after a while

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. So add a script that looks at the time stamps
of the assets and removes them if they haven't been touched for more
than half of a year. Since there might also be some assets around that
have been added to the cache before we added the time stamp files,
assume a default time stamp that is close to the creation date of this
patch, so that we don't delete these files too early (so we still have
all assets around in case we have to bisect an issue in the recent past
of QEMU).

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20251014083424.103202-3-thuth@redhat.com>
MAINTAINERS
scripts/clean_functional_cache.py [new file with mode: 0755]
tests/Makefile.include