Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 676232

Summary: dev-python/pyftpdlib-1.5.4: TestFtpAuthentication.test_anon_auth fails
Product: Gentoo Linux Reporter: Rolf Eike Beer <eike>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal Keywords: TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/giampaolo/pyftpdlib/issues/513
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 659248    
Attachments: build.log
build.log of 1.5.5 on sparc

Description Rolf Eike Beer archtester 2019-01-25 16:42:31 UTC
Created attachment 562788 [details]
build.log

Portage 2.3.49 (python 3.5.4-final-0, default/linux/hppa/17.0, gcc-7.3.0, glibc-2.27-r6, 4.19.9 parisc64)
=================================================================
System uname: Linux-4.19.9-parisc64-PA8800_-Mako-with-gentoo-2.4.1
KiB Mem:     8231816 total,    406116 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Fri, 25 Jan 2019 07:45:01 +0000
Head commit of repository gentoo: 17548b0965d173e7c543b589e8d2ddb41a6b26c5
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 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.4-r1::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/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::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.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no

ACCEPT_KEYWORDS="hppa ~hppa"
ACCEPT_LICENSE="* -@EULA"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=2.0"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=2.0"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks 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=""
GENTOO_MIRRORS="ftp://castor.sf-tec.de/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl berkdb big-endian bzip2 cli crypt cups cxx firefox foomaticdb fortran gdbm gpm hppa iconv imlib ipv6 libwww ncurses nls nptl openmp pam pcre readline spell ssl tcpd unicode xattr zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Louis Sautier (sbraz) gentoo-dev 2019-01-25 17:34:50 UTC
What happens if you run
TZ=UTC+1 pytest -vv -k TestFtpAuthentication
Does it always fail or just when you have a high load on the server?
Comment 2 Rolf Eike Beer archtester 2019-01-25 17:59:55 UTC
seems to work when manually invoked.
Comment 3 Louis Sautier (sbraz) gentoo-dev 2019-01-26 00:09:35 UTC
(In reply to Rolf Eike Beer from comment #2)
> seems to work when manually invoked.

And when you run the test suite from the ebuild? Does it always fail?
Comment 4 Rolf Eike Beer archtester 2019-01-28 09:52:12 UTC
Still fails with the ebuild (with a busy machine).
Comment 5 Louis Sautier (sbraz) gentoo-dev 2019-03-25 16:23:52 UTC
(In reply to Rolf Eike Beer from comment #4)
> Still fails with the ebuild (with a busy machine).

I don't know what to do with these. I could simply disable them but apparently it works outside of portage.

@python Can someone else reproduce this?
Comment 6 Louis Sautier (sbraz) gentoo-dev 2019-04-09 12:11:04 UTC
(In reply to Rolf Eike Beer from comment #4)
> Still fails with the ebuild (with a busy machine).

Still fails with 1.5.5?
Comment 7 Rolf Eike Beer archtester 2019-04-09 15:54:30 UTC
No, but with 1.5.5 there are new errors:

pyftpdlib/test/test_functional.py::TestFtpRetrieveData::test_retr_ascii FAILED                                                                                                                                                                                   [ 14%]
pyftpdlib/test/test_functional.py::TestFtpRetrieveDataNoSendfile::test_retr_ascii FAILED                                                                                                                                                                         [ 15%]
pyftpdlib/test/test_functional_ssl.py::TestFtpRetrieveData::test_retr_ascii <- pyftpdlib/test/test_functional.py FAILED                                                                                                                                          [ 32%]
pyftpdlib/test/test_functional_ssl.py::TestFtpRetrieveDataTLSMixin::test_retr_ascii <- pyftpdlib/test/test_functional.py FAILED                                                                                                                                  [ 46%]
pyftpdlib/test/test_servers.py::TestFtpRetrieveData::test_retr_ascii <- pyftpdlib/test/test_functional.py FAILED                                                                                                                                                 [ 72%]
pyftpdlib/test/test_servers.py::TestFtpRetrieveDataThreadMixin::test_retr_ascii <- pyftpdlib/test/test_functional.py FAILED                                                                                                                                      [ 84%]
pyftpdlib/test/test_servers.py::TestFtpRetrieveDataMProcMixin::test_retr_ascii <- pyftpdlib/test/test_functional.py FAILED                                                                                                                                       [ 95%]
Comment 8 Louis Sautier (sbraz) gentoo-dev 2019-04-09 22:25:12 UTC
(In reply to Rolf Eike Beer from comment #7)
> No, but with 1.5.5 there are new errors:
> 
> pyftpdlib/test/test_functional.py::TestFtpRetrieveData::test_retr_ascii
> FAILED                                                                      
> [ 14%]
> pyftpdlib/test/test_functional.py::TestFtpRetrieveDataNoSendfile::
> test_retr_ascii FAILED                                                      
> [ 15%]
> pyftpdlib/test/test_functional_ssl.py::TestFtpRetrieveData::test_retr_ascii
> <- pyftpdlib/test/test_functional.py FAILED                                 
> [ 32%]
> pyftpdlib/test/test_functional_ssl.py::TestFtpRetrieveDataTLSMixin::
> test_retr_ascii <- pyftpdlib/test/test_functional.py FAILED                 
> [ 46%]
> pyftpdlib/test/test_servers.py::TestFtpRetrieveData::test_retr_ascii <-
> pyftpdlib/test/test_functional.py FAILED                                    
> [ 72%]
> pyftpdlib/test/test_servers.py::TestFtpRetrieveDataThreadMixin::
> test_retr_ascii <- pyftpdlib/test/test_functional.py FAILED                 
> [ 84%]
> pyftpdlib/test/test_servers.py::TestFtpRetrieveDataMProcMixin::
> test_retr_ascii <- pyftpdlib/test/test_functional.py FAILED                 
> [ 95%]

Can you show me the exception details? I'll make an upstream issue.
Comment 9 Rolf Eike Beer archtester 2019-04-10 05:15:24 UTC
Created attachment 572356 [details]
build.log of 1.5.5 on sparc
Comment 10 Louis Sautier (sbraz) gentoo-dev 2019-04-10 09:04:23 UTC
(In reply to Rolf Eike Beer from comment #9)
> Created attachment 572356 [details]
> build.log of 1.5.5 on sparc

Two last question before I open an issue:
does this work outside of portage?
TZ=UTC+1 EPYTHON=python2.7 pytest -vv -k test_retr_ascii

What about this?
TZ=UTC+1 EPYTHON=python2.7 pytest -vv --ignore pyftpdlib/test/test_misc.py -k 'not (test_idle_data_timeout2 or test_on_incomplete_file_received or test_nlst)'
Comment 11 Louis Sautier (sbraz) gentoo-dev 2019-11-27 14:17:43 UTC
Hi, can you please tell me what (if anything) fails with 1.5.5-r1 and open an upstream issue if there are still failures?
Comment 12 Rolf Eike Beer archtester 2019-11-28 20:15:47 UTC
Still fails with 1.5.5-r1.
Comment 13 Larry the Git Cow gentoo-dev 2019-11-29 11:52:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91f13f3d998afd099a54be7c5b3f485d0792f94f

commit 91f13f3d998afd099a54be7c5b3f485d0792f94f
Author:     Louis Sautier <sbraz@gentoo.org>
AuthorDate: 2019-11-29 11:43:21 +0000
Commit:     Louis Sautier <sbraz@gentoo.org>
CommitDate: 2019-11-29 11:52:41 +0000

    dev-python/pyftpdlib: skip another failing test, fix a typo
    
    There was a typo preventing one test from being skipped.
    
    Closes: https://bugs.gentoo.org/676232
    Package-Manager: Portage-2.3.80, Repoman-2.3.19
    Signed-off-by: Louis Sautier <sbraz@gentoo.org>

 dev-python/pyftpdlib/pyftpdlib-1.5.5-r1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)