Skip to content

Pinto v0.058 fails to install #21

Closed
holybit opened this Issue Oct 13, 2012 · 24 comments

2 participants

@holybit
Collaborator
holybit commented Oct 13, 2012

Having trouble installing the latest. Not sure of the exact problems.

$ which perl
perl is /usr/local/perlbrew/perls/perl-5.14.2/bin/perl

$ perl -v

This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-thread-multi-ld

$ /usr/local/perlbrew/bin/cpanm Pinto
...
--> Working on common::sense
Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/common-sense-3.6.tar.gz ... OK
Configuring common-sense-3.6 ... OK
Building and testing common-sense-3.6 ... OK
Successfully installed common-sense-3.6
Building and testing JSON-XS-2.33 ... OK
Successfully installed JSON-XS-2.33
Building and testing JSON-2.53 ... OK
Successfully installed JSON-2.53
Building and testing Pinto-0.058 ... FAIL
! Installing Pinto failed. See /usr/local/tusko/fbl/perl-lib/.cpanm/build.log for details.
159 distributions installed

$ cat build.log 
cpanm (App::cpanminus) 1.5018 on perl 5.014002 built for x86_64-linux-thread-multi-ld
Work directory is /usr/local/tusko/fbl/perl-lib/.cpanm/work/1350166519.26870
You have make /usr/bin/make
You have LWP 6.04
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching PkgA on mirror file:///tmp/qvwNwwAy68/dev ...
Downloading index file file:///tmp/qvwNwwAy68/dev/modules/02packages.details.txt.gz ...
-> FAIL Finding PkgA () on mirror file:///tmp/qvwNwwAy68/dev failed.
! Couldn't find module or a distribution PkgA ()
-> FAIL Couldn't find module or a distribution PkgA ()
t/35-install.t ......... ok
Cannot find prerequisite PkgA~2 anywhere

