[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1117144: python-tornado: FTBFS on riscv64: ERROR: test_request_timeout (tornado.test.simple_httpclient_test.SimpleHTTPSClientTestCase.test_request_timeout)



Source: python-tornado
Version: 6.5.2-2
Severity: serious
Tags: ftbfs patch
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: debian-riscv@lists.debian.org
User: debian-riscv@lists.debian.org
Usertags: riscv64

Dear maintainer,

python-tornado fails to build on riscv64 with the following error:

| ======================================================================
| ERROR: test_request_timeout (tornado.test.simple_httpclient_test.SimpleHTTPSClientTestCase.test_request_timeout)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
|   File "/build/reproducible-path/python-tornado-6.5.2/tornado/testing.py", line 268, in _callTestMethod
|     result = method()
|   File "/build/reproducible-path/python-tornado-6.5.2/tornado/test/simple_httpclient_test.py", line 326, in test_request_timeout
|     self.triggers.popleft()()
|     ~~~~~~~~~~~~~~~~~~~~~^^
| IndexError: pop from an empty deque
| 
| ----------------------------------------------------------------------
| Ran 1222 tests in 131.231s
| 
| FAILED (errors=1, skipped=11)
| Some tests were skipped because: Prevent internet access during build,
| failing on Salsa CI, needs fix, network access disabled, no testable
| future imports, py312 has its own check for test case returns,
| tornado.speedups module not present
| E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: python3.13 ./tornado/test/runtests.py --verbose
| 	rm -fr -- /tmp/dh-xdg-rundir-QOi1T098
| dh_auto_test: error: pybuild --test -i python{version} -p 3.13 returned exit code 13
| make[1]: *** [debian/rules:20: override_dh_auto_test] Error 25
| make[1]: Leaving directory '/build/reproducible-path/python-tornado-6.5.2'
| make: *** [debian/rules:16: binary-arch] Error 2
| dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2
| 
A full build log is available there:
https://buildd.debian.org/status/fetch.php?pkg=python-tornado&arch=riscv64&ver=6.5.2-2&stamp=1759127905&raw=0

It appears that the default timeout for this test is now too small,
probably due to changes somewhere else in the code. Increasing it a bit
fixes the issue:

--- python-tornado-6.5.2.orig/tornado/test/simple_httpclient_test.py
+++ python-tornado-6.5.2/tornado/test/simple_httpclient_test.py
@@ -316,7 +316,7 @@ class SimpleHTTPClientTestMixin(AsyncTes
         yield gen.sleep(0.2)
 
     def test_request_timeout(self):
-        timeout = 0.1
+        timeout = 0.2
         if os.name == "nt":
             timeout = 0.5

It should also fix the issue on armel, although I haven't checked that.

Regards
Aurelien


Reply to: