Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659106 - dev-python/paho-mqtt-1.3.1: test failure: no error message
Summary: dev-python/paho-mqtt-1.3.1: test failure: no error message
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Rage <oxr463>
URL:
Whiteboard:
Keywords: NeedPatch, TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-06-25 14:47 UTC by Thomas Deutschmann (RETIRED)
Modified: 2020-03-28 11:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,9.25 KB, text/plain)
2018-06-25 14:47 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2018-06-25 14:47:53 UTC
Created attachment 537174 [details]
build.log

> >>> Test phase: dev-python/paho-mqtt-1.3.1
>  * python2_7: running distutils-r1_run_phase python_test
> python2.7 setup.py test
> running pytest
> running egg_info
> writing src/paho_mqtt.egg-info/PKG-INFO
> writing top-level names to src/paho_mqtt.egg-info/top_level.txt
> writing dependency_links to src/paho_mqtt.egg-info/dependency_links.txt
> reading manifest file 'src/paho_mqtt.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> writing manifest file 'src/paho_mqtt.egg-info/SOURCES.txt'
> running build_ext
> ==================================================================================== test session starts =====================================================================================
> platform linux2 -- Python 2.7.14, pytest-3.2.2, py-1.4.34, pluggy-0.4.0
> rootdir: /var/tmp/portage/dev-python/paho-mqtt-1.3.1/work/paho.mqtt.python-1.3.1, inifile: setup.cfg
> plugins: xdist-1.15.0, timeout-1.2.0, rerunfailures-2.1.0, cov-2.3.1, hypothesis-3.6.0, case-1.5.2
> collected 44 items
> 
> tests/test_client.py ......F.
> tests/test_matcher.py .................
> tests/test_websocket_integration.py ..................
> tests/test_websockets.py .
> 
> ========================================================================================== FAILURES ==========================================================================================
> ___________________________________________________________________ TestPublishBroker2Client.test_valid_utf8_topic_publish ___________________________________________________________________
> 
> self = <test_client.TestPublishBroker2Client object at 0xb60649ac>, fake_broker = <testsupport.broker.FakeBroker instance at 0xb6049aac>
> 
>     def test_valid_utf8_topic_publish(self, fake_broker):
>         mqttc = client.Client("client-id")
>     
>         # It should be non-ascii multi-bytes character
>         topic = unicodedata.lookup('SNOWMAN')
>     
>         mqttc.connect_async("localhost", 1888)
>         mqttc.loop_start()
>     
>         try:
>             fake_broker.start()
>     
>             connect_packet = paho_test.gen_connect("client-id")
>             packet_in = fake_broker.receive_packet(len(connect_packet))
>             assert packet_in  # Check connection was not closed
>             assert packet_in == connect_packet
>     
>             connack_packet = paho_test.gen_connack(rc=0)
>             count = fake_broker.send_packet(connack_packet)
>             assert count  # Check connection was not closed
>             assert count == len(connack_packet)
>     
>             mqttc.publish(topic, None, 0)
>     
>             publish_packet = paho_test.gen_publish(
>                 topic.encode('utf-8'), qos=0
>             )
>             packet_in = fake_broker.receive_packet(len(publish_packet))
>             assert packet_in  # Check connection was not closed
>             assert packet_in == publish_packet
>     
>             mqttc.disconnect()
>     
>             disconnect_packet = paho_test.gen_disconnect()
> >           packet_in = fake_broker.receive_packet(len(disconnect_packet))
> 
> tests/test_client.py:230: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> self = <testsupport.broker.FakeBroker instance at 0xb6049aac>, num_bytes = 2
> 
>     def receive_packet(self, num_bytes):
>         if self._conn is None:
>             raise ValueError('Connection is not open')
>     
> >       packet_in = self._conn.recv(num_bytes)
> E       error: [Errno 104] Connection reset by peer
> 
> tests/testsupport/broker.py:43: error
> ============================================================================ 1 failed, 43 passed in 7.70 seconds =============================================================================
>  * ERROR: dev-python/paho-mqtt-1.3.1::gentoo failed (test phase):
>  *   (no error message)
>  * 
>  * Call stack:
>  *     ebuild.sh, line  124:  Called src_test
>  *   environment, line 2624:  Called distutils-r1_src_test
>  *   environment, line  875:  Called _distutils-r1_run_foreach_impl 'python_test'
>  *   environment, line  325:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
>  *   environment, line 2156:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
>  *   environment, line 1529:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
>  *   environment, line 1527:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
>  *   environment, line  549:  Called distutils-r1_run_phase 'python_test'
>  *   environment, line  806:  Called python_test
>  *   environment, line 2525:  Called esetup.py 'test'
>  *   environment, line 1074:  Called die
>  * The specific snippet of code:
>  *       "${@}" || die "${die_args[@]}";

Portage 2.3.40 (python 3.6.5-final-0, default/linux/x86/17.0, gcc-7.3.0, glibc-2.26-r7, 4.9.95-gentoo i686)
=================================================================
System uname: Linux-4.9.95-gentoo-i686-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:     3108308 total,   1248084 free
KiB Swap:     488276 total,    487408 free
Timestamp of repository gentoo: Mon, 25 Jun 2018 10:26:13 +0000
Head commit of repository gentoo: deef60029d08b4fbfa0f90cfe1691dc6aadd213d

sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

ABI="x86"
ABI_X86="32"
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ARCH="x86"
BROOT=""
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m"
CHOST="i686-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CPU_FLAGS_X86="mmx mmxext sse sse2"
CXXFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m"
DEFAULT_ABI="x86"
EDITOR="/usr/bin/mcedit"
ELIBC="glibc"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GCC_SPECS=""
GRUB_PLATFORMS="efi-32 pc"
GSETTINGS_BACKEND="dconf"
HOME="/root"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/7.3.0/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.30/info:/usr/share/info"
INPUT_DEVICES="libinput keyboard mouse"
IUSE_IMPLICIT="abi_x86_32 prefix prefix-chain prefix-guest"
KERNEL="linux"
L10N="en en-US de de-DE"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_MESSAGES="C"
LC_PAPER="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LIBDIR_x86="lib"
LINGUAS="en de"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="--jobs 5 --load-average 7.95"
MULTILIB_ABIS="x86"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/root"
OPENCL_PROFILE="mesa"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/i686-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
PHP_TARGETS="php5-6 php7-0"
POSTGRES_TARGETS="postgres9_5 postgres10"
PWD="/tmp/stable"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_6"
PYTHON_TARGETS="python2_7 python3_6"
QT_GRAPHICSSYSTEM="raster"
ROOT="/"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
RUBY_TARGETS="ruby22 ruby23"
SHELL="/bin/bash"
SHLVL="2"
SSH_TTY="/dev/pts/0"
SYSROOT="/"
TERM="tmux-256color"
TMUX="/tmp/tmux-0/default,4838,0"
TMUX_PANE="%4"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
USER="root"
USERLAND="GNU"
VIDEO_CARDS="vmware"
Comment 1 Pacho Ramos gentoo-dev 2018-06-28 08:35:40 UTC
I see that in Debian and Fedora they are simply skipping the tests
Comment 2 Pacho Ramos gentoo-dev 2018-06-28 18:53:11 UTC
[master b6339332ffa5] dev-python/paho-mqtt: Restrict tests (#659106)
 1 file changed, 2 insertions(+)
Comment 3 Benda Xu gentoo-dev 2018-07-03 01:12:48 UTC
What's the status of this bug?  Rage, do we need a patch or which commit is needed from your overlay?
Comment 4 Rage <oxr463> 2018-07-18 18:50:34 UTC
(In reply to Benda Xu from comment #3)
> What's the status of this bug?  Rage, do we need a patch or which commit is
> needed from your overlay?

I was able to reproduce via qemu-i386, however, I still need to figure out why it is occurring.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-24 15:47:46 UTC
I am not sure why you edit bug, if that wasn't a mistake, that's not how it works. You are listed as maintainer of dev-python/paho-mqtt. So as long as you are maintaining this package, the will be assigned to you.
Comment 6 Rage <oxr463> 2018-09-24 16:18:37 UTC
Oh.. I see.

I simply can't figure out why this is failing so I was hoping to turn it over to someone more knowledgeable.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-28 11:28:21 UTC
Old version removed.  Please reopen if it still happens.