You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2024/04/15 19:50:36 UTC
(libcloud) branch dependabot/pip/pytest-8.0.2 updated: Try using loadscope pytest-xdist test distribution method to see if this helps with a weird race we started to see more often with latest version of pytest.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch dependabot/pip/pytest-8.0.2
in repository https://gitbox.apache.org/repos/asf/libcloud.git
The following commit(s) were added to refs/heads/dependabot/pip/pytest-8.0.2 by this push:
new 20ae73156 Try using loadscope pytest-xdist test distribution method to see if this helps with a weird race we started to see more often with latest version of pytest.
20ae73156 is described below
commit 20ae7315661fee522d332665a48f7868e788569c
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Mon Apr 15 21:50:06 2024 +0200
Try using loadscope pytest-xdist test distribution method to see if this
helps with a weird race we started to see more often with latest version
of pytest.
---
tox.ini | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tox.ini b/tox.ini
index 9dcc2f406..43942453b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -36,9 +36,9 @@ setenv =
# NOTE: By default we run tests on CI in parallel to speed up the build
# To avoid per-test function process safety issues we run all tests in a single
# file in the same worker process.
-# for pytest-xdist, we want to distribute tests by file aka --dist loadfile
+# for pytest-xdist, we want to distribute tests by file (class + method) aka --dist loadscope
commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
- pytest --color=yes -rsx -vvv --capture=tee-sys -o log_cli=True --durations=10 --timeout=15 -n auto --dist loadfile --ignore libcloud/test/benchmarks/ --ignore-glob "*test_list_objects_filtering_performance*"
+ pytest --color=yes -rsx -vvv --capture=tee-sys -o log_cli=True --durations=10 --timeout=15 -n auto --dist loadscope --ignore libcloud/test/benchmarks/ --ignore-glob "*test_list_objects_filtering_performance*"
[testenv:py3.8-dist]
# Verify library installs without any dependencies when using python setup.py