Skip to content

python: 3.14 compatibility and python-qemu-qmp synchronization

John Snow qemu-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest19 patches 0 repliesNew
  2. v218 patches 16 repliesSuperseded
  3. v119 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19python: backport 'Change error classes to have better repr methods'python/qemu/qmp/error.py python/qemu/qmp/message.py python/qemu/qmp/protocol.py +1 more+29 -170 replies
2/19python: backport 'EventListener: add __repr__ method'python/qemu/qmp/events.py+15 -00 replies
3/19python: backport 'kick event queue on legacy event_pull()'python/qemu/qmp/legacy.py+3 -00 replies
4/19python: backport 'protocol: adjust logging name when changing client name'python/qemu/qmp/protocol.py+20 -40 replies
5/19python: backport 'drop Python3.6 workarounds'python/qemu/qmp/protocol.py python/qemu/qmp/qmp_tui.py python/qemu/qmp/util.py +1 more+17 -1190 replies
6/19python: backport 'Use @asynciocontextmanager'python/qemu/qmp/protocol.py+16 -190 replies
7/19python: backport 'qmp-shell: add common_parser()'python/qemu/qmp/qmp_shell.py+16 -190 replies
8/19python: backport 'feat: allow setting read buffer limit'python/qemu/qmp/protocol.py python/qemu/qmp/qmp_client.py+30 -130 replies
9/19python: backport 'make require() preserve async-ness'python/qemu/qmp/protocol.py+32 -210 replies
10/19python: backport 'qmp-shell-wrap: handle missing binary gracefully'python/qemu/qmp/qmp_shell.py+2 -00 replies
11/19python: backport 'qmp-tui: Do not crash if optional dependencies are not met'python/qemu/qmp/qmp_tui.py+15 -40 replies
12/19python: backport 'Remove deprecated get_event_loop calls'python/qemu/qmp/legacy.py python/qemu/qmp/qmp_tui.py python/tests/protocol.py+15 -30 replies
13/19python: backport 'avoid creating additional event loops per thread'python/qemu/qmp/legacy.py python/qemu/qmp/qmp_tui.py python/qemu/qmp/util.py+57 -260 replies
14/19python: synchronize qemu.qmp documentationpython/qemu/qmp/__init__.py python/qemu/qmp/events.py python/qemu/qmp/legacy.py +6 more+264 -870 replies
15/19iotests: drop compat for old version context managertests/qemu-iotests/testenv.py tests/qemu-iotests/testrunner.py+4 -120 replies
16/19python: ensure QEMUQtestProtocol closes its socketpython/qemu/machine/qtest.py+2 -00 replies
17/19iotests/147: ensure temporary sockets are closed before exitingtests/qemu-iotests/147+1 -00 replies
18/19iotests/151: ensure subprocesses are cleaned uptests/qemu-iotests/151+5 -00 replies
19/19iotests/check: always enable all python warningstests/qemu-iotests/check+4 -00 replies

Reviews trailers per patch

13 of 19 patches have a Reviewed-by or Acked-by.

PatchDaniel P. Berrangé
1/19R-b
2/19R-b
3/19R-b
4/19R-b
5/19R-b
6/19R-b
7/19
8/19R-b
9/19R-b
10/19R-b
11/19R-b
12/19R-b
13/19R-b
14/19R-b
15/19
16/19
17/19
18/19
19/19

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

Read the v3 thread

Cover letter [PATCH v3 00/19] python: 3.14 compatibility and python-qemu-qmp synchronization

Hi, this series aims to support Python 3.14; a large part of how it achieves this is by backporting various changes that have been made to the python-qemu-qmp standalone library to ensure that our in-tree version is very nearly byte identical to the standalone version.

Several of Dan's patches are appended here which remove all deprecated behavior from our test suite and enables printing warnings whenever deprecated behavior is used so we will be able to catch it more readily in the future.

Following this series, I intend to drop the QMP library from the qemu tree once and for all so that they do not desynchronize again. The standalone library needs to drop avocado-framework and cut a v0.0.4 release first, but it's currently my top priority to end this embarrassing patch of duplicated code and maintenance.

Reviewers: try applying this series and using diff to compare the qemu.git/python/qemu/qmp and python-qemu-qmp.git/qemu/qmp directories; you should find only five differences: three instances of LICENSE text being slightly different (pointing to LICENSE vs COPYING) and two instances of a pylint ignore that are not needed in qemu.git due to slightly different linter configuration in qemu.git/python/setup.cfg.

If further changes are warranted, it is my preference to try to "upstream" them first before backporting them here instead of trying to amend this series.

V2: Squashed two commits in order to prevent regressions in qemu.git.

V3: Unsquashed a backport into individual backports,
Amended commit messages to specify where the cherry-picks are from Added R-B and S-o-B by Dan to various patches

--js

Adam Dorsey (1):
python: backport 'feat: allow setting read buffer limit'

Daniel P. Berrangé (5):
iotests: drop compat for old version context manager
python: ensure QEMUQtestProtocol closes its socket iotests/147: ensure temporary sockets are closed before exiting iotests/151: ensure subprocesses are cleaned up iotests/check: always enable all python warnings

John Snow (13):
python: backport 'Change error classes to have better repr methods'
python: backport 'EventListener: add __repr__ method'
python: backport 'kick event queue on legacy event_pull()'
python: backport 'protocol: adjust logging name when changing client
name'
python: backport 'drop Python3.6 workarounds'
python: backport 'Use @asynciocontextmanager'
python: backport 'qmp-shell: add common_parser()'
python: backport 'make require() preserve async-ness'
python: backport 'qmp-shell-wrap: handle missing binary gracefully'
python: backport 'qmp-tui: Do not crash if optional dependencies are
not met'
python: backport 'Remove deprecated get_event_loop calls'
python: backport 'avoid creating additional event loops per thread'
python: synchronize qemu.qmp documentation

 python/qemu/machine/qtest.py     |   2 +
 python/qemu/qmp/__init__.py      |   3 +-
 python/qemu/qmp/error.py         |   7 +-
 python/qemu/qmp/events.py        |  50 ++++++--
 python/qemu/qmp/legacy.py        |  46 +++++---
 python/qemu/qmp/message.py       |  22 ++--
 python/qemu/qmp/models.py        |   8 +-
 python/qemu/qmp/protocol.py      | 194 +++++++++++++++++++------------
 python/qemu/qmp/qmp_client.py    | 155 +++++++++++++++++-------
 python/qemu/qmp/qmp_shell.py     | 165 ++++++++++++++++++--------
 python/qemu/qmp/qmp_tui.py       |  30 +++--
 python/qemu/qmp/util.py          | 143 ++++++-----------------
 python/tests/protocol.py         |  10 +-
 tests/qemu-iotests/147           |   1 +
 tests/qemu-iotests/151           |   5 +
 tests/qemu-iotests/check         |   4 +
 tests/qemu-iotests/testenv.py    |   7 +-
 tests/qemu-iotests/testrunner.py |   9 +-
 18 files changed, 532 insertions(+), 329 deletions(-)
Signature · 1 line
2.50.1