Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632519 - dev-python/cython-0.27: bump / test failure
Summary: dev-python/cython-0.27: bump / test failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-30 14:04 UTC by Patrick Lauer
Modified: 2018-04-28 19:29 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2017-09-30 14:04:25 UTC
======================================================================
FAIL: long_abs (line 75) (builtin_abs.__test__)
Doctest: builtin_abs.__test__.long_abs (line 75)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for builtin_abs.__test__.long_abs (line 75)
  File "/var/tmp/portage/dev-python/cython-0.27/work/Cython-0.27-python2_7/tests/run/cpp/builtin_abs/builtin_abs.so", line unknown line number, in long_abs (line 75)

----------------------------------------------------------------------
File "/var/tmp/portage/dev-python/cython-0.27/work/Cython-0.27-python2_7/tests/run/cpp/builtin_abs/builtin_abs.so", line ?, in builtin_abs.__test__.long_abs (line 75)
Failed example:
    long_abs(-max_long-1)     #doctest: +ELLIPSIS
Expected:
    Traceback (most recent call last):
        ...
    OverflowError: ...
Got:
    -9223372036854775808


======================================================================
FAIL: long_long_abs (line 105) (builtin_abs.__test__)
Doctest: builtin_abs.__test__.long_long_abs (line 105)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for builtin_abs.__test__.long_long_abs (line 105)
  File "/var/tmp/portage/dev-python/cython-0.27/work/Cython-0.27-python2_7/tests/run/cpp/builtin_abs/builtin_abs.so", line unknown line number, in long_long_abs (line 105)

----------------------------------------------------------------------
File "/var/tmp/portage/dev-python/cython-0.27/work/Cython-0.27-python2_7/tests/run/cpp/builtin_abs/builtin_abs.so", line ?, in builtin_abs.__test__.long_long_abs (line 105)
Failed example:
    long_long_abs(-max_long_long-1)     #doctest: +ELLIPSIS
Expected:
    Traceback (most recent call last):
        ...
    OverflowError: ...
Got:
    -9223372036854775808


----------------------------------------------------------------------
Ran 10605 tests in 3535.903s

FAILED (failures=6, skipped=50)
Following tests excluded because of missing dependencies on your system:
   run.asyncio_generators
   run.numpy_pythran
ALL DONE
 * ERROR: dev-python/cython-0.27::gentoo failed (test phase):
 *   Tests fail with python2.7

Portage 2.3.10 (python 2.7.14-final-0, default/linux/amd64/13.0, gcc-6.4.0, glibc-2.25-r5, 4.13.4-gentoo x86_64)
=================================================================
System uname: Linux-4.13.4-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem:    16402744 total,  12795036 free
KiB Swap:          0 total,         0 free
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p1.0) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.31.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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 amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sqlite sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="dummy fbdev glint intel mach64 nouveau nv r128 radeon savage sis trident v4l vesa" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 François Bissey 2017-10-07 09:05:29 UTC
Looks like https://github.com/cython/cython/issues/1911
Comment 2 François Bissey 2017-10-07 10:04:26 UTC
Don't know if it has been noticed since I don't know where to find your ebuild, if it is public at all, but the tests need to depend on backport-abc-0.5. Stable 0.4 won't cut it.
Comment 3 François Bissey 2018-03-14 23:08:05 UTC
I am now moving to cython 0.28 in the sage-on-gentoo overlay. I got quite a number of failing tests in both python 2.7 and 3.6 for a while in 0.27.3 and now 0.28. That is until I noticed that sage was being set up at the beginning of the tests. After removing sage from my system, cython 0.28 passes its test suite here. I will fine tune a couple of things before publishing in the overlay but I will turn upstream to figure how sage is loaded (cannot find a suspicious call in the code).
Comment 4 Stefan Briesenick 2018-04-22 17:41:54 UTC
The latest release of Cython is 0.28.2 (released 2018-04-13).
Comment 5 Larry the Git Cow gentoo-dev 2018-04-28 19:29:49 UTC
The bug has been closed via the following commit(s):

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

commit cc601482ca08849755bc24d2b3fcccd50559f2a8
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-04-28 19:28:38 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-04-28 19:29:41 +0000

    dev-python/cython: Bump to 0.28.2
    
    Bump to 0.28.2 release.  For now, it has failing tests, pending further
    investigation.
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=632519

 dev-python/cython/Manifest             |  1 +
 dev-python/cython/cython-0.28.2.ebuild | 76 ++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)