qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/6] Switch iotests to pyvenv
@ 2023-06-21  0:21 John Snow
  2023-06-21  0:21 ` [PATCH RFC 1/6] experiment: add mkvenv install John Snow
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: John Snow @ 2023-06-21  0:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, qemu-block, Beraldo Leal, Hanna Reitz,
	Alex Bennée, John Snow, Kevin Wolf, Cleber Rosa,
	Paolo Bonzini

Hi, this is ... a fairly incomplete series about trying to get iotests
to run out of the configure-time venv. I'm looking for some feedback, so
out to the list it goes.

Primarily, I'm having doubts about these points:

1) I think I need something like "mkvenv install" in the first patch,
   but mkvenv.py is getting pretty long...

2) Is there a way to optimize the speed for patch #2? Maybe installing
   this package can be skipped until it's needed, but that means that
   things like iotest's ./check might get complicated to support that.

3) I cheated quite a bit in patch 4 to use the correct Python to launch
   iotests, but I'm wondering if there's a nicer way to solve this
   more *completely*.

John Snow (6):
  experiment: add mkvenv install
  build, tests: Add qemu in-tree packages to pyvenv at configure time.
  iotests: get rid of '..' in path environment output
  iotests: use the correct python to run linters
  iotests: use pyvenv/bin/python3 to launch child test processes
  iotests: don't add qemu.git/python to PYTHONPATH

 configure                     | 31 +++++++++++++++++++++++++++
 python/scripts/mkvenv.py      | 40 +++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/linters.py |  2 +-
 tests/qemu-iotests/testenv.py | 21 ++++++++++++------
 4 files changed, 87 insertions(+), 7 deletions(-)

-- 
2.40.1




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-06-22 21:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-21  0:21 [PATCH RFC 0/6] Switch iotests to pyvenv John Snow
2023-06-21  0:21 ` [PATCH RFC 1/6] experiment: add mkvenv install John Snow
2023-06-21  0:21 ` [PATCH RFC 2/6] build, tests: Add qemu in-tree packages to pyvenv at configure time John Snow
2023-06-21  0:21 ` [PATCH RFC 3/6] iotests: get rid of '..' in path environment output John Snow
2023-06-21  0:21 ` [PATCH RFC 4/6] iotests: use the correct python to run linters John Snow
2023-06-21  0:21 ` [PATCH RFC 5/6] iotests: use pyvenv/bin/python3 to launch child test processes John Snow
2023-06-21  0:21 ` [PATCH RFC 6/6] iotests: don't add qemu.git/python to PYTHONPATH John Snow
2023-06-21  7:08 ` [PATCH RFC 0/6] Switch iotests to pyvenv Paolo Bonzini
2023-06-22  9:24   ` Paolo Bonzini
2023-06-22 21:03     ` John Snow
2023-06-22 21:04       ` Paolo Bonzini
2023-06-22 21:07         ` John Snow
2023-06-22 21:11           ` Paolo Bonzini
2023-06-22 21:18             ` John Snow
2023-06-22 21:57               ` Paolo Bonzini

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