python/aqmp: improve support for device-crash-test
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | python/aqmp: Fix disconnect during capabilities negotiationpython/ | +13 | 0 replies | |
| 2/5 | python/aqmp: fix ConnectError string methodpython/ | +5 | 0 replies | |
| 3/5 | scripts/device-crash-test: simplify Exception handlingscripts/ | +2 | 0 replies | |
| 4/5 | scripts/device-crash-test: don't emit AQMP connection errors to stdoutscripts/ | +6 | 0 replies | |
| 5/5 | scripts/device-crash-test: hide tracebacks for QMP connect errorsscripts/ | +18 | 0 replies |
Reviews trailers per patch
None of the 5 patches has a Reviewed-by or Acked-by.
| Patch | Thomas Huth |
|---|---|
| Series | T-b |
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/5] python/aqmp: improve support for device-crash-test
When I switched machine.py over to using AQMP, I caused a regression in device-crash-test that caused many spurious errors to be printed during the test, obscuring real test failure cases.
This series fixes the vast majority of false positives, though there is one remaining bug in machine.py itself that would affect both A/QMP. Rarely, when QMP fails to accept a connection from the server, machine.py may enter the teardown phase quickly enough such that we do not yet have an exitcode from the VM process. In these cases, device-crash-test presumes there to be a more serious failure. That issue is going to take slightly longer to fix and test, so I am instead offering the majority of fixes now.
In the meantime, switching over to the legacy QMP module is possible by setting the environment variable 'QEMU_PYTHON_LEGACY_QMP' to '1' (or any non-empty string).
John Snow (5):
python/aqmp: Fix disconnect during capabilities negotiation python/aqmp: fix ConnectError string method scripts/device-crash-test: simplify Exception handling scripts/device-crash-test: don't emit AQMP connection errors to stdout scripts/device-crash-test: hide tracebacks for QMP connect errors
python/qemu/aqmp/protocol.py | 24 ++++++++++++++++++------ scripts/device-crash-test | 33 +++++++++++++++++++++++++-------- 2 files changed, 43 insertions(+), 14 deletions(-)
Signature · 1 line
2.31.1