[Python-modules-team] Bug#853013: urwid: FTBFS randomly (failing tests)
Santiago Vila
sanvila at debian.org
Sat Jan 28 21:39:58 UTC 2017
Package: src:urwid
Version: 1.3.1-2
Severity: important
Dear maintainer:
I tried to build this package in stretch with "dpkg-buildpackage -A"
but it failed:
--------------------------------------------------------------------------------
[...]
debian/rules build-arch
dh build-arch --with python2,python3 --buildsystem=pybuild
dh_testdir -a -O--buildsystem=pybuild
dh_update_autotools_config -a -O--buildsystem=pybuild
dh_auto_configure -a -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config
running config
I: pybuild base:184: python3.5 setup.py config
running config
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
python setup.py build_sphinx
running build_sphinx
creating /<<PKGBUILDDIR>>/build
[... snipped ...]
test3_center (urwid.tests.test_text_layout.CalcTranslateWordTest4) ... ok
test1_left (urwid.tests.test_text_layout.CalcTranslateWordTest5) ... ok
test2_right (urwid.tests.test_text_layout.CalcTranslateWordTest5) ... ok
test3_center (urwid.tests.test_text_layout.CalcTranslateWordTest5) ... ok
test (urwid.tests.test_text_layout.Pos2CoordsTest) ... ok
test1_padding (urwid.tests.test_text_layout.SubsegTest) ... ok
test2_text (urwid.tests.test_text_layout.SubsegTest) ... ok
test3_range (urwid.tests.test_text_layout.SubsegTest) ... ok
======================================================================
ERROR: test_remove_watch_file (urwid.tests.test_event_loops.AsyncioEventLoopTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/selector_events.py", line 264, in _add_reader
key = self._selector.get_key(fd)
File "/usr/lib/python3.5/selectors.py", line 191, in get_key
raise KeyError("{!r} is not registered".format(fileobj)) from None
KeyError: '5 is not registered'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/urwid/tests/test_event_loops.py", line 33, in test_remove_watch_file
handle = evl.watch_file(5, lambda: None)
File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/urwid/main_loop.py", line 1267, in watch_file
self._loop.add_reader(fd, callback)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 337, in add_reader
return self._add_reader(fd, callback, *args)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 267, in _add_reader
(handle, None))
File "/usr/lib/python3.5/selectors.py", line 412, in register
self._epoll.register(key.fd, epoll_events)
OSError: [Errno 22] Invalid argument
----------------------------------------------------------------------
Ran 253 tests in 0.358s
FAILED (errors=1)
Test failed: <unittest.runner.TextTestResult run=253 errors=1 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=253 errors=1 failures=0>
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: python3.5 setup.py test
dh_auto_test: pybuild --test -i python{version} -p 3.5 returned exit code 13
debian/rules:6: recipe for target 'build-arch' failed
make: *** [build-arch] Error 25
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
--------------------------------------------------------------------------------
This is just how the build ends, not necessarily the relevant part.
I've put several build logs here:
https://people.debian.org/~sanvila/build-logs/urwid/
If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.
The bug should be reproducible with sbuild on a single CPU virtual machine,
provided you try enough times (as the failure happens randomly).
Thanks.
More information about the Python-modules-team
mailing list