Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540558 - dev-perl/File-ShareDir-Install-0.90.0 randomly fail test
Summary: dev-perl/File-ShareDir-Install-0.90.0 randomly fail test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 19:13 UTC by Alex Efros
Modified: 2016-12-19 11:00 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 Alex Efros 2015-02-18 19:13:55 UTC
This perl module fail tests while emerge in most cases, but sometimes it pass them.
When running tests manually it's nearly always pass them, and only once I've seen it fail manual tests too.
List of failed tests also may differ.

# emerge -1 File-ShareDir-Install
...
>>> Source compiled.
>>> Test phase: dev-perl/File-ShareDir-Install-0.90.0
 * Test::Harness Jobs=25
make -j25 test TEST_VERBOSE=0 
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_pod.t ........... skipped: these tests are for authors only        
t/02_pod_coverage.t .. skipped: these tests are for authors only        
t/00_compile.t ....... ok                                               
===(       2;1   1/16  0/9  0/7 )=======================================rename MakeMaker.tmp => test-16561-Makefile: No such file or directory at /usr/lib/perl5/vendor_perl/5.20.2/ExtUtils/MakeMaker.pm line 1188.
...
Test Summary Report
-------------------
t/12_delete.t      (Wstat: 512 Tests: 4 Failed: 4)
  Failed tests:  1-4
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 7 tests but ran 4.
t/11_dotfile.t     (Wstat: 512 Tests: 5 Failed: 1)
  Failed test:  2
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 9 tests but ran 5.
Files=6, Tests=26,  1 wallclock secs ( 0.03 usr  0.01 sys +  1.13 cusr  0.04 csys =  1.21 CPU)
Result: FAIL
Failed 2/6 test programs. 5/26 subtests failed.
Makefile:811: recipe for target 'test_dynamic' failed

# cd /var/tmp/portage/dev-perl/File-ShareDir-Install-0.90.0/work/File-ShareDir-Install-0.09/
# sudo -u portage make -j25 test TEST_VERBOSE=0
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_compile.t ....... ok   
t/01_pod.t ........... skipped: these tests are for authors only
t/02_pod_coverage.t .. skipped: these tests are for authors only
t/10_makefile.t ...... ok     
t/11_dotfile.t ....... ok   
t/12_delete.t ........ ok   
All tests successful.
Files=6, Tests=33,  1 wallclock secs ( 0.02 usr  0.01 sys +  1.25 cusr  0.06 csys =  1.34 CPU)
Result: PASS

# ebuild /usr/portage/dev-perl/File-ShareDir-Install/File-ShareDir-Install-0.90.0.ebuild test
Forcing test.
>>> Existing ${T}/environment for 'File-ShareDir-Install-0.90.0' will be
>>> sourced. Run 'clean' to start with a fresh environment.
>>> Checking File-ShareDir-Install-0.09.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
 * checking ebuild checksums ;-) ...                                                         [ ok ]
 * checking miscfile checksums ;-) ...                                                       [ ok ]
>>> It appears that 'pretend' has already executed for 'File-ShareDir-Install-0.90.0'; skipping.
>>> Remove '/var/tmp/portage/dev-perl/File-ShareDir-Install-0.90.0/.pretended' to force pretend.
>>> It appears that 'setup' has already executed for 'File-ShareDir-Install-0.90.0'; skipping.
>>> Remove '/var/tmp/portage/dev-perl/File-ShareDir-Install-0.90.0/.setuped' to force setup.
>>> It appears that 'unpack' has already executed for 'File-ShareDir-Install-0.90.0'; skipping.
>>> Remove '/var/tmp/portage/dev-perl/File-ShareDir-Install-0.90.0/.unpacked' to force unpack.
>>> It appears that 'prepare' has already executed for 'File-ShareDir-Install-0.90.0'; skipping.
>>> Remove '/var/tmp/portage/dev-perl/File-ShareDir-Install-0.90.0/.prepared' to force prepare.
>>> It appears that 'configure' has already executed for 'File-ShareDir-Install-0.90.0'; skipping.
>>> Remove '/var/tmp/portage/dev-perl/File-ShareDir-Install-0.90.0/.configured' to force configure.
>>> It appears that 'compile' has already executed for 'File-ShareDir-Install-0.90.0'; skipping.
>>> Remove '/var/tmp/portage/dev-perl/File-ShareDir-Install-0.90.0/.compiled' to force compile.
>>> Test phase: dev-perl/File-ShareDir-Install-0.90.0
 * Test::Harness Jobs=25