Trace begun at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/Pinto/Exception.pm line 26
Pinto::Exception::throw('Cannot find prerequisite PkgA~2 anywhere') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1350165697.1019/Pinto-0.058/blib/lib/Pinto/Repository.pm line 450
Pinto::Repository::_find_or_pull_by_package_spec('Pinto::Repository=HASH(0x457c1b0)', 'Pinto::PackageSpec=HASH(0x5b880a0)', 'Pinto::Schema::Result::Stack=HASH(0x5fbe088)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1350165697.1019/Pinto-0.058/blib/lib/Pinto/Repository.pm line 410
Pinto::Repository::find_or_pull('Pinto::Repository=HASH(0x457c1b0)', 'target', 'Pinto::PackageSpec=HASH(0x5b880a0)', 'stack', 'Pinto::Schema::Result::Stack=HASH(0x5fbe088)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1350165697.1019/Pinto-0.058/blib/lib/Pinto/Action/Pull.pm line 87
Pinto::Action::Pull::_pull('Pinto::Action::Pull=HASH(0x5de9930)', undef, 'Pinto::Schema::Result::Stack=HASH(0x5fbe088)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1350165697.1019/Pinto-0.058/blib/lib/Pinto/Action/Pull.pm line 66
Pinto::Action::Pull::execute('Pinto::Action::Pull=HASH(0x5de9930)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1350165697.1019/Pinto-0.058/blib/lib/Pinto/Role/Committable.pm line 43
Pinto::Role::Committable::__ANON__ at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/Try/Tiny.pm line 71
eval {...} at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x5de9de0)', 'Try::Tiny::Catch=REF(0x5fcf860)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1350165697.1019/Pinto-0.058/blib/lib/Pinto/Role/Committable.pm line 44
Class::MOP::Class:::around('CODE(0x6059180)', 'Pinto::Action::Pull=HASH(0x5de9930)') called at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/x86_64-linux-thread-multi-ld/Class/MOP/Method/Wrapped.pm line 162
Class::MOP::Method::Wrapped::__ANON__('Pinto::Action::Pull=HASH(0x5de9930)') called at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/x86_64-linux-thread-multi-ld/Class/MOP/Method/Wrapped.pm line 91
Pinto::Action::Pull::execute('Pinto::Action::Pull=HASH(0x5de9930)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1350165697.1019/Pinto-0.058/blib/lib/Pinto.pm line 51
Pinto::__ANON__ at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/Try/Tiny.pm line 71
eval {...} at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x5de5410)', 'Try::Tiny::Catch=REF(0x5fa6728)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1350165697.1019/Pinto-0.058/blib/lib/Pinto.pm line 52
Pinto::run('Pinto=HASH(0x5dcc4e8)', 'Pull', 'targets', 'PkgA~2') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1350165697.1019/Pinto-0.058/blib/lib/Pinto/Tester.pm line 141
Pinto::Tester::run_ok('Pinto::Tester=HASH(0x5e187b8)', 'Pull', 'HASH(0x5fb6348)') called at t/36-revert.t line 40 at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1350165697.1019/Pinto-0.058/blib/lib/Pinto.pm line 52.
# Tests were run but no plan was declared and done_testing() was not seen.
t/36-revert.t .......... 
Dubious, test returned 2 (wstat 512, 0x200)
All 27 subtests passed 
t/37-replace.t ......... ok
t/40-locking.t ......... ok

Test Summary Report
-------------------
t/19-tester.t        (Wstat: 512 Tests: 53 Failed: 2)
  Failed tests:  35, 45
  Non-zero exit status: 2
t/36-revert.t        (Wstat: 512 Tests: 27 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=24, Tests=948, 108 wallclock secs ( 0.16 usr  0.03 sys + 67.89 cusr  4.44 csys = 72.52 CPU)
Result: FAIL
Failed 2/24 test programs. 2/948 subtests failed.
-> FAIL Installing Pinto failed. See /usr/local/tusko/fbl/perl-lib/.cpanm/build.log for details.
159 distributions installed
@thaljef
Owner
@holybit
Collaborator
@thaljef
Owner
@holybit
Collaborator
@thaljef
Owner
@holybit
Collaborator
@holybit
Collaborator
@thaljef
Owner
@holybit
Collaborator
@holybit
Collaborator
holybit commented Oct 20, 2012

Gave v0.059 a go just a bit ago and it failed. However, the problem right now is that HTTP::Status fails to install which has already been filled as a test bug on install. Hopefully that gets fixed ASAP and then I can see how the new version behaves install wise.

@thaljef
Owner
@holybit
Collaborator
holybit commented Oct 27, 2012

Same issue on v0.060 although had a bit of trouble with Moo's Role::Tiny due to this. Anyways, any day this week will work save Monday when I am mostly OOO. I'll try to email you Monday/Tuesday to set something up.

@holybit
Collaborator
@holybit
Collaborator
@thaljef
Owner
@holybit
Collaborator
@thaljef
Owner
@holybit
Collaborator
@holybit
Collaborator
holybit commented Nov 3, 2012

Two specific tests are failing.

First I rm -rf * from my local::lib $PERL5LIB. Next clear out my $PERL_CPANM_HOME. Then cpanm Pinto I get the same build.log failure messages included in my first post to this github issue. Digging deeper I cd $PERL_CPANM_HOME/work/1351914336.18065/Pinto-0.061 and then cpanm -v .

Building and testing Pinto-0.061 ... Building Pinto
t/00-compile.t ......... ok     
t/00-report-prereqs.t .. skipped: $ENV{AUTOMATED_TESTING} not set
t/02-config.t .......... ok   
t/03-package.t ......... ok    
t/04-distribution.t .... ok    
t/05-util.t ............ ok   
t/07-logger.t .......... ok   
t/09-init.t ............ ok    
t/10-compare.t ......... ok    
t/19-tester.t .......... 13/? 
#   Failed test 'Registration has correct package version'
#   at t/19-tester.t line 48.
#          got: '0'
#     expected: '0.0'

#   Failed test 'Registration has correct package version'
#   at t/19-tester.t line 51.
#          got: '0'
#     expected: '0.0'
# Looks like you failed 2 tests of 53.
t/19-tester.t .......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/53 subtests 
t/20-add.t ............. ok    
t/21-add-deep.t ........ ok     
t/22-list.t ............ ok    
t/23-pull.t ............ ok    
t/25-pull-multi.t ...... ok    
t/28-pin.t ............. ok     
t/29-pin-rjbs.t ........ ok    
t/30-stack.t ........... ok    
t/31-stack-props.t ..... ok   
t/32-dryrun.t .......... ok    
t/35-install.t ......... You will see some messages from cpanm, don't be alarmed...
t/35-install.t ......... 4/? Successfully installed DistC-2
Successfully installed DistB-1
Successfully installed DistA-1
3 distributions installed
t/35-install.t ......... 5/? Successfully installed DistC-1
1 distribution installed
t/35-install.t ......... 12/? ! Couldn't find module or a distribution PkgA ()
t/35-install.t ......... ok    
t/36-revert.t .......... ok     
t/37-replace.t ......... ok    
t/40-locking.t ......... ok    

Test Summary Report
-------------------
t/19-tester.t        (Wstat: 512 Tests: 53 Failed: 2)
  Failed tests:  35, 45
  Non-zero exit status: 2
Files=24, Tests=1027, 110 wallclock secs ( 0.17 usr  0.04 sys + 69.06 cusr  4.41 csys = 73.68 CPU)
Result: FAIL
Failed 1/24 test programs. 2/1027 subtests failed.

I dug some into Pinto::Tester::registration_ok but can't rapidly pinpoint what is causing the got value to be '0' instead of '0.0' for Test::Builder::is_eq.

@thaljef
Owner
@holybit
Collaborator
holybit commented Nov 3, 2012

Yes, correct. The problem is I can't replicate both consistently. The problem with t/19-tester.t is consistent from what I can tell. No matter how I build it there it is.

The other error which look like this:

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching PkgA on mirror file:///tmp/Jq5QPwtfm_/dev ...
Downloading index file file:///tmp/Jq5QPwtfm_/dev/modules/02packages.details.txt.gz ...
-> FAIL Finding PkgA () on mirror file:///tmp/Jq5QPwtfm_/dev failed.
! Couldn't find module or a distribution PkgA ()
-> FAIL Couldn't find module or a distribution PkgA ()
t/35-install.t ......... ok
Cannot find prerequisite PkgA~2 anywhere

Trace begun at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/Pinto/Exception.pm line 26
Pinto::Exception::throw('Cannot find prerequisite PkgA~2 anywhere') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1351921635.12888/Pinto-0.061/blib/lib/Pinto/Repository.pm line 456
Pinto::Repository::_find_or_pull_by_package_spec('Pinto::Repository=HASH(0x4546248)', 'Pinto::PackageSpec=HASH(0x5aa8f40)', 'Pinto::Schema::Result::Stack=HASH(0x5eb9d48)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1351921635.12888/Pinto-0.061/blib/lib/Pinto/Repository.pm line 416
Pinto::Repository::find_or_pull('Pinto::Repository=HASH(0x4546248)', 'target', 'Pinto::PackageSpec=HASH(0x5aa8f40)', 'stack', 'Pinto::Schema::Result::Stack=HASH(0x5eb9d48)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1351921635.12888/Pinto-0.061/blib/lib/Pinto/Action/Pull.pm line 87
Pinto::Action::Pull::_pull('Pinto::Action::Pull=HASH(0x5f72fe8)', undef, 'Pinto::Schema::Result::Stack=HASH(0x5eb9d48)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1351921635.12888/Pinto-0.061/blib/lib/Pinto/Action/Pull.pm line 66
Pinto::Action::Pull::execute('Pinto::Action::Pull=HASH(0x5f72fe8)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1351921635.12888/Pinto-0.061/blib/lib/Pinto/Role/Committable.pm line 43
Pinto::Role::Committable::__ANON__ at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/Try/Tiny.pm line 71
eval {...} at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x5c6c3e8)', 'Try::Tiny::Catch=REF(0x5eb5780)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1351921635.12888/Pinto-0.061/blib/lib/Pinto/Role/Committable.pm line 44
Class::MOP::Class:::around('CODE(0x5e4e628)', 'Pinto::Action::Pull=HASH(0x5f72fe8)') called at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/x86_64-linux-thread-multi-ld/Class/MOP/Method/Wrapped.pm line 162
Class::MOP::Method::Wrapped::__ANON__('Pinto::Action::Pull=HASH(0x5f72fe8)') called at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/x86_64-linux-thread-multi-ld/Class/MOP/Method/Wrapped.pm line 91
Pinto::Action::Pull::execute('Pinto::Action::Pull=HASH(0x5f72fe8)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1351921635.12888/Pinto-0.061/blib/lib/Pinto.pm line 51
Pinto::__ANON__ at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/Try/Tiny.pm line 71
eval {...} at /home/jcrotty/perl5-perlib-maint/perl-5.14.2/lib/perl5/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x5c7dfa8)', 'Try::Tiny::Catch=REF(0x5e0e5e8)') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1351921635.12888/Pinto-0.061/blib/lib/Pinto.pm line 52
Pinto::run('Pinto=HASH(0x5c6aa50)', 'Pull', 'targets', 'PkgA~2') called at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1351921635.12888/Pinto-0.061/blib/lib/Pinto/Tester.pm line 141
Pinto::Tester::run_ok('Pinto::Tester=HASH(0x55f2578)', 'Pull', 'HASH(0x5562938)') called at t/36-revert.t line 40 at /usr/local/jcrotty/repos/git/poma_tusko_backend/perl-lib/.cpanm/work/1351921635.12888/Pinto-0.061/blib/lib/Pinto.pm line 52.
# Tests were run but no plan was declared and done_testing() was not seen.
t/36-revert.t .......... 
Dubious, test returned 2 (wstat 512, 0x200)
All 27 subtests passed 
t/37-replace.t ......... ok
t/40-locking.t ......... ok

Test Summary Report
-------------------
t/19-tester.t        (Wstat: 512 Tests: 53 Failed: 2)
  Failed tests:  35, 45
  Non-zero exit status: 2
t/36-revert.t        (Wstat: 512 Tests: 27 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=24, Tests=950, 109 wallclock secs ( 0.17 usr  0.04 sys + 68.71 cusr  4.49 csys = 73.41 CPU)
Result: FAIL
Failed 2/24 test programs. 2/950 subtests failed.

is ephemeral appearing say once every 10-15 builds and I can't figure out how to replicate consistently.

@thaljef
Owner
@thaljef
Owner
thaljef commented Dec 10, 2012

I haven't seen this come up with CPAN Testers in the last week or so. Maybe things are just slow because of the holidays. Or maybe it got fixed in some upstream dependency (which is where I suspect the problem is).

I've still never reproduced it locally (using any version of Pinto).

@thaljef
Owner
thaljef commented Mar 17, 2013

I finally figured out what caused this test failure. It was basically a race condition. So sometimes you hit it, and sometimes you didn't. This has been fixed in Pinto-0.065_01.

@thaljef thaljef closed this Mar 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.