Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532216 - =dev-haskell/http-client-0.3.3.2 with FEATURES=network-sandbox fails tests Network.HTTP.Client
Summary: =dev-haskell/http-client-0.3.3.2 with FEATURES=network-sandbox fails tests Ne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-11 00:22 UTC by eroen
Modified: 2014-12-15 14:04 UTC (History)
0 users

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


Attachments
dev-haskell:http-client-0.3.3.2:20141211-002027.log (dev-haskell:http-client-0.3.3.2:20141211-002027.log,10.13 KB, text/plain)
2014-12-11 00:22 UTC, eroen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2014-12-11 00:22:16 UTC
Created attachment 391404 [details]
dev-haskell:http-client-0.3.3.2:20141211-002027.log

Network.HTTP.Client
  Client
    - works FAILED [1]

    fails on empty hostnames #40
      - http://
      - https://
      - http://:8000
      - https://:8001

    - redirecting #41
spec: send: resource vanished (Broken pipe)
spec: recv: invalid argument (Bad file descriptor)
    - redirectCount=0
spec: send: resource vanished (Broken pipe)
spec: recv: invalid argument (Bad file descriptor)
    - connecting to missing server gives nice error message

    extra headers after 100 #49
      - False
spec: send: resource vanished (Broken pipe)
spec: recv: invalid argument (Bad file descriptor)
      - True

1) Network.HTTP.Client.Client works
uncaught exception: HttpException (FailedConnectionException2 "www.yesodweb.com" 80 False getAddrInfo: does not exist (System error))

Randomized with seed 1216167470

Finished in 0.8498 seconds
27 examples, 1 failure
spec: send: resource vanished (Broken pipe)
spec: recv: invalid argument (Bad file descriptor)
Test suite spec: FAIL
Test suite logged to: dist/test/http-client-0.3.3.2-spec.log
0 of 1 test suites (0 of 1 test cases) passed.
 * ERROR: dev-haskell/http-client-0.3.3.2::gentoo failed (test phase):
 *   cabal test failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_test
 *   environment, line 2798:  Called haskell-cabal_src_test
 *   environment, line 1924:  Called die
 * The specific snippet of code:
 *           ./setup "$@" || die "cabal test failed";