make -j25 test TEST_VERBOSE=0 
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_pod.t ........... skipped: these tests are for authors only        
t/02_pod_coverage.t .. skipped: these tests are for authors only        
t/00_compile.t ....... ok                                               
===(       2;0   0/16  0/9  1/7 )=======================================rename MakeMaker.tmp => test-17850-Makefile: No such file or directory at /usr/lib/perl5/vendor_perl/5.20.2/ExtUtils/MakeMaker.pm line 1188.
rename MakeMaker.tmp => test-17849-Makefile: No such file or directory at /usr/lib/perl5/vendor_perl/5.20.2/ExtUtils/MakeMaker.pm line 1188.
===(       7;0   1/16  2/9  3/7 )=======================================
#   Failed test 'Created test-17850-Makefile'
#   at t/11_dotfile.t line 54.
Can't open test-17850-Makefile: No such file or directory at t/11_dotfile.t line 49.
Use of uninitialized value $content in pattern match (m//) at t/11_dotfile.t line 56.
...
Test Summary Report
-------------------
t/11_dotfile.t     (Wstat: 512 Tests: 5 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 9 tests but ran 5.
t/10_makefile.t    (Wstat: 512 Tests: 6 Failed: 5)
  Failed tests:  1-5
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 16 tests but ran 6.
Files=6, Tests=19,  0 wallclock secs ( 0.04 usr  0.00 sys +  0.76 cusr  0.05 csys =  0.85 CPU)
Result: FAIL
Failed 2/6 test programs. 7/19 subtests failed.
Makefile:809: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255




Portage 2.2.14 (python 3.3.5-final-0, hardened/linux/x86, gcc-4.8.3, glibc-2.19-r1, 3.17.7-hardened-r1 i686)
=================================================================
System uname: Linux-3.17.7-hardened-r1-i686-Intel-R-_Xeon-R-_CPU_X5680_@_3.33GHz-with-gentoo-2.2
KiB Mem:    16613200 total,   2527060 free
KiB Swap:    4194300 total,   4145268 free
Timestamp of tree: Tue, 17 Feb 2015 06:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-lang/perl:            5.20.2
dev-lang/python:          2.7.9-r1, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.9
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo perl-experimental-snapshots powerman local
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /service /usr/inferno/keydb /usr/inferno/lib /usr/inferno/services /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/log /var/qmail/alias /var/qmail/control"
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="-march=native -O2 -pipe"
DISTDIR="/usr/portage-distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask-write"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirror.leaseweb.com/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://gentoo.modulix.net/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j25"
PKGDIR="/usr/portage-packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded"
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="/var/lib/layman/perl-experimental-snapshots /var/lib/layman/powerman /usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="adns aes bash-completion berkdb bzip2 caps cli cracklib crypt cxx dri fontconfig gdbm gif gnutls gpg hardened iconv icu idn ipv6 jpeg jpeg2k libav mbox mmx mmxext mng modules ncurses network-cron nls nptl openmp pam pax_kernel pcre perl pic png popcnt readline session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 svg tcpd tiff truetype udev unicode urandom vim-syntax x86 xattr xtpax zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="log_config vhost_alias autoindex alias rewrite dir deflate filter mime negotiation auth_basic authn_file authz_host authz_user authz_groupfile cgi actions headers env setenvif" 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="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" 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" LINGUAS="en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi fancyindex" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2016-12-19 11:00:45 UTC
I believe this is fixed by workaround of forcing only single-threaded testing. 

commit a2a2bc93731d458c2413e7426809decaede0d342
Author: Kent Fredric <kentnl@gentoo.org>
Date:   Mon Aug 15 12:42:46 2016 +1200

    dev-perl/File-ShareDir-Install: Disable parallel testing
    
    Upstream is still broken on this.


Please reopen this bug if that is not the case.