* [PATCH] scripts: Allow sha512 in clean_functional_cache.py, too
@ 2026-01-20 12:18 Thomas Huth
2026-01-20 13:02 ` Daniel P. Berrangé
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Huth @ 2026-01-20 12:18 UTC (permalink / raw)
To: qemu-devel, Daniel P. Berrangé
Cc: John Snow, Philippe Mathieu-Daudé
From: Thomas Huth <thuth@redhat.com>
The functional testing frameworks also supports assets that are
identified by their sha512 checksum (instead of only using sha25),
and at least one of the tests (tests/functional/ppc64/test_fadump.py)
is already using such a checksum, so adjust the clean_functional_cache
script to support these checksums, too.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
scripts/clean_functional_cache.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/clean_functional_cache.py b/scripts/clean_functional_cache.py
index c3370ffbb87..f0342b4b438 100755
--- a/scripts/clean_functional_cache.py
+++ b/scripts/clean_functional_cache.py
@@ -24,8 +24,8 @@
os.chdir(cache_dir)
for file in cache_dir.iterdir():
- # Only consider the files that use a sha256 as filename:
- if len(file.name) != 64:
+ # Only consider the files that use a sha256 or sha512 as filename:
+ if len(file.name) != 64 and len(file.name) != 128:
continue
try:
--
2.52.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] scripts: Allow sha512 in clean_functional_cache.py, too
2026-01-20 12:18 [PATCH] scripts: Allow sha512 in clean_functional_cache.py, too Thomas Huth
@ 2026-01-20 13:02 ` Daniel P. Berrangé
2026-01-20 14:10 ` Thomas Huth
0 siblings, 1 reply; 4+ messages in thread
From: Daniel P. Berrangé @ 2026-01-20 13:02 UTC (permalink / raw)
To: Thomas Huth; +Cc: qemu-devel, John Snow, Philippe Mathieu-Daudé
On Tue, Jan 20, 2026 at 01:18:49PM +0100, Thomas Huth wrote:
> From: Thomas Huth <thuth@redhat.com>
>
> The functional testing frameworks also supports assets that are
> identified by their sha512 checksum (instead of only using sha25),
> and at least one of the tests (tests/functional/ppc64/test_fadump.py)
> is already using such a checksum, so adjust the clean_functional_cache
> script to support these checksums, too.
I wrote this code to match what we had in Avocado, but now I'm really
struggling to justify why we should choose different checksum algorithms
per asset. With only 1 test diverging from sha256, I'd rather we just
dropped sha512 support
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> scripts/clean_functional_cache.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/clean_functional_cache.py b/scripts/clean_functional_cache.py
> index c3370ffbb87..f0342b4b438 100755
> --- a/scripts/clean_functional_cache.py
> +++ b/scripts/clean_functional_cache.py
> @@ -24,8 +24,8 @@
> os.chdir(cache_dir)
>
> for file in cache_dir.iterdir():
> - # Only consider the files that use a sha256 as filename:
> - if len(file.name) != 64:
> + # Only consider the files that use a sha256 or sha512 as filename:
> + if len(file.name) != 64 and len(file.name) != 128:
> continue
>
> try:
> --
> 2.52.0
>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] scripts: Allow sha512 in clean_functional_cache.py, too
2026-01-20 13:02 ` Daniel P. Berrangé
@ 2026-01-20 14:10 ` Thomas Huth
2026-01-20 14:44 ` Daniel P. Berrangé
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Huth @ 2026-01-20 14:10 UTC (permalink / raw)
To: Daniel P. Berrangé
Cc: qemu-devel, John Snow, Philippe Mathieu-Daudé
On 20/01/2026 14.02, Daniel P. Berrangé wrote:
> On Tue, Jan 20, 2026 at 01:18:49PM +0100, Thomas Huth wrote:
>> From: Thomas Huth <thuth@redhat.com>
>>
>> The functional testing frameworks also supports assets that are
>> identified by their sha512 checksum (instead of only using sha25),
>> and at least one of the tests (tests/functional/ppc64/test_fadump.py)
>> is already using such a checksum, so adjust the clean_functional_cache
>> script to support these checksums, too.
>
> I wrote this code to match what we had in Avocado, but now I'm really
> struggling to justify why we should choose different checksum algorithms
> per asset. With only 1 test diverging from sha256, I'd rather we just
> dropped sha512 support
Fine for me, too ... could you suggest a patch, or want me to do it?
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] scripts: Allow sha512 in clean_functional_cache.py, too
2026-01-20 14:10 ` Thomas Huth
@ 2026-01-20 14:44 ` Daniel P. Berrangé
0 siblings, 0 replies; 4+ messages in thread
From: Daniel P. Berrangé @ 2026-01-20 14:44 UTC (permalink / raw)
To: Thomas Huth; +Cc: qemu-devel, John Snow, Philippe Mathieu-Daudé
On Tue, Jan 20, 2026 at 03:10:34PM +0100, Thomas Huth wrote:
> On 20/01/2026 14.02, Daniel P. Berrangé wrote:
> > On Tue, Jan 20, 2026 at 01:18:49PM +0100, Thomas Huth wrote:
> > > From: Thomas Huth <thuth@redhat.com>
> > >
> > > The functional testing frameworks also supports assets that are
> > > identified by their sha512 checksum (instead of only using sha25),
> > > and at least one of the tests (tests/functional/ppc64/test_fadump.py)
> > > is already using such a checksum, so adjust the clean_functional_cache
> > > script to support these checksums, too.
> >
> > I wrote this code to match what we had in Avocado, but now I'm really
> > struggling to justify why we should choose different checksum algorithms
> > per asset. With only 1 test diverging from sha256, I'd rather we just
> > dropped sha512 support
>
> Fine for me, too ... could you suggest a patch, or want me to do it?
I'll let you do it
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-20 14:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-20 12:18 [PATCH] scripts: Allow sha512 in clean_functional_cache.py, too Thomas Huth
2026-01-20 13:02 ` Daniel P. Berrangé
2026-01-20 14:10 ` Thomas Huth
2026-01-20 14:44 ` 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.