Skip to content

iotests: update environment and linting configuration

John Snow qemu-devel 2 versions Applied

Status from this message: Thanks, applied to the block branch (without patch 2).

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 6 repliesApplied
  2. v16 patches 14 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6iotests: add 'qemu' package location to PYTHONPATH in testenvtests/qemu-iotests/235 tests/qemu-iotests/297 tests/qemu-iotests/300 +3 more+15 -240 replies
2/6iotests: add warning for rogue 'qemu' packagestests/qemu-iotests/testenv.py+24 -04 replies
3/6iotests/linters: check mypy files all at oncetests/qemu-iotests/297+20 -240 replies
4/6iotests/mirror-top-perms: Adjust importstests/qemu-iotests/tests/mirror-top-perms+4 -30 replies
5/6iotests/migrate-bitmaps-test: delinttests/qemu-iotests/tests/migrate-bitmaps-test+28 -220 replies
6/6iotests: Update for pylint 2.11.1tests/qemu-iotests/pylintrc tests/qemu-iotests/testrunner.py+9 -40 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchHanna ReitzPhilippe Mathieu-DaudéVladimir Sementsov-OgievskiyKevin Wolf
1/6R-b R-b R-b
2/6
3/6R-b R-b R-b R-b
4/6R-b R-b R-b R-b
5/6R-b R-b R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/6] iotests: update environment and linting configuration

GitLab: https://gitlab.com/jsnow/qemu/-/commits/python-package-iotest-pt1
CI: https://gitlab.com/jsnow/qemu/-/pipelines/376236687

This series partially supersedes:
[PATCH v3 00/16] python/iotests: Run iotest linters during Python CI'

Howdy, this is good stuff we want even if we aren't yet in agreement about the best way to run iotest 297 from CI.

- Update linting config to tolerate pylint 2.11.1
- Eliminate sys.path hacking in individual test files
- make mypy execution in test 297 faster

The rest of the actual "run at CI time" stuff can get handled separately and later pending some discussion on the other series.

V2:

001/6:[0011] [FC] 'iotests: add 'qemu' package location to PYTHONPATH in testenv' 002/6:[0025] [FC] 'iotests: add warning for rogue 'qemu' packages'

- Squashed in a small optimization from Vladimir to 001, kept R-Bs.
- Fixed the package detection logic to not panic if it can't find 'qemu' at all (kwolf)
- Updated commit messages for the first two patches.

--js

John Snow (6):
iotests: add 'qemu' package location to PYTHONPATH in testenv
iotests: add warning for rogue 'qemu' packages iotests/linters: check mypy files all at once iotests/mirror-top-perms: Adjust imports iotests/migrate-bitmaps-test: delint
iotests: Update for pylint 2.11.1

 tests/qemu-iotests/235                        |  2 -
 tests/qemu-iotests/297                        | 50 ++++++++-----------
 tests/qemu-iotests/300                        |  7 ++-
 tests/qemu-iotests/iotests.py                 |  2 -
 tests/qemu-iotests/pylintrc                   |  6 ++-
 tests/qemu-iotests/testenv.py                 | 39 ++++++++++++---
 tests/qemu-iotests/testrunner.py              |  7 +--
 tests/qemu-iotests/tests/migrate-bitmaps-test | 50 +++++++++++--------
 tests/qemu-iotests/tests/mirror-top-perms     | 12 ++---
 9 files changed, 99 insertions(+), 76 deletions(-)
Signature · 1 line
2.31.1