python3Packages.pyrate-limiter: disable tests that time out and/or fail under load
This commit is contained in:
@@ -47,6 +47,14 @@ buildPythonPackage rec {
|
||||
];
|
||||
};
|
||||
|
||||
# Show each test name and track the slowest
|
||||
# This helps with identifying bottlenecks in the test suite
|
||||
# that are causing the build to time out on Hydra.
|
||||
pytestFlags = [
|
||||
"--durations=10"
|
||||
"-vv"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
@@ -55,9 +63,16 @@ buildPythonPackage rec {
|
||||
]
|
||||
++ lib.flatten (lib.attrValues optional-dependencies);
|
||||
|
||||
disabledTests = [
|
||||
# hangs
|
||||
"test_limiter_01"
|
||||
disabledTestPaths = [
|
||||
# Slow: > 1.5 seconds/test run standalone on a fast machine
|
||||
# (Apple M3 Max with highest performance settings and 36GB RAM)
|
||||
# and/or hang under load
|
||||
# https://github.com/vutran1710/PyrateLimiter/issues/245
|
||||
# https://github.com/vutran1710/PyrateLimiter/issues/247
|
||||
"tests/test_bucket_all.py"
|
||||
"tests/test_bucket_factory.py"
|
||||
"tests/test_limiter.py"
|
||||
"tests/test_multiprocessing.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyrate_limiter" ];
|
||||
|
||||
Reference in New Issue
Block a user