You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test_isolate_from_socket_default_timeout fails on SPARC due to timeout.
$ nosetests tests/tpool_test.py
.............................Program /home/mgorny/eventlet/tests/isolated/tpool_isolate_socket_default_timeout.py output:
---
---
F.
======================================================================
FAIL: tests.tpool_test.test_isolate_from_socket_default_timeout
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mgorny/eventlet/tests/__init__.py", line 355, in run_python
output, _ = p.communicate(timeout=timeout)
File "/usr/lib/python3.7/subprocess.py", line 964, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "/usr/lib/python3.7/subprocess.py", line 1716, in _communicate
self._check_timeout(endtime, orig_timeout, stdout, stderr)
File "/usr/lib/python3.7/subprocess.py", line 1011, in _check_timeout
stderr=b''.join(stderr_seq) if stderr_seq else None)
subprocess.TimeoutExpired: Command '['/usr/bin/python3.7', '/home/mgorny/eventlet/tests/isolated/tpool_isolate_socket_default_timeout.py']' timed out after 1 seconds
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/mgorny/eventlet/tests/tpool_test.py", line 369, in test_isolate_from_socket_default_timeout
tests.run_isolated('tpool_isolate_socket_default_timeout.py', timeout=1)
File "/home/mgorny/eventlet/tests/__init__.py", line 381, in run_isolated
run_python(prefix + path, **kwargs)
File "/home/mgorny/eventlet/tests/__init__.py", line 361, in run_python
assert False, 'timed out'
AssertionError: timed out
----------------------------------------------------------------------
Ran 31 tests in 6.873s
FAILED (failures=1)
It seems that the default value of 1 s is probably too slow for non-x86 hardware.
$ time python /home/mgorny/eventlet/tests/isolated/tpool_isolate_socket_default_timeout.py
pass
real 0m1.894s
user 0m1.590s
sys 0m0.110s
After adding timing prints around imports, you can see that it takes ~1.6s to load the Python modules:
Increase the timeout used for test_isolate_from_socket_default_timeout
from 1 second to 5 seconds. Otherwise, the test can't succeed
on hardware where Python runs slower. In particular, on our SPARC box
importing greenlet modules takes almost 2 seconds, so the test program
does not even start properly.
Fixeseventlet#614
Increase the timeout used for test_isolate_from_socket_default_timeout
from 1 second to 5 seconds. Otherwise, the test can't succeed
on hardware where Python runs slower. In particular, on our SPARC box
importing greenlet modules takes almost 2 seconds, so the test program
does not even start properly.
Fixeseventlet#614
test_isolate_from_socket_default_timeout
fails on SPARC due to timeout.It seems that the default value of 1 s is probably too slow for non-x86 hardware.
After adding timing prints around
import
s, you can see that it takes ~1.6s to load the Python modules:eventlet git master (336773d)
Python 3.7.7
using system-built packages since these installed by
pip
just crash (does it even support non-x86?)The text was updated successfully, but these errors were encountered: