Skip to content

Clean up the functional download cache after some months

Thomas Huth qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Simplify the code in _save_time_stamp() (thanks, Daniel!)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tests/functional: Set current time stamp of assets when using themtests/functional/qemu_test/asset.py+13 -01 reply
2/2tests: Evict stale files in the functional download cache after a whileMAINTAINERS scripts/clean_functional_cache.py tests/Makefile.include+47 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDaniel P. Berrangé
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

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

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).

v3:
- Simplify the code in _save_time_stamp() (thanks, Daniel!)

v2:
- Add some wordings to the 1st patch why we cannot use mtime/atime here
- Use functions from Path object instead from "os" (thanks to Daniel!)

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   | 45 +++++++++++++++++++++++++++++
 tests/Makefile.include              |  1 +
 tests/functional/qemu_test/asset.py | 13 +++++++++
 4 files changed, 60 insertions(+)
 create mode 100755 scripts/clean_functional_cache.py
Signature · 1 line
2.51.0