From: Thomas Huth <thuth@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: "Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Beraldo Leal" <bleal@redhat.com>,
"Cleber Rosa" <crosa@redhat.com>,
"Daniel P . Berrangé" <berrange@redhat.com>
Subject: Re: [PATCH-for-8.2? v2] tests/avocado: Make fetch_asset() unconditionally require a crypto hash
Date: Thu, 16 Nov 2023 07:10:48 +0100 [thread overview]
Message-ID: <66ae8af2-6bc0-4c08-9e7b-1b0fa84d4166@redhat.com> (raw)
In-Reply-To: <20231115205149.90765-1-philmd@linaro.org>
On 15/11/2023 21.51, Philippe Mathieu-Daudé wrote:
> In a perfect world we'd have reproducible tests,
> but then we'd be sure we run the same binaries.
> If a binary artifact isn't hashed, we have no idea
> what we are running. Therefore enforce hashing for
> all our artifacts.
>
> With this change, unhashed artifacts produce:
>
> $ avocado run tests/avocado/multiprocess.py
> (1/2) tests/avocado/multiprocess.py:Multiprocess.test_multiprocess_x86_64:
> ERROR: QemuBaseTest.fetch_asset() missing 1 required positional argument: 'asset_hash' (0.19 s)
>
> Inspired-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> Based-on: <20231115145852.494052-1-thuth@redhat.com>
> "tests/avocado/multiprocess: Add asset hashes to silence warnings"
> Based-on: <20231114143531.291820-1-thuth@redhat.com>
> "tests/avocado/intel_iommu: Add asset hashes to avoid warnings"
> Supersedes: <20231115153247.89486-1-philmd@linaro.org>
>
> v2: Fixed type in subject (Alex)
> ---
> tests/avocado/avocado_qemu/__init__.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/avocado/avocado_qemu/__init__.py b/tests/avocado/avocado_qemu/__init__.py
> index d71e989db6..304c428168 100644
> --- a/tests/avocado/avocado_qemu/__init__.py
> +++ b/tests/avocado/avocado_qemu/__init__.py
> @@ -254,7 +254,7 @@ def setUp(self, bin_prefix):
> self.cancel("No QEMU binary defined or found in the build tree")
>
> def fetch_asset(self, name,
> - asset_hash=None, algorithm=None,
> + asset_hash, algorithm=None,
> locations=None, expire=None,
> find_only=False, cancel_on_missing=True):
> return super().fetch_asset(name,
Thanks, queued it now!
Thomas
prev parent reply other threads:[~2023-11-16 6:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-15 20:51 [PATCH-for-8.2? v2] tests/avocado: Make fetch_asset() unconditionally require a crypto hash Philippe Mathieu-Daudé
2023-11-16 6:10 ` Thomas Huth [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=66ae8af2-6bc0-4c08-9e7b-1b0fa84d4166@redhat.com \
--to=thuth@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=berrange@redhat.com \
--cc=bleal@redhat.com \
--cc=crosa@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=wainersm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).