Comment 1 eroen 2014-12-11 00:29:13 UTC
eroen@falcon ~ $ emerge --info '=dev-haskell/http-client-0.3.3.2::gentoo'
Portage 2.2.15 (python 2.7.8-final-0, default/linux/amd64/13.0, gcc-4.9.1, glibc-2.20, 3.16.3.e0-falcon1+ x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.3.e0-falcon1+-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     4043320 total,    831516 free
KiB Swap:    8388604 total,   5992996 free
Timestamp of tree: Wed, 10 Dec 2014 12:45:01 +0000
sh bash 4.3_p30-r1
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2 [disabled]
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1
dev-lang/python:          2.7.8, 3.2.5-r6, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r4, 1.11.6-r1, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.5.4, 4.6.4, 4.7.4, 4.8.3, 4.9.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo crossdev gamerlay eroen
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3 --nospinner --quiet-build --verbose-conflicts --with-bdeps=y --binpkg-respect-use y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox 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=""
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -l6"
PKGDIR="/var/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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/gamerlay /var/lib/layman/eroen"
USE="X a52 aac acl alsa amd64 ao berkdb bluray bs2b bzip2 cairo calendar caps cdda cdio cli cracklib crypt cups curl cxx dbus djvu dri dts dvd exif fam ffmpeg fftw fits flac fontconfig fortran fuse gcrypt gd gdbm gif gimp git gmp gnutls gstreamer highlight iconv icu id3tag idn imagemagick ipv6 jpeg jpeg2k kde ladspa lcms libass libcaca libnotify lzma lzo mad midi mikmod mms mmx mmxext mng modplug modules mp3 mp4 mpeg mplayer mtp multilib musepack ncurses netlink nls nptl offensive ogg openal opencl openexr opengl openmp opus pam pango pcre pdf png pnm portaudio postscript qalculate qt3support qt4 rar raw readline rtmp samba scanner session sndfile speex sse sse2 sse3 ssl ssse3 svg tcpd theora threads tiff truetype udev unicode usb v4l vdpau vnc vorbis wavpack webp wmf x264 xattr xcb xft xine xinerama xrandr xv xvid zlib" ABI_X86="32 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" CURL_SSL="openssl" 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" GRUB_PLATFORMS="efi-64 pc qemu" INPUT_DEVICES="evdev keyboard mouse synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="en en_US en_GB nb no nb_NO" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="m68k ppc x86_64" RUBY_TARGETS="ruby20" SANE_BACKENDS="net plustek pnm" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia vesa" XFCE_PLUGINS="clock trash" 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"
USE_PYTHON="2.7 3.2 3.3 3.4"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

eroen@falcon ~ $ emerge -pqv '=dev-haskell/http-client-0.3.3.2::gentoo'
[ebuild     U ] dev-haskell/http-client-0.3.3.2 [0.2.2.2] USE="{test} -doc -hscolour -profile" 

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-haskell/http-client:0

  (dev-haskell/http-client-0.3.3.2:0/0.3.3.2::gentoo, ebuild scheduled for merge) pulled in by
    =dev-haskell/http-client-0.3.3.2::gentoo (Argument)

  (dev-haskell/http-client-0.2.2.2:0/0.2.2.2::gentoo, installed) pulled in by
    >=dev-haskell/http-client-0.2:0/0.2.2.2= required by (dev-haskell/http-client-multipart-0.2.0.0:0/0.2.0.0::gentoo, installed)
                                 ^^^^^^^^^^^                                                                                                                         
    >=dev-haskell/http-client-0.2:0/0.2.2.2= required by (dev-haskell/http-client-conduit-0.2.0.1:0/0.2.0.1::gentoo, installed)
                                 ^^^^^^^^^^^                                                                                                                       
    >=dev-haskell/http-client-0.2.0.2:0/0.2.2.2= required by (dev-haskell/http-conduit-2.0.0.8:0/2.0.0.8::gentoo, installed)
                                     ^^^^^^^^^^^                                                                                                                
    >=dev-haskell/http-client-0.2.2:0/0.2.2.2= required by (dev-haskell/http-client-tls-0.2.1.1:0/0.2.1.1::gentoo, installed)
                                   ^^^^^^^^^^^                                                                                                                   



!!! The following installed packages are masked:
- dev-db/mysql-5.5.37-r1::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Sergey Popov <pinkbyte@gentoo.org> (04 Sep 2014)
# Security mask, wrt bugs #488212, #498164, #500260,
# #507802 and #518718

- app-antivirus/clamav-0.98.4::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Sergey Popov <pinkbyte@gentoo.org> (09 Dec 2014)
# Security mask, wrt bug #529728

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 2 Michael Orlitzky gentoo-dev 2014-12-11 19:51:16 UTC
Some of these tests should work in the sandbox, but right now they're all part of the same suite. I've opened an issue on Github to see if upstream would be willing to split them:

  https://github.com/snoyberg/http-client/issues/92
Comment 3 Michael Orlitzky gentoo-dev 2014-12-15 14:04:58 UTC
The split test suite has been merged upstream (thanks Michael!) and released as version 0.4.6.1. I've added that version to the tree, and also set RESTRICT=test in v0.3.3.2 so you shouldn't get compilation failures on that version at least:

*http-client-0.4.6.1 (15 Dec 2014)

  15 Dec 2014; Michael Orlitzky <mjo@gentoo.org> +http-client-0.4.6.1.ebuild,
  -http-client-0.4.6.ebuild, http-client-0.3.3.2.ebuild:
  Restrict tests in v0.3.3.2 and version bump to fix bug #532216.

If any of the older ebuilds have the same problem, we can add the test restriction to them, too.