* [PATCH] scripts/clean_functional_cache: Remove also .stamp files
@ 2026-08-14 12:26 Thomas Huth
2026-08-14 12:34 ` Daniel P. Berrangé
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Huth @ 2026-08-14 12:26 UTC (permalink / raw)
To: qemu-devel, Daniel P. Berrangé
Cc: Philippe Mathieu-Daudé, qemu-trivial
The cache cleanup script already successfully removes the assets
that are unused since more than 6 months, but it forgot to delete
the corresponding timestamp files, too.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
scripts/clean_functional_cache.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/clean_functional_cache.py b/scripts/clean_functional_cache.py
index c3370ffbb87..1ff98c7606d 100755
--- a/scripts/clean_functional_cache.py
+++ b/scripts/clean_functional_cache.py
@@ -28,8 +28,9 @@
if len(file.name) != 64:
continue
+ stampfile = file.with_suffix(".stamp")
try:
- timestamp = int(file.with_suffix(".stamp").read_text())
+ timestamp = int(stampfile.read_text())
except FileNotFoundError:
# Assume it's an old file that was already in the cache before we
# added the code for evicting stale assets. Use the release date
@@ -43,3 +44,4 @@
print(f"Removing {cache_dir}/{file.name}.")
file.chmod(stat.S_IWRITE)
file.unlink()
+ stampfile.unlink()
--
2.55.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] scripts/clean_functional_cache: Remove also .stamp files
2026-08-14 12:26 [PATCH] scripts/clean_functional_cache: Remove also .stamp files Thomas Huth
@ 2026-08-14 12:34 ` Daniel P. Berrangé
0 siblings, 0 replies; 2+ messages in thread
From: Daniel P. Berrangé @ 2026-08-14 12:34 UTC (permalink / raw)
To: Thomas Huth; +Cc: qemu-devel, Philippe Mathieu-Daudé, qemu-trivial
On Fri, Aug 14, 2026 at 02:26:43PM +0200, Thomas Huth wrote:
> The cache cleanup script already successfully removes the assets
> that are unused since more than 6 months, but it forgot to delete
> the corresponding timestamp files, too.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> scripts/clean_functional_cache.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-14 12:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-14 12:26 [PATCH] scripts/clean_functional_cache: Remove also .stamp files Thomas Huth
2026-08-14 12:34 ` Daniel P. Berrangé
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.