This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
The following commit(s) were added to refs/heads/trunk by this push:
new 85a16ecee Use longer timeout for micro benchmarks.
85a16ecee is described below
commit 85a16ecee5c4de93d04381878665e3412c2ebbda
Author: Tomaz Muraus <[email protected]>
AuthorDate: Fri Dec 9 00:13:59 2022 +0100
Use longer timeout for micro benchmarks.
---
pytest.ini | 3 +--
tox.ini | 5 ++---
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/pytest.ini b/pytest.ini
index 04583452e..cdecf5329 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -2,8 +2,7 @@
python_classes=*Test
testpaths=libcloud/test
# Show slowest 10 tests in the output
-# for pytest-xdist, we want to distribute tests by file
-addopts = --durations=10 --dist loadfile --timeout=15
+addopts = --durations=10
# Ignore UserWarning's
filterwarnings =
ignore::UserWarning
diff --git a/tox.ini b/tox.ini
index 9573e7d9f..19e7d3660 100644
--- a/tox.ini
+++ b/tox.ini
@@ -30,8 +30,7 @@ setenv =
# To avoid per-test function process safety issues we run all tests in a single
# file in the same worker process.
# python setup.py test
-# NOTE: tee-sys is not supported by pytest which still supports Python 3.5
-# pytest -rsx -vvv -o log_cli=True --durations=10 -n auto --dist loadfile
+# for pytest-xdist, we want to distribute tests by file aka --dist loadfile
commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
pytest -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*"
@@ -370,7 +369,7 @@ commands =
[testenv:micro-benchmarks]
commands =
cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
- pytest -s -v --benchmark-only --benchmark-name=short
--benchmark-columns=min,max,mean,stddev,median,ops,rounds
--benchmark-histogram=benchmark_histograms/benchmark
--benchmark-group-by=group,param:sort_objects
libcloud/test/benchmarks/test_list_objects_filtering_performance.py
+ pytest -s -v --timeout 60 --benchmark-only --benchmark-name=short
--benchmark-columns=min,max,mean,stddev,median,ops,rounds
--benchmark-histogram=benchmark_histograms/benchmark
--benchmark-group-by=group,param:sort_objects
libcloud/test/benchmarks/test_list_objects_filtering_performance.py
[testenv:import-timings]
setenv =