Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 17749
Status: resolved
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: slanning [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: t/30shell fails
t/30shell.........1..63 ok 1 - use Digest::SHA; ok 2 - use Term::ReadKey; ok 3 - use Term::ReadLine; ok 4 - use Text::Glob; ok 5 - histsize is 100 # GOT: # cpan shell -- CPAN exploration and modules installation (v1.85) # ReadLine support enabled # # cpan> ok 6 - empty test # NEXT: o conf build_cache # EXPECT: build_cache(?s:.*cpan[^>]*>) # GOT: o conf build_cache # build_cache [100] # # cpan> ok 7 - o conf build_cache # NEXT: o conf init # EXPECT: initialized(?s:.*manual.*configuration.*\]) # GOT: o conf init # # /root/.cpan/build/CPAN-1.85/t/CPAN/MyConfig.pm initialized. # # # CPAN is the world-wide archive of perl resources. It consists of about # 100 sites that all replicate the same contents all around the globe. # Many countries have at least one CPAN site already. The resources # found on CPAN are easily accessible with the CPAN.pm module. If you # want to use CPAN.pm, you have to configure it properly. # # If you do not want to enter a dialog now, you can answer 'no' to this # question and I'll try to autoconfigure. (Note: you can revisit this # dialog anytime later by typing 'o conf init' at the cpan prompt.) # # Are you ready for manual configuration? [yes] ok 8 - o conf init # NEXT: nothanks # EXPECT: wrote(?s:.*cpan[^>]*>) # GOT: nothanks # # # The following questions are intended to help you with the # configuration. The CPAN module needs a directory of its own to cache # important index files and maybe keep a temporary mirror of CPAN files. # This may be a site-wide directory or a personal directory. # # # # I see you already have a directory # /root/.cpan # Shall we use it as the general CPAN build and cache directory? # # CPAN build and cache directory? [/root/.cpan] [ ... followed by normal CPAN config questions ...] # cpan> ok 9 - nothanks # NEXT: # o debug all # EXPECT: (?s:.*cpan[^>]*>) # GOT: # o debug all # Unknown shell command '#'. Type ? for help. # # cpan> ok 10 - \# o debug all # NEXT: o conf histsize 101 # EXPECT: . histsize.+101(?s:.*cpan[^>]*>) # GOT: o conf histsize 101 # histsize [101] # # cpan> ok 11 - o conf histsize 101 # NEXT: o conf commit # EXPECT: wrote(?s:.*cpan[^>]*>) # GOT: o conf commit # commit: wrote '/root/.cpan/build/CPAN-1.85/t/CPAN/MyConfig.pm' # # cpan> ok 12 - o conf commit # NEXT: o conf histsize 102 # EXPECT: . histsize.+102(?s:.*cpan[^>]*>) # GOT: o conf histsize 102 # histsize [102] # # cpan> ok 13 - o conf histsize 102 # NEXT: o conf defaults # EXPECT: (?s:.*cpan[^>]*>) # GOT: o conf defaults # # cpan> ok 14 - o conf defaults # NEXT: o conf histsize # EXPECT: histsize.+101(?s:.*cpan[^>]*>) # GOT: o conf histsize # histsize [101] # # cpan> ok 15 - o conf histsize # NEXT: o conf urllist # EXPECT: file:///.*CPAN(?s:.*cpan[^>]*>) # timed out on i[10]prog[o conf urllist] # expected[file:///.*CPAN(?s:.*cpan[^>]*>)] # got[o conf urllist # urllist # [file:///home/slanning/perl/cpan] # Type 'o conf' to view all configuration items # # # cpan> ] # # Looks like you planned 63 tests but only ran 15. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 16-63 Failed 48/63 tests, 23.81% okay
Subject: Re: [rt.cpan.org #17749] t/30shell fails
Date: Mon, 20 Feb 2006 20:52:35 +0100
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Mon, 20 Feb 2006 08:37:16 -0500 (EST), " via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
vr> # NEXT: o conf urllist vr> # EXPECT: file:///.*CPAN(?s:.*cpan[^>]*>) vr> # timed out on i[10]prog[o conf urllist] vr> # expected[file:///.*CPAN(?s:.*cpan[^>]*>)] vr> # got[o conf urllist vr> # urllist vr> # [file:///home/slanning/perl/cpan] vr> # Type 'o conf' to view all configuration items vr> # vr> # vr> # cpan> ] vr> # vr> # Looks like you planned 63 tests but only ran 15. vr> dubious vr> Test returned status 255 (wstat 65280, 0xff00) vr> DIED. FAILED tests 16-63 vr> Failed 48/63 tests, 23.81% okay
Sorry, my phantasy is not able to imagine why this is happening:-( Can you show me the exact command you ran to get te result? It does't look like 'make test'. -- andreas
On Mon Feb 20 2006, andreas.koenig.gmwojprw@franz.ak.mind.de wrote: Show quoted text
> Can you show me the exact command you ran to get te result? It does't > look like 'make test'.
make test TEST_VERBOSE=1 If it matters, the CPAN I use is a local rsync copy. CPAN.pm $VERSION is '1.76_02' (currently). Since maybe that version is the problem, I installed 1.76 from backpan.cpan.org, but the same problems occured. The error part of the `make test` (no verbose) output follows. t/30shell.........ok 9/64# timed out on i[10]prog[o conf urllist] # expected[file:///.*CPAN(?s:.*cpan[^>]*>)] # got[o conf urllist # Debug(CPAN:-e,1,[CPAN::shell,1,UNDEF,UNDEF,UNDEF]): line[o|conf|urllist] # Debug(Shell:/root/.cpan/build/CPAN-1.86/blib/lib/CPAN.pm,213,[CPAN::Shell::o,1,UNDEF,UNDEF,UNDEF]): o_type[conf] o_what[urllist] # # Debug(HandleConfig:/root/.cpan/build/CPAN-1.86/blib/lib/CPAN.pm,1398,[CPAN::HandleConfig::edit,1,0,UNDEF,UNDEF]): self[CPAN::HandleConfig]args[urllist] # Debug(HandleConfig:/root/.cpan/build/CPAN-1.86/blib/lib/CPAN.pm,1398,[CPAN::HandleConfig::edit,1,0,UNDEF,UNDEF]): o[urllist] # Debug(HandleConfig:/root/.cpan/build/CPAN-1.86/blib/lib/CPAN.pm,1398,[CPAN::HandleConfig::edit,1,0,UNDEF,UNDEF]): func[] # urllist # [file:///home/slanning/perl/cpan] # Type 'o conf' to view all configuration items # # # cpan> ] # # Looks like you planned 64 tests but only ran 15. t/30shell.........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 16-64 Failed 49/64 tests, 23.44% okay
Subject: Re: [rt.cpan.org #17749] t/30shell fails
Date: Tue, 21 Feb 2006 12:52:47 +0100
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Tue, 21 Feb 2006 04:33:15 -0500 (EST), " via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
Show quoted text
> On Mon Feb 20 2006, andreas.koenig.gmwojprw@franz.ak.mind.de wrote:
>> Can you show me the exact command you ran to get te result? It does't >> look like 'make test'.
Show quoted text
> make test TEST_VERBOSE=1
Show quoted text
> If it matters, the CPAN I use is a local rsync copy. > CPAN.pm $VERSION is '1.76_02' (currently). Since maybe that > version is the problem, I installed 1.76 from backpan.cpan.org, > but the same problems occured. The error part of the `make test` > (no verbose) output follows.
That explains everything. No, current version is 1.86 an only that will pass all the tests. There is also a 1.86_51 in my CPAN directory. The test is not written for 1.76_xx. -- andreas
On Tue Feb 21 2006, andreas.koenig.gmwojprw@franz.ak.mind.de wrote: Show quoted text
> That explains everything. No, current version is 1.86 an only that > will pass all the tests. There is also a 1.86_51 in my CPAN directory. > > The test is not written for 1.76_xx.
Oh, no, sorry I didn't explain it correctly. I meant that 1.76 is my current version of CPAN (just in case not upgrading to version 1.83, for example, might've had an effect) The version I'm trying to install is indeed 1.86. Now I'm trying 1.86_51 instead. It still has the same problem. It successfully runs tests t/30shell until 11/66, but after that it kind of hangs for a while and times out. Here is what it looks like as I run `make test` from the command-line (not from the CPAN shell, to remove the possibility that the current CPAN shell is interfering): [...] t/11mirroredby....ok t/12cpan..........ok t/30shell.........ok 11/66# timed out on i[11]prog[o conf urllist] # expected[file:///.*?CPAN(?s:.*?cpan[^>]*?>)] # got[o conf urllist # urllist # [file:///home/slanning/perl/cpan] # Type 'o conf' to view all configuration items # # # cpan> ] # # Looks like you planned 66 tests but only ran 17. t/30shell.........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 18-66 Failed 49/66 tests, 25.76% okay t/50pod...........ok or with `make test TEST_VERBOSE=1`, t/30shell.........1..66 ok 1 - use Digest::SHA; ok 2 - use Term::ReadKey; ok 3 - use Term::ReadLine; ok 4 - use Text::Glob; ok 5 - histsize is 100 ok 6 - RUN_EXPECT[1] ok 7 - empty test # EXPECT: (?s:ReadLine support (enabled|suppressed).*?cpan[^>]*?>) # GOT: CPAN: File::HomeDir loaded ok # # cpan shell -- CPAN exploration and modules installation (v1.8651) # ReadLine support enabled # # cpan> ok 8 - "\n" # NEXT: o conf build_cache # EXPECT: build_cache(?s:.*?cpan[^>]*?>) # GOT: o conf build_cache # build_cache [100] # # cpan> ok 9 - o conf build_cache # NEXT: o conf init # EXPECT: initialized(?s:.*?manual.*?configuration.*?\]) # GOT: o conf init # # /tmp/CPAN-1.86_51/t/CPAN/MyConfig.pm initialized. # # # CPAN is the world-wide archive of perl resources. It consists of about # 100 sites that all replicate the same contents all around the globe. # Many countries have at least one CPAN site already. The resources # found on CPAN are easily accessible with the CPAN.pm module. If you # want to use CPAN.pm, you have to configure it properly. [etc...] I think most of the later failures are caused by one of the first failures. It's probably a simple problem.
Subject: Re: [rt.cpan.org #17749] t/30shell fails
Date: Tue, 21 Feb 2006 21:07:59 +0100
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Tue, 21 Feb 2006 08:35:19 -0500 (EST), " via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> Oh, no, sorry I didn't explain it correctly. I meant that 1.76 is my > current version of CPAN (just in case not upgrading to version 1.83, > for example, might've had an effect)
Half of the day I was wondering which tools you're using and how and why you test an outdated module against its newest testsuite:-))) I'm glad it was just a wild dream.... Show quoted text
> The version I'm trying to install is indeed 1.86. Now I'm trying > 1.86_51 instead. It still has the same problem. > [...] > I think most of the later failures are caused by one of > the first failures. It's probably a simple problem.
Of course! My next candiate is your ENV. You're setting PERL5LIB or PERL5OPT and, of couse, you really need this setting? Which *PERL* environment variabes do you have and which are their values? Something like the output of 'env | grep PERL' would probably do. To provide you the background: 30shell.t runs a separate perl process. It tries to start it in a way so that it uses the ./t/CPAN/MyConfig.pm which it itself produces from ./t/CPAN/TestConfig.pm. But in your environment your own CPAN configuration wins fro whatever reason. And at the same time, the testscript says # /tmp/CPAN-1.86_51/t/CPAN/MyConfig.pm initialized. But then it sets urllist to "file:///home/slanning/perl/cpan" Can you tell me which file contains the magical line with "file:///home/slanning/perl/cpan" ? Thanks, -- andreas
Subject: Re: [rt.cpan.org #17749] t/30shell fails
Date: Wed, 22 Feb 2006 11:05:05 +0100 (CET)
To: "andreas.koenig.gmwojprw [...] franz.ak.mind.de via RT" <bug-CPAN [...] rt.cpan.org>
From: Scott Lanning <lannings [...] who.int>
On Tue, 21 Feb 2006, andreas.koenig.gmwojprw@franz.ak.mind.de via RT wrote: Show quoted text
> Of course! My next candiate is your ENV. You're setting PERL5LIB or > PERL5OPT and, of couse, you really need this setting? Which *PERL* > environment variabes do you have and which are their values? Something > like the output of 'env | grep PERL' would probably do.
$ env | grep PERL PERL5LIB=:/usr/local/bricolage/lib It's so that `perldoc` finds documentation under this directory. Show quoted text
> # /tmp/CPAN-1.86_51/t/CPAN/MyConfig.pm initialized. > > But then it sets urllist to "file:///home/slanning/perl/cpan" > > Can you tell me which file contains the magical line with > "file:///home/slanning/perl/cpan" ?
I believe it's /etc/perl/CPAN/Config.pm : 'urllist' => [q[file:///home/slanning/perl/cpan]], It's a Debian system if that helps. (Sorry I don't have enough time right at the moment to try looking at it. I'll try to remember later.)
Subject: Re: [rt.cpan.org #17749] t/30shell fails
Date: Wed, 22 Feb 2006 20:45:50 +0100
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Wed, 22 Feb 2006 05:07:30 -0500 (EST), "lannings@who.int via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> $ env | grep PERL > PERL5LIB=:/usr/local/bricolage/lib
Thanks. So this was it not. But during the day today I already came closer to the problem. It's a CPAN/Config.pm as you say below. Show quoted text
> It's so that `perldoc` finds documentation under this directory.
Show quoted text
>> # /tmp/CPAN-1.86_51/t/CPAN/MyConfig.pm initialized. >> >> But then it sets urllist to "file:///home/slanning/perl/cpan" >> >> Can you tell me which file contains the magical line with >> "file:///home/slanning/perl/cpan" ?
Show quoted text
> I believe it's /etc/perl/CPAN/Config.pm :
Show quoted text
> 'urllist' => [q[file:///home/slanning/perl/cpan]],
Yes, I now have found a setup now to replicate this or at least a similar problem. Show quoted text
> It's a Debian system if that helps. > (Sorry I don't have enough time right at the moment > to try looking at it. I'll try to remember later.)
I'm very grateful for what you've done to clarify the problem. I'll make a new release as soon as I have a solution. Thanks, -- andreas
I've just uploaded 1.86_52 which fixed the case that I made up for testing purposes. Please report your experience. I will have to think over it a little before I can be sure if the fix is good, but first I'd really like to know if it works for you.
Yes, it worked. Thanks.