Created attachment 410224 [details] build.log ====================================================================== FAIL: test_dist_reqts (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 314, in test_dist_reqts self.assertIsNotNone(dist) AssertionError: unexpectedly None ====================================================================== FAIL: test_dist_reqts_extras (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 322, in test_dist_reqts_extras self.assertIsNotNone(dist) AssertionError: unexpectedly None ====================================================================== FAIL: test_json (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 61, in test_json self.assertIn(LATEST_SARGE_VERSION, result) AssertionError: u'0.1.4' not found in {'digests': {}, 'urls': {}} ====================================================================== FAIL: test_prereleases (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 294, in test_prereleases self.assertIsNotNone(d) AssertionError: unexpectedly None ====================================================================== FAIL: test_scraper (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 76, in test_scraper self.assertIn('0.1', result) AssertionError: u'0.1' not found in {'digests': {}, 'urls': {}} ====================================================================== FAIL: test_package_data (test_util.UtilTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_util.py", line 466, in test_package_data self.assertTrue(data) AssertionError: {} is not true ---------------------------------------------------------------------- Ran 227 tests in 10.708s FAILED (failures=8, errors=2, skipped=14) * ERROR: dev-python/distlib-0.2.1::gentoo failed (test phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_test * environment, line 3493: Called distutils-r1_src_test * environment, line 916: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 285: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 3048: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2172: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2170: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 546: Called distutils-r1_run_phase 'python_test' * environment, line 853: Called python_test * environment, line 3373: Called esetup.py 'test' * environment, line 1341: Called die * The specific snippet of code: * "${@}" || die
occam / # emerge --info '=dev-python/distlib-0.2.1::gentoo' Portage 2.2.20.1 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 3.18.2.e0-occam0+ x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.18.2.e0-occam0+-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2 KiB Mem: 7944088 total, 1852752 free KiB Swap: 16777212 total, 16647752 free Timestamp of repository gentoo: Tue, 25 Aug 2015 11:00:01 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.3_p39::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r1::gentoo, 3.4.1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.15::gentoo sys-devel/binutils: 2.24-r3::gentoo sys-devel/gcc: 4.8.4::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync network-sandbox noclean parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" 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" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode 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" CAMERAS="ptp2" 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 itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON occam / # emerge -pqv '=dev-python/distlib-0.2.1::gentoo' [ebuild N ] dev-python/distlib-0.2.1 PYTHON_TARGETS="python2_7 -pypy -pypy3 -python3_3 -python3_4"
Sorry, I missed the first few failing tests when copy-pasting. See the attached log for full output.
gentoo/dev-python/distlib $ ebuild distlib-0.2.1.ebuild clean test ====================================================================== FAIL: test_search (test_index.PackageIndexTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_index.py", line 296, in test_search self.assertEqual(len(result), 1) AssertionError: 0 != 1 ---------------------------------------------------------------------- Ran 227 tests in 112.964s FAILED (failures=1, skipped=14) for most all pythons. Also FEATURES=network-sandbox in place in make.conf FAIL: test_search also appears in the log provided. Needs further cross testing and the test_search looks like it needs filing upstream. Holding up until replication
For this bug the culprit test is test_search (test_index.PackageIndexTestCase) and needs patching out of test_index.py. The others appears spurious. With this test patched out, all pass under pypy and py2.7. pypy3 fails under one test failed by one of the two tests failed by python3.3
(In reply to Ian Delaney from comment #4) > and needs patching out of test_index.py. Before doing so, please ensure that the *test* is actually broken and not the package itself.
(In reply to Mike Gilbert from comment #5) > (In reply to Ian Delaney from comment #4) > > and needs patching out of test_index.py. > > Before doing so, please ensure that the *test* is actually broken and not > the package itself. Don't follow. jlec confirmed the test test_search is the source. <jlec> so distlibs fails without network. <jlec> With network, I see "FAIL: test_search test_index.PackageIndexTestCase)" To me the test wasn't suspected as broken. This is not the point. Rather whether it demanded connection to the network. The test attempts or need connect to the network however with FEATURES=network-sandbox it fails. So the problem could just as well be an issue with FEATURES=network-sandbox of portage but I haven't looked. The rationale here was always to sed out a test that attempts to connect to the network like we have been doing for years. However, this has in fact clouded the issue of whether the test is in fact broken or the package breaking it. Here is some more data; FEATURES="... ... ...usersandbox" # network-sandbox" gentoo/dev-python/distlib $ PYTHON_TARGETS=python2_7 ebuild distlib-0.2.1.ebuild clean test yields FAIL: test_search (test_index.PackageIndexTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_index.py", line 296, in test_search self.assertEqual(len(result), 1) AssertionError: 0 != 1 ---------------------------------------------------------------------- Ran 227 tests in 98.967s FAILED (failures=1, skipped=13) with a network connection. The test_search is intact in tests/test_index.py. This to me throws a whole new light on the failure. It supports that the test or the package is in fact broken, failing both with and without the network and with and without network-sandbox in FEATURES. It suggests to me it warrants filing upstream however it also suggests it requires some proof by replication. Either way I am not patching this ebuild since there is doubt all over it and I did not run test it and add it to portage. I stop here at supplying my cross testing.
(In reply to Ian Delaney from comment #6) > Don't follow. jlec confirmed the test test_search is the source. I do not see any comments by jlec on this bug, and I did not participate in your IRC discussion. In any case, it seems you figured out what I meant in the end.
This point you made is fundamental and would occur as standard procedure. However the issue of this bug was always concerned with FEATURES=network-sandbox. Patching the test out of test_index.py addresses this aspect and that it yileds a clean pass is pertinent info.
(In reply to Ian Delaney from comment #4) > The others appears spurious. With this test patched out, all pass under pypy > and py2.7. I'm not sure what you mean by this. With FEATURES="network-sandbox", I can consistently reproduce the following test failures with python2.7, event after having removed test_search from test_index.py. ====================================================================== ERROR: test_dependency_finder (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 211, in test_dependency_finder dists, problems = finder.find('irc (== 5.0.1)') File "/tmp/portage/dev-python/distlib-0.2.1/work/distlib-0.2.1/distlib/locators.py", line 1200, in find raise DistlibException('Unable to locate %r' % requirement) DistlibException: Unable to locate u'irc (== 5.0.1)' ====================================================================== FAIL: test_aggregation (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 191, in test_aggregation self.assertGreater(len(result), 3) AssertionError: 3 not greater than 3 ====================================================================== FAIL: test_all (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 472, in test_all self.assertEqual(actual & expected, expected) AssertionError: Items in the second set but not the first: u'setuptools-0.6c11.tar.gz' u'setuptools-5.0.tar.gz' u'setuptools-3.1.tar.gz' u'setuptools-1.4.tar.gz' u'setuptools-5.4.1.zip' u'setuptools-3.4.1.zip' u'setuptools-5.5.zip' u'setuptools-2.2.tar.gz' u'setuptools-1.1.6.tar.gz' u'setuptools-3.7.tar.gz' u'setuptools-3.0.2.zip' u'setuptools-3.0.tar.gz' u'setuptools-3.5.2.zip' u'setuptools-5.0.2.zip' u'setuptools-3.3.zip' u'setuptools-5.0.1.tar.gz' u'setuptools-0.6c10.tar.gz' u'setuptools-5.1.zip' u'setuptools-0.6c1.zip' u'setuptools-3.4.4.zip' u'setuptools-3.7.1.tar.gz' u'setuptools-1.1.7.tar.gz' u'setuptools-5.8.tar.gz' u'setuptools-3.8.1.zip' u'setuptools-1.1.3.tar.gz' u'setuptools-3.0.1.tar.gz' u'setuptools-3.8.zip' u'setuptools-5.6.tar.gz' u'setuptools-6.0.2.zip' u'setuptools-3.0.1.zip' u'setuptools-3.5.1.tar.gz' u'setuptools-1.1.2.tar.gz' u'setuptools-3.6.tar.gz' u'setuptools-1.1.4.tar.gz' u'setuptools-6.0.1.tar.gz' u'setuptools-0.6c9.tar.gz' u'setuptools-5.0.zip' u'setuptools-4.0.zip' u'setuptools-3.8.tar.gz' u'setuptools-0.6b1.zip' u'setuptools-1.2.tar.gz' u'setuptools-3.5.2.tar.gz' u'setuptools-1.0.tar.gz' u'setuptools-1.1.tar.gz' u'setuptools-0.6c3.tar.gz' u'setuptools-5.5.tar.gz' u'setuptools-0.6c5.tar.gz' u'setuptools-3.0.zip' u'setuptools-3.5.tar.gz' u'setuptools-3.4.3.tar.gz' u'setuptools-0.7.8.tar.gz' u'setuptools-5.5.1.zip' u'setuptools-5.6.zip' u'setuptools-0.7.2.tar.gz' u'setuptools-0.9.5.tar.gz' u'setuptools-3.5.1.zip' u'setuptools-3.0.2.tar.gz' u'setuptools-5.3.zip' u'setuptools-0.9.8.tar.gz' u'setuptools-3.7.1.zip' u'setuptools-0.7.4.tar.gz' u'setuptools-1.1.1.tar.gz' u'setuptools-0.8.tar.gz' u'setuptools-5.7.tar.gz' u'setuptools-4.0.1.tar.gz' u'setuptools-2.0.2.tar.gz' u'setuptools-3.4.zip' u'setuptools-0.9.2.tar.gz' u'setuptools-6.0.tar.gz' u'setuptools-3.5.zip' u'setuptools-3.4.4.tar.gz' u'setuptools-3.4.tar.gz' u'setuptools-5.1.tar.gz' u'setuptools-0.6c6.tar.gz' u'setuptools-0.7.7.tar.gz' u'setuptools-1.4.2.tar.gz' u'setuptools-3.2.zip' u'setuptools-6.0.1.zip' u'setuptools-3.1.zip' u'setuptools-0.6b2.zip' u'setuptools-0.6c8.tar.gz' u'setuptools-6.0.2.tar.gz' u'setuptools-0.9.tar.gz' u'setuptools-4.0.1.zip' u'setuptools-5.2.tar.gz' u'setuptools-0.9.3.tar.gz' u'setuptools-3.6.zip' u'setuptools-2.1.tar.gz' u'setuptools-3.8.1.tar.gz' u'setuptools-5.4.2.zip' u'setuptools-0.9.1.tar.gz' u'setuptools-5.5.1.tar.gz' u'setuptools-3.4.2.zip' u'setuptools-0.6b3.zip' u'setuptools-5.2.zip' u'setuptools-5.0.1.zip' u'setuptools-3.2.tar.gz' u'setuptools-0.6c4.tar.gz' u'setuptools-3.4.3.zip' u'setuptools-0.7.3.tar.gz' u'setuptools-4.0.tar.gz' u'setuptools-2.1.1.tar.gz' u'setuptools-5.0.2.tar.gz' u'setuptools-0.6c7.tar.gz' u'setuptools-0.7.5.tar.gz' u'setuptools-0.6b4.zip' u'setuptools-5.4.2.tar.gz' u'setuptools-3.4.2.tar.gz' u'setuptools-2.0.tar.gz' u'setuptools-5.3.tar.gz' u'setuptools-0.9.4.tar.gz' u'setuptools-3.4.1.tar.gz' u'setuptools-5.4.zip' u'setuptools-0.9.7.tar.gz' u'setuptools-0.9.6.tar.gz' u'setuptools-1.4.1.tar.gz' u'setuptools-5.8.zip' u'setuptools-3.7.zip' u'setuptools-3.3.tar.gz' u'setuptools-5.4.tar.gz' u'setuptools-1.3.2.tar.gz' u'setuptools-2.0.1.tar.gz' u'setuptools-5.4.1.tar.gz' u'setuptools-2.1.2.tar.gz' u'setuptools-1.1.5.tar.gz' u'setuptools-0.6c2.zip' u'setuptools-1.3.tar.gz' u'setuptools-1.3.1.tar.gz' u'setuptools-5.7.zip' u'setuptools-6.0.zip' u'setuptools-0.7.6.tar.gz' ====================================================================== FAIL: test_dist_reqts (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 314, in test_dist_reqts self.assertIsNotNone(dist) AssertionError: unexpectedly None ====================================================================== FAIL: test_dist_reqts_extras (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 322, in test_dist_reqts_extras self.assertIsNotNone(dist) AssertionError: unexpectedly None ====================================================================== FAIL: test_json (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 61, in test_json self.assertIn(LATEST_SARGE_VERSION, result) AssertionError: u'0.1.4' not found in {'digests': {}, 'urls': {}} ====================================================================== FAIL: test_prereleases (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 294, in test_prereleases self.assertIsNotNone(d) AssertionError: unexpectedly None ====================================================================== FAIL: test_scraper (test_locators.LocatorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_locators.py", line 76, in test_scraper self.assertIn('0.1', result) AssertionError: u'0.1' not found in {'digests': {}, 'urls': {}} ====================================================================== FAIL: test_package_data (test_util.UtilTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_util.py", line 466, in test_package_data self.assertTrue(data) AssertionError: {} is not true ----------------------------------------------------------------------
Thx for the cross test. This is what I mean. Matching your with FEATURES="network-sandbox" and after having removed test_search from test_index.py; ~/github/gentoo/dev-python/distlib $ PYTHON_TARGETS=python2_7 ebuild distlib-0.2.1.ebuild test * python2_7: running distutils-r1_run_phase python_test /usr/bin/python2.7 setup.py test running test (lots of dots and some 's') Ran 226 tests in 74.973s OK (skipped=13) * python2_7: running distutils-r1_run_phase _clean_egg_info >>> Completed testing dev-python/distlib-0.2.1. ------------------------------------------------------- ~/github/gentoo/dev-python/distlib $ PYTHON_TARGETS=pypy ebuild distlib-0.2.1.ebuild test (lots of dots and some 's') Ran 226 tests in 75.044s OK (skipped=14) * pypy: running distutils-r1_run_phase _clean_egg_info >>> Completed testing dev-python/distlib-0.2.1
(In reply to Ian Delaney from comment #10) As I mentioned in IRC, network-sandbox only works when you run portage as root. Otherwise, it is silently disabled.
It seems running as user doesn't invoke the full FEATURES="network-sandbox". Running as root I now replicate these failures. Ran 227 tests in 19.196s FAILED (failures=8, errors=2, skipped=14) * ERROR: dev-python/distlib-0.2.1::gentoo failed (test phase):
commit 36591fe050f9a043b56ef0546de18585d43db015 Author: Justin Lecher <jlec@gentoo.org> Date: Mon Dec 28 10:29:23 2015 +0100 dev-python/distlib: Fix varios test failures Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=558706 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=558708 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=569922 Package-Manager: portage-2.2.26 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36591fe050f9a043b56ef0546de18585d43db015