]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/tox: run pytest in parallel 69603/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Thu, 18 Jun 2026 19:06:06 +0000 (03:06 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Fri, 19 Jun 2026 15:08:37 +0000 (23:08 +0800)
commit2aabf864f3140c92cbdb4ef0606cc6f6dec59134
tree6faacd8c28972e04a1ca26b4fe2b7e828dae16fa
parent0bdeb61ac7f992113cb42035a2f0e18dca286121
mgr/tox: run pytest in parallel

The py3 and coverage tox environments run the full mgr pytest suite
serially, which makes run-tox-mgr the longest test in CI. Add
pytest-xdist and pass `-n auto` to both so the suite is distributed
across the available CPUs.

pytest-xdist is constrained to <2 to stay compatible with the pinned
pytest-cov. Running in parallel also surfaced a hard-coded port in
cephadm's test_node_proxy, which now allocates an ephemeral port per
process.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/pybind/mgr/cephadm/tests/test_node_proxy.py
src/pybind/mgr/requirements.txt
src/pybind/mgr/tox.ini