From: Thomas Huth <thuth@redhat.com>
To: "Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
"Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: Re: [PATCH] meson: use thorough test setup as default
Date: Thu, 8 May 2025 12:05:32 +0200 [thread overview]
Message-ID: <13eda815-02a9-4bf3-8892-3225a27c0691@redhat.com> (raw)
In-Reply-To: <0657578e-3825-407b-9837-1e29717f94e2@linaro.org>
On 07/05/2025 20.45, Pierrick Bouvier wrote:
> On 5/7/25 12:39 AM, Thomas Huth wrote:
>>>>> Then I don't understand the previous argument from Thomas to not make
>>>>> thorough the default: "The thorough functional tests download a
>>>>> lot of assets from the internet, so if someone just runs "meson test"
>>>>> without further parameters, I think we should not trigger these
>>>>> downloads in that case". It's what precache-functional is doing.
>>>>
>>>> precache-functional is *only* called when you run "make check-functional",
>>>> i.e. when you know that you want to run the functional tests that might
>>>> download assets from the internet. It's not called when you run the normal
>>>> "make check".
>>>
>>> Are you sure ? If that's the case it was *not* my intention when i
>>> added precaching - I thought that "make check" would call
>>> "make check-functional" and thus trigger precaching ?
>>
>> "check-functional" is not part of the normal "check" target - on purpose
>> since we don't want to trigger downloads by surprise when people just run
>> "make check". That's also why we have separate "functional" CI jobs in the
>> gitlab CI, since otherwise this would be handled by the normal "check" jobs
>> already.
>>
>
> `make check` calls build/pyvenv/bin/meson test --no-rebuild -t 1, which
> triggers func-quick by default, triggering associated downloads, since
> QEMU_TEST_NO_DOWNLOAD=1 is not set for this target, except if I missed
> another hidden hack somewhere.
You missed the fact that the "quick" functional tests do not download any
assets :-)
I know it's confusing since the name of the suites rather indicate something
about the runtime of the tests and not about whether they trigger a download
or not, but the suite names are so deeply glued into the "mtest2make" logic
that I was not able to come up with a better solution. Maybe Paolo or some
other Meson expert could clean that up, but for the time being, for the
functional test we have:
- quick tests that can always run (also run during "make check")
- thorough tests that download assets from the internet (only run during
"make check-functional")
I tried to document it in docs/devel/testing/functional.rst in the "Asset
handling" section already, please have a look whether that's sufficient, or
whether you have some ideas how to improve the situation.
Thomas
next prev parent reply other threads:[~2025-05-08 10:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-03 20:18 [PATCH] meson: use thorough test setup as default Pierrick Bouvier
2025-05-05 6:00 ` Paolo Bonzini
2025-05-05 17:32 ` Pierrick Bouvier
2025-05-05 10:32 ` Thomas Huth
2025-05-05 17:46 ` Pierrick Bouvier
2025-05-06 9:33 ` Daniel P. Berrangé
2025-05-06 15:31 ` Pierrick Bouvier
2025-05-06 15:36 ` Daniel P. Berrangé
2025-05-06 17:12 ` Thomas Huth
2025-05-07 7:14 ` Daniel P. Berrangé
2025-05-07 7:39 ` Thomas Huth
2025-05-07 18:45 ` Pierrick Bouvier
2025-05-08 10:05 ` Thomas Huth [this message]
2025-05-08 20:20 ` Pierrick Bouvier
2025-05-06 9:36 ` Daniel P. Berrangé
2025-05-06 10:16 ` Thomas Huth
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=13eda815-02a9-4bf3-8892-3225a27c0691@redhat.com \
--to=thuth@redhat.com \
--cc=berrange@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
/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).