Skip to content

Switch iotests to using Async QMP

John Snow qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest8 patches 8 repliesIn review
  2. v48 patches 5 repliesSuperseded
  3. v37 patches 11 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v217 patches19 repliesSuperseded
v115 patches35 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8python/machine: remove has_quit argumentpython/qemu/machine/machine.py tests/qemu-iotests/040 tests/qemu-iotests/218 +1 more+22 -230 replies
2/8python/machine: Handle QMP errors on close more meticulouslypython/qemu/machine/machine.py+42 -64 replies
3/8python/aqmp: Remove scary messagepython/qemu/aqmp/__init__.py+0 -120 replies
4/8iotests: Accommodate async QMP Exception classesscripts/simplebench/bench_block_job.py tests/qemu-iotests/tests/mirror-top-perms+5 -30 replies
5/8iotests: Conditionally silence certain AQMP errorstests/qemu-iotests/iotests.py tests/qemu-iotests/tests/mirror-top-perms+27 -50 replies
6/8iotests/300: avoid abnormal shutdown race conditiontests/qemu-iotests/300+5 -82 replies
7/8python/aqmp: Create sync QMP wrapper for iotestspython/qemu/aqmp/legacy.py+138 -00 replies
8/8python, iotests: replace qmp with aqmppython/qemu/machine/machine.py+6 -10 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHanna ReitzKevin Wolf
SeriesR-b
1/8R-b
2/8R-b
3/8A-b
4/8R-b
5/8R-b
6/8
7/8A-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/8] Switch iotests to using Async QMP

GitLab: https://gitlab.com/jsnow/qemu/-/commits/python-aqmp-iotest-wrapper
CI: https://gitlab.com/jsnow/qemu/-/pipelines/395925703

Hiya,

This series continues where the last two AQMP series left off and adds a synchronous 'legacy' wrapper around the new AQMP interface, then drops it straight into iotests to prove that AQMP is functional and totally cool and fine. The disruption and churn to iotests is pretty minimal.

In the event that a regression happens and I am not physically proximate to inflict damage upon, one may set the QEMU_PYTHON_LEGACY_QMP variable to any non-empty string as it pleases you to engage the QMP machinery you are used to.

V5:

006: Fixed a typing error. (Hanna)

V4:

006: Added to address a race condition in iotest 300.
(Thanks for the repro, Hanna)

V3: Near as we can tell, our immediate ancestral forebear.
V2: A distant dream, half-remembered.
V1: Apocrypha.

John Snow (8):
python/machine: remove has_quit argument python/machine: Handle QMP errors on close more meticulously python/aqmp: Remove scary message
iotests: Accommodate async QMP Exception classes
iotests: Conditionally silence certain AQMP errors iotests/300: avoid abnormal shutdown race condition python/aqmp: Create sync QMP wrapper for iotests python, iotests: replace qmp with aqmp

 python/qemu/aqmp/__init__.py              |  12 --
 python/qemu/aqmp/legacy.py                | 138 ++++++++++++++++++++++
 python/qemu/machine/machine.py            |  85 +++++++++----
 scripts/simplebench/bench_block_job.py    |   3 +-
 tests/qemu-iotests/040                    |   7 +-
 tests/qemu-iotests/218                    |   2 +-
 tests/qemu-iotests/255                    |   2 +-
 tests/qemu-iotests/300                    |  13 +-
 tests/qemu-iotests/iotests.py             |  20 +++-
 tests/qemu-iotests/tests/mirror-top-perms |  17 ++-
 10 files changed, 243 insertions(+), 56 deletions(-)
 create mode 100644 python/qemu/aqmp/legacy.py
Signature · 1 line
2.31.1