This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 438f980854 Increase timeout for Virtualenv Operator tests (#35446)
438f980854 is described below
commit 438f980854e602b3db773a640e9f07c5e130db17
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Nov 4 23:30:50 2023 +0100
Increase timeout for Virtualenv Operator tests (#35446)
The tests for VirtualenvOperator (Python/BranchPython) are sometimes
taking more than 60 seconds when executing in parallel to other
tests - this happens occasionally when the venv is not yet cached
so it is far less often than before speed improvements, yet it
still happens.
Increasing the timeout to 120 seconds from 60 should solve the
problem as usually those failing tests barely exceed the 60 seconds
---
tests/operators/test_python.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/operators/test_python.py b/tests/operators/test_python.py
index 1e1f7ec0df..06be8c03a3 100644
--- a/tests/operators/test_python.py
+++ b/tests/operators/test_python.py
@@ -882,6 +882,7 @@ venv_cache_path = tempfile.mkdtemp(prefix="venv_cache_path")
# when venv tests are run in parallel to other test they create new processes
and this might take
# quite some time in shared docker environment and get some contention even
between different containers
# therefore we have to extend timeouts for those tests
[email protected]_timeout(120)
@pytest.mark.virtualenv_operator
class TestPythonVirtualenvOperator(BaseTestPythonVirtualenvOperator):
opcls = PythonVirtualenvOperator
@@ -1377,6 +1378,9 @@ class
BaseTestBranchPythonVirtualenvOperator(BaseTestPythonVirtualenvOperator):
# when venv tests are run in parallel to other test they create new processes
and this might take
# quite some time in shared docker environment and get some contention even
between different containers
# therefore we have to extend timeouts for those tests
+
+
[email protected]_timeout(120)
@pytest.mark.virtualenv_operator
class
TestBranchPythonVirtualenvOperator(BaseTestBranchPythonVirtualenvOperator):
opcls = BranchPythonVirtualenvOperator