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

Bug#1106130: python-tornado: FTBFS on riscv64: raise Exception("subprocess failed to terminate")



Source: python-tornado
Version: 6.4.2-2
Severity: serious
Tags: ftbfs patch
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv@lists.debian.org

Dear Maintainer,

The new upload[0] of python-tornado cause FTBFS on riscv64:
```
ERROR: test_reload
(tornado.test.autoreload_test.AutoreloadTest.test_reload)
(mode='directory', wrapper=False)
...

File
"/build/reproducible-path/python-tornado-6.4.2/tornado/test/autoreload_test.py",
line 97, in run_subprocess
    raise Exception("subprocess failed to terminate")
Exception: subprocess failed to terminate
...
```

Full buildd log please to see here:
https://buildd.debian.org/status/fetch.php?pkg=python-tornado&arch=riscv64&ver=6.4.2-2&stamp=1747602064&raw=0

It still looks like a timeout issue on riscv64 and the patch I have
tested it on my local Unmatched board. Currently missing build on
riscv64 has prevented migration given we are in hard freeze maybe the
issue should be fixed ASAP.

Please let me know any issues.

[0]:
https://tracker.debian.org/news/1646589/accepted-python-tornado-642-2-source-into-unstable/
-- 
Regards,
--
  Bo YU

diff -Nru python-tornado-6.4.2/debian/changelog python-tornado-6.4.2/debian/changelog
--- python-tornado-6.4.2/debian/changelog	2025-05-18 15:43:40.000000000 +0000
+++ python-tornado-6.4.2/debian/changelog	2025-05-19 23:48:18.000000000 +0000
@@ -1,3 +1,10 @@
+python-tornado (6.4.2-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Increase timeout on riscv64 to fix FTBFS issue. (Closes: #-1)
+
+ -- Bo YU <vimer@debian.org>  Mon, 19 May 2025 23:48:18 +0000
+
 python-tornado (6.4.2-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru python-tornado-6.4.2/debian/.gitignore python-tornado-6.4.2/debian/.gitignore
--- python-tornado-6.4.2/debian/.gitignore	2025-05-18 15:43:40.000000000 +0000
+++ python-tornado-6.4.2/debian/.gitignore	1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-/files
diff -Nru python-tornado-6.4.2/debian/patches/increase-timeout-rv64.patch python-tornado-6.4.2/debian/patches/increase-timeout-rv64.patch
--- python-tornado-6.4.2/debian/patches/increase-timeout-rv64.patch	1970-01-01 00:00:00.000000000 +0000
+++ python-tornado-6.4.2/debian/patches/increase-timeout-rv64.patch	2025-05-19 23:48:18.000000000 +0000
@@ -0,0 +1,29 @@
+Description: increase timeout on riscv64
+Author: Bo YU <vimer@debian.org>
+Bug: https://buildd.debian.org/status/fetch.php?pkg=python-tornado&arch=riscv64&ver=6.4.2-2&stamp=1747602064&raw=0
+Forwarded: not-needed
+Last-Update: 2025-05-19
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/tornado/test/autoreload_test.py
++++ b/tornado/test/autoreload_test.py
+@@ -7,6 +7,7 @@
+ import textwrap
+ import time
+ import unittest
++import platform
+ 
+ 
+ class AutoreloadTest(unittest.TestCase):
+@@ -91,7 +92,10 @@
+         for i in range(40):
+             if p.poll() is not None:
+                 break
+-            time.sleep(0.1)
++            if platform.machine() == "riscv64":
++                time.sleep(1)
++            else:
++                time.sleep(0.1)
+         else:
+             p.kill()
+             raise Exception("subprocess failed to terminate")
diff -Nru python-tornado-6.4.2/debian/patches/series python-tornado-6.4.2/debian/patches/series
--- python-tornado-6.4.2/debian/patches/series	2025-05-18 15:43:40.000000000 +0000
+++ python-tornado-6.4.2/debian/patches/series	2025-05-19 23:40:19.000000000 +0000
@@ -5,3 +5,4 @@
 pythonpath-autoreload-test.patch
 disable-should-be-failing-test.patch
 CVE-2025-47287.patch
+increase-timeout-rv64.patch

Attachment: signature.asc
Description: PGP signature


Reply to: