[Python-modules-team] Bug#861458: python-ws4py: FTBFS randomly (failing tests)

Santiago Vila sanvila at debian.org
Sat Apr 29 11:09:53 UTC 2017


Package: src:python-ws4py
Version: 0.3.4-4
Severity: important

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3,sphinxdoc --buildsystem=pybuild
   dh_testdir -i -O--buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -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
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:184: /usr/bin/python setup.py build 
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/ws4py

[... snipped ...]

copying ws4py/client/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/client
copying ws4py/client/geventclient.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/client
copying ws4py/client/threadedclient.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/client
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/wsgiutils.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/geventserver.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/wsgirefserver.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/tulipserver.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/cherrypyserver.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
   dh_auto_test -i -O--buildsystem=pybuild
I: pybuild pybuild:219: cp -r /<<PKGBUILDDIR>>/test /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build
I: pybuild base:184: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose test
E.........................................................................................
======================================================================
ERROR: test_plugin (test.test_cherrypy.CherryPyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/test/test_cherrypy.py", line 86, in test_plugin
    h.close()
  File "ws4py/websocket.py", line 176, in close
    self._write(self.stream.close(code=code, reason=reason).single(mask=self.stream.always_mask))
  File "ws4py/websocket.py", line 241, in _write
    raise RuntimeError("Cannot send on a terminated websocket")
RuntimeError: Cannot send on a terminated websocket
-------------------- >> begin captured logging << --------------------
ws4py: INFO: Using epoll
cherrypy.error: INFO: [23/Apr/2017:17:18:22] ENGINE Bus STARTING
cherrypy.error: INFO: [23/Apr/2017:17:18:22] ENGINE Starting WebSocket processing
cherrypy.error: INFO: [23/Apr/2017:17:18:22] ENGINE Started monitor thread 'Autoreloader'.
cherrypy.error: INFO: [23/Apr/2017:17:18:22] ENGINE Started monitor thread '_TimeoutMonitor'.
cherrypy.error: INFO: [23/Apr/2017:17:18:22] ENGINE Bus STARTED
ws4py: INFO: Managing websocket [Bound to '<MagicMock name='mock.getsockname()' id='140687818860304'>']
ws4py: DEBUG: Closing message received (1002) 'Invalid Closing Frame Code: 28523'
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 90 tests in 0.733s

FAILED (errors=1)
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose test
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
debian/rules:11: recipe for target 'build-indep' failed
make: *** [build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep 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/python-ws4py/

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