Your message dated Wed, 16 Aug 2023 15:33:59 +0000
with message-id <[email protected]>
and subject line Bug#1031980: fixed in apertium 3.8.3-2
has caused the Debian Bug report #1031980,
regarding apertium: FTBFS on riscv64 (test timeout)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1031980: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031980
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: apertium
Version: 3.8.3-1
Severity: important
Tags: ftbfs patch
Justification: fails to build from source (but built successfully in the past)
User: [email protected]
Usertags: riscv64
X-Debbugs-Cc: [email protected]
Dear maintainers,
apertium fails to build on riscv64, for it exceeds the 2-second timeout in
test, which is too short considering its performance:
```
runTest (adaptdocx.AdaptDocxTest.runTest) ... ok
runTest (adaptdocx.CorrectBoundariesTest.runTest) ... ERROR
runTest (adaptdocx.NoNewlinesTest.runTest) ... ok
runTest (adaptdocx.SameTextTest.runTest) ... ERROR
======================================================================
ERROR: runTest (adaptdocx.CorrectBoundariesTest.runTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/tests/adaptdocx/__init__.py", line 65, in runTest
obtingut = self.extractText("data/" + nom + ".xml", True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/<<PKGBUILDDIR>>/tests/adaptdocx/__init__.py", line 45, in extractText
result = self.runCheckExit(proc, entrada)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/<<PKGBUILDDIR>>/tests/adaptdocx/__init__.py", line 22, in runCheckExit
res = proc.communicate(inp, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1207, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 2060, in _communicate
self._check_timeout(endtime, orig_timeout, stdout, stderr)
File "/usr/lib/python3.11/subprocess.py", line 1251, in _check_timeout
raise TimeoutExpired(
subprocess.TimeoutExpired: Command '['python3', 'adaptdocx/extract_docx.py']'
timed out after 2 seconds
======================================================================
ERROR: runTest (adaptdocx.SameTextTest.runTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/tests/adaptdocx/__init__.py", line 56, in runTest
original = [linia.replace("|", "") for linia in self.extractText("data/" +
nom + ".xml", False)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/<<PKGBUILDDIR>>/tests/adaptdocx/__init__.py", line 45, in extractText
result = self.runCheckExit(proc, entrada)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/<<PKGBUILDDIR>>/tests/adaptdocx/__init__.py", line 22, in runCheckExit
res = proc.communicate(inp, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1207, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 2060, in _communicate
self._check_timeout(endtime, orig_timeout, stdout, stderr)
File "/usr/lib/python3.11/subprocess.py", line 1251, in _check_timeout
raise TimeoutExpired(
subprocess.TimeoutExpired: Command '['python3', 'adaptdocx/extract_docx.py']'
timed out after 2 seconds
----------------------------------------------------------------------
Ran 4 tests in 4.214s
FAILED (errors=2)
```
Full buildd log:
https://buildd.debian.org/status/fetch.php?pkg=apertium&arch=riscv64&ver=3.8.3-1%2Bb2&stamp=1676895416&raw=0
I've attached a patch that extends the timeout to 30 seconds. If more help is
needed, please let me know.
Cheers,
Eric
--- a/tests/adaptdocx/__init__.py
+++ b/tests/adaptdocx/__init__.py
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
import unittest
+import platform
from subprocess import Popen, PIPE
@@ -18,7 +19,10 @@
def runCheckExit(self, proc, inp):
"""Run proc on input, then close and assert that we exited with 0.
Return output from proc."""
- timeout = 2
+ if platform.prcessor() == "riscv64":
+ timeout = 30
+ else:
+ timeout = 2
res = proc.communicate(inp, timeout)
for fd in [proc.stdin, proc.stdout, proc.stderr]:
if fd is not None:
--- End Message ---
--- Begin Message ---
Source: apertium
Source-Version: 3.8.3-2
Done: Michael R. Crusoe <[email protected]>
We believe that the bug you reported is fixed in the latest version of
apertium, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael R. Crusoe <[email protected]> (supplier of updated apertium package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 16 Aug 2023 16:54:33 +0200
Source: apertium
Architecture: source
Version: 3.8.3-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers
<[email protected]>
Changed-By: Michael R. Crusoe <[email protected]>
Closes: 1031980
Changes:
apertium (3.8.3-2) unstable; urgency=medium
.
* Team upload.
* Added fix-riscv64-test-timeout.patch to fix FTBFS on riscv64.
Closes: #1031980
* Standards-Version: 4.6.2 (routine-update)
* Fix Maintainer name of Debian Science team (routine-update)
* Build-Depends: s/dh-python/dh-sequence-python3/ (routine-update)
Checksums-Sha1:
2cfa89bca687b446818d067e423978472a7ed3f9 2369 apertium_3.8.3-2.dsc
081ecbe4f7db731951de27282fd4dfa9c711c45a 7496 apertium_3.8.3-2.debian.tar.xz
289d3ac106fff3207c43ceb2283f4e5636f7629a 8774 apertium_3.8.3-2_source.buildinfo
Checksums-Sha256:
a2047b38e4514bc1131dfb574448ef6d0ee7945ba90c0178009449b778402c77 2369
apertium_3.8.3-2.dsc
e120964647a63aa3189a8a8e6846883b7fd97b80c912067b1a68037bf4b99e93 7496
apertium_3.8.3-2.debian.tar.xz
fdc2788da6db8a77dcc0f3d1071a2448fcb22efdffb99add5edf81b5f6330948 8774
apertium_3.8.3-2_source.buildinfo
Files:
d0804b8e72869b55099923d379e519ce 2369 science optional apertium_3.8.3-2.dsc
9e1068f6b7ee42f611d8889283d0a726 7496 science optional
apertium_3.8.3-2.debian.tar.xz
00751111d2f9ad997d2c35481f4d75cc 8774 science optional
apertium_3.8.3-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEck1gkzcRPHEFUNdHPCZ2P2xn5uIFAmTc40QACgkQPCZ2P2xn
5uIP6RAAw0yz+r7dYGWGArc2xVYdNi3OTQ0lBc/9JpfB27bB+nYtaWgX3+B5qpDj
wiT4lOaHMfjvmUuOxQAVAeYVBMe5n5G8ZCl8hsKIaPUfXydQm0Hy2EXSgoZBNOmZ
lr3xRctZRjb+HdRc+xemH2y/1FtuCzGl0gVE7mb4n1dYNQ1NDXOnLCYA96BA0UFr
O7UMBbCoxiytCfOGuwHH8NLWnuIIkhOMQ8gGb+/1OZRP22v0/YwJE7yRmJJioWGx
5LH+e9urC02AntSDPrkd7KBzxhxDX/l/mdV9IhP9cEBhse9zjL+LzhINyrNp2rAw
O1Cv2S/qn8+j7QX/FSkUh+DpPvzwcf+AcAgmTiPw+sakXj4NwsjC181uNwCurCDL
Z9oAz5JwW8q5aET2iNM/supEG3LXYDq/vS2WmZiahTqgfsoc0oPW9T5mZ2jS+XfR
s0Dd13s4vAMVE6H0sBKbTKncJvBydKMkt8VuWZ6ce3IfT1eKDj2hoF5rM3komq1t
LBRFsNzABvNesVHpx5b5pXmgHh88TTIys2eAJFPo2q97ObzdU9h+3Z+cp8t3MnoW
5ffW36Qnr1w7DB/HBfF9RvCnV/ZPpFzvpyMiH+oXmOSa2VF4sxLPkhkFYGq8KDtg
0U8dIBAGOqzl6fsC+c/hQJdPtZ8txbJ6CmeyLRsa1zf3mNmlH8U=
=1Gqo
-----END PGP SIGNATURE-----
--- End Message ---