Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325745 - dev-ruby/json-1.4.3-r2 test failed
Summary: dev-ruby/json-1.4.3-r2 test failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-26 18:56 UTC by David Abbott
Modified: 2011-12-26 11:17 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,283 bytes, text/plain)
2010-06-26 18:57 UTC, David Abbott (RETIRED)
Details
emerge --info (emerge_info_x86.txt,4.00 KB, text/plain)
2010-06-26 18:57 UTC, David Abbott (RETIRED)
Details
build.log (build.log,8.20 KB, text/plain)
2010-06-26 19:00 UTC, David Abbott (RETIRED)
Details
dev-ruby:json-1.4.6:20101102-043955.log [hppa, fails same test] (20101102-043955.log,13.00 KB, text/plain)
2010-11-02 06:31 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Abbott (RETIRED) gentoo-dev 2010-06-26 18:56:26 UTC
Started
................................/lib/json/pure/parser.rb:196: warning: Float 23456789012E666 out of range
............F..
Finished in 0.817809 seconds.

  1) Failure:
test_symbol(TC_JSONRails) [./tests/test_json_rails.rb:142]:
<"\"foo\""> expected but was
<"{\"json_class\":\"Symbol\",\"s\":\"foo\"}">.

46 tests, 1913 assertions, 1 failures, 0 errors
rake aborted!
Command failed with status (1): [/usr/bin/ruby18 -S testrb ./tests/test_jso...]
/var/tmp/portage/dev-ruby/json-1.4.3-r2/work/ruby18/json-1.4.3/Rakefile:44:in `myruby'
(See full trace by running task with --trace)
 * ERROR: dev-ruby/json-1.4.3-r2 failed:
 *   pure ruby tests failed
 * 


Reproducible: Always
Comment 1 David Abbott (RETIRED) gentoo-dev 2010-06-26 18:57:08 UTC
Created attachment 236665 [details]
build.log
Comment 2 David Abbott (RETIRED) gentoo-dev 2010-06-26 18:57:49 UTC
Created attachment 236667 [details]
emerge --info
Comment 3 David Abbott (RETIRED) gentoo-dev 2010-06-26 19:00:53 UTC
Created attachment 236669 [details]
build.log
Comment 4 Hans de Graaff gentoo-dev Security 2010-08-28 08:18:05 UTC
I can't reproduce this error on amd64.
Comment 5 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-10-02 13:59:46 UTC
I get this same exact test error on amd64 for dev-ruby/json-1.4.6 with ruby-1.8.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-02 06:31:32 UTC
Created attachment 252861 [details]
dev-ruby:json-1.4.6:20101102-043955.log [hppa, fails same test]

Tue Nov  2 07:24:24 CET 2010
FEATURES variable contains unknown value(s): preserve-libs
Portage 2.1.9.24 (default/linux/hppa/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12-JeR parisc)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r12-JeR-parisc-PA8700_-PCX-W2-with-gentoo-2.0.1
Timestamp of tree: Tue, 02 Nov 2010 04:45:03 +0000
distcc 3.1 hppa2.0-unknown-linux-gnu [enabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3, 2.19.1-r1, 2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="hppa"
ACCEPT_LICENSE="* -@EULA"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-mschedule=8000 -march=2.0 -ggdb -pipe -Wall -O2"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/share/X11/xkb /usr/share/openvpn/easy-rsa /var/bind /var/spool/fax/etc /var/spool/torque /var/www/localhost/htdocs/wordpress/wp-config.php"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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="-mschedule=8000 -march=2.0 -ggdb -pipe -Wall -O2"
DISTDIR="/aches/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distcc distlocks fixlafiles fixpackages news notitles parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS="-mschedule=8000 -march=2.0 -ggdb -pipe -Wall -O2"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://mirror.netcologne.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ "
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en nl he"
MAKEOPTS="-j4"
PKGDIR="/keeps/gentoo/packages/elmer"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/alt"
PORTDIR="/keeps/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib abyss accessibility acl ads agg alsa amr amrnb amrwb ao aoss apis ares artist-screen asf ass assistant async asyncns audiofile audit automount avfs bash-completion berkdb bidi bittorrent bittorrent-external bl bluetooth bzip2 c++ cairo caps captury catalogs cblas cdb cddb cdparanoia cdr chardet cjk clarens cleartype cli colors contrast cpath cracklib crypt cups curl custom-cflags custom-cxxflags cxx dbi dbtool dbus designer designer-plugin device-mapper dga dia dirac directfb djbfft djvu domainkeys dri drm dts dv dvd dvdr dvdread ebook edl elf emacs enca encode esd examples exceptions exif expat facebook fame fastbuild fastcgi fbcon ffmpeg filter fits flac fluidsynth fontconfig foomaticdb fortran frei0r ftp fts3 gadu galago games gcrypt gd gdbm geant4 geoip ggi gif gimp gimpprint glep glib glut gmp gnokii gnutls gphoto2 gpm gps gs gsl gsm gtk gtk2 gtkhtml guidexml guile hal hepmc hesiod hotpixels hppa i18n ical icecast iconv icu idea idn imagemagick imlib indi inquisitio ipv6 isc ithreads jabber jack javascript jbig jingle jpeg jpeg2k judy kpathsea lapack lasi latex lcms ldap leim lensfun libass libcaca libffi libmms libotf libsamplerate libwww live logrotate logwatch lua lyrics-screen lzma lzo mad manhole matroska mbrola mem-scramble memcache metis mhash midi mikmod mmap mng modplug modules motif mozbranding mp3 mplayer mssql mudflap musepack musicbrainz mysql nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nas ncurses netpbm network-cron nfconntrack nfs nls nntp nova nptl nptlonly nsplugin ntlm offensive ogg openal openexr opengl openmp openssl optimization oss ots overlays pam pango pbs pch pcre pdf pdo-external perl php plasma plotutils plugins png policykit portage portaudio postgres povray ppds pppd pulseaudio python pyzord qalculate qdbm qt3support qt4 quotas raw readline recode rle rpc rrdtool rtc rtmp ruby ruby18 samba sasl scanner scim sdl seamonkey secure-delete server session sid slang slp smi sms sndfile snmp soap song-screen soundex speex spell spoof-source sqlite srt srtp ssh ssl startup-notification strong-optimization subtitles subversion suhosin supernodal svg swat sysfs syslog system-sqlite talkfilters tcl tcpd test tftp tga theora threads thumbnail thunar thunar-vfs tidy tiff timezone timidity tk tokyocabinet tools truetype tslib tunepimp twolame udev unicode unzip urandom usb userlocales utempter utf v4l v4l2 vanim vcd vidix vim-syntax vorbis watchdog wavpack webdav webinstall wildmidi winbind wlan wma wmf xanim xattr xcb xchattext xcomposite xface xlisten xml xml2 xmp xmpi xorg xpm xrandr xscreensaver xsettings xulrunner xv xvid xvmc zip zip-external zlib" ALSA_CARDS="ad1889 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_ftp proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias asis authn_alias cern_meta charset_lite dumpio log_forensic substitute version" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev joystick keyboard mouse acecad aiptek calcomp citron digitaledge dmc dynapro elo2300 elographics fpit hyperpen jamstudio magellan microtouch mutouch palmax penmount spaceorb summa synaptics tek4957 tslib ur98 virtualbox wacom void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl he" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="stifb fbdev none dummy" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-ruby/json-1.4.6 was built with the following:
USE="test -doc" RUBY_TARGETS="ruby18 -jruby -ree18"
Comment 7 Hans de Graaff gentoo-dev Security 2010-11-03 18:40:20 UTC
This seems to be related to the way the environment is handled while moving from the ebuild to the actual test, but I can't pinpoint the actual cause.

In json-1.4.6-r1 I've now simplified the way these tests are run, cutting out a middle man, which may solve this issue. I would appreciate some feedback on this.
Comment 8 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-11-04 00:37:16 UTC
(In reply to comment #7)
> In json-1.4.6-r1 I've now simplified the way these tests are run, cutting out a
> middle man, which may solve this issue. I would appreciate some feedback on
> this.

I still get the same error:
<"\"foo\""> expected but was
<"{\"json_class\":\"Symbol\",\"s\":\"foo\"}">.
Comment 9 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-11-04 14:35:04 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > In json-1.4.6-r1 I've now simplified the way these tests are run, cutting out a
> > middle man, which may solve this issue. I would appreciate some feedback on
> > this.

OK, I checked again today and they work for me. I was testing an older version of the ebuild accidentally ;-).