Skip Menu |

This queue is for tickets about the Net-OpenSSH CPAN distribution.

Report information
The Basics
Id: 89800
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Net-OpenSSH

People
Owner: Nobody in particular
Requestors: victor [...] vsespb.ru
Cc:
AdminCc:

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



Subject: test hangs
hangs after this: CPAN.pm: Building S/SA/SALVA/Net-OpenSSH-0.61_12.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Net::OpenSSH Writing MYMETA.yml and MYMETA.json (/home/perltest/perl5/perlbrew/perls/perl-5.16.3-thread-multi/bin/perl Makefile.PL exited with 0) CPAN::Reporter: Makefile.PL result is 'pass', No errors. cp lib/Net/OpenSSH/ConnectionCache.pm blib/lib/Net/OpenSSH/ConnectionCache.pm cp lib/Net/OpenSSH/ShellQuoter.pm blib/lib/Net/OpenSSH/ShellQuoter.pm cp lib/Net/OpenSSH/ShellQuoter/POSIX.pm blib/lib/Net/OpenSSH/ShellQuoter/POSIX.pm cp lib/Net/OpenSSH/ModuleLoader.pm blib/lib/Net/OpenSSH/ModuleLoader.pm cp lib/Net/OpenSSH/Constants.pm blib/lib/Net/OpenSSH/Constants.pm cp lib/Net/OpenSSH.pm blib/lib/Net/OpenSSH.pm cp lib/Net/OpenSSH/OSTracer.pm blib/lib/Net/OpenSSH/OSTracer.pm cp lib/Net/OpenSSH/ShellQuoter/csh.pm blib/lib/Net/OpenSSH/ShellQuoter/csh.pm Manifying blib/man3/Net::OpenSSH::Constants.3 Manifying blib/man3/Net::OpenSSH::ConnectionCache.3 Manifying blib/man3/Net::OpenSSH.3 Manifying blib/man3/Net::OpenSSH::OSTracer.3 (/usr/bin/make exited with 0) CPAN::Reporter: make result is 'pass', No errors. SALVA/Net-OpenSSH-0.61_12.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /home/perltest/perl5/perlbrew/perls/perl-5.16.3-thread-multi/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # # SSH client found: OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012. # Trying to connect to localhost, timeout is 15s. Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
On Sun Oct 27 18:00:38 2013, vsespb wrote: Show quoted text
> hangs after this: > > CPAN.pm: Building S/SA/SALVA/Net-OpenSSH-0.61_12.tar.gz > > Checking if your kit is complete... > Looks good > Writing Makefile for Net::OpenSSH > Writing MYMETA.yml and MYMETA.json > (/home/perltest/perl5/perlbrew/perls/perl-5.16.3-thread-multi/bin/perl > Makefile.PL exited with 0) > CPAN::Reporter: Makefile.PL result is 'pass', No errors. > cp lib/Net/OpenSSH/ConnectionCache.pm > blib/lib/Net/OpenSSH/ConnectionCache.pm > cp lib/Net/OpenSSH/ShellQuoter.pm blib/lib/Net/OpenSSH/ShellQuoter.pm > cp lib/Net/OpenSSH/ShellQuoter/POSIX.pm > blib/lib/Net/OpenSSH/ShellQuoter/POSIX.pm > cp lib/Net/OpenSSH/ModuleLoader.pm > blib/lib/Net/OpenSSH/ModuleLoader.pm > cp lib/Net/OpenSSH/Constants.pm blib/lib/Net/OpenSSH/Constants.pm > cp lib/Net/OpenSSH.pm blib/lib/Net/OpenSSH.pm > cp lib/Net/OpenSSH/OSTracer.pm blib/lib/Net/OpenSSH/OSTracer.pm > cp lib/Net/OpenSSH/ShellQuoter/csh.pm > blib/lib/Net/OpenSSH/ShellQuoter/csh.pm > Manifying blib/man3/Net::OpenSSH::Constants.3 > Manifying blib/man3/Net::OpenSSH::ConnectionCache.3 > Manifying blib/man3/Net::OpenSSH.3 > Manifying blib/man3/Net::OpenSSH::OSTracer.3 > (/usr/bin/make exited with 0) > CPAN::Reporter: make result is 'pass', No errors. > SALVA/Net-OpenSSH-0.61_12.tar.gz > /usr/bin/make -- OK > Running make test > PERL_DL_NONLAZY=1 /home/perltest/perl5/perlbrew/perls/perl-5.16.3- > thread-multi/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, > 'blib/lib', 'blib/arch')" t/*.t > # > # SSH client found: OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May > 2012. > # Trying to connect to localhost, timeout is 15s. > Warning: Permanently added 'localhost' (ECDSA) to the list of known > hosts.
Could you describe your environment (OS version/distribution and OpenSSH version)? Also, the testing script 1_run.t has a commented line that enables debugging, could you uncomment it, run the test script and send my the output? $Net::OpenSSH::debug = -1;

Message body is not shown because it is too large.

On Mon Oct 28 06:20:02 2013, vsespb wrote: Show quoted text
> Enrironment - smoke tester under Ubuntu 13.04 64bit > OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012 > > I reproduced it manually. I think problem happens only when running as > "nohup .. &" > I am thinking now. With "nohup" + "tail -f nohup" password prompt > could be removed from output.
I have uploaded a new version to CPAN: https://metacpan.org/release/SALVA/Net-OpenSSH-0.61_13 Now, the testing script detects if it is running on the background and in that case runs ssh in batch mode which doesn't ask for passwords.
I tested it, but it still hangs: perltest@VM22-Ubuntu:~/N/Net-OpenSSH-0.61_13$ nohup make test & [2] 16866 perltest@VM22-Ubuntu:~/N/Net-OpenSSH-0.61_13$ nohup: ignoring input and appending output to ‘nohup.out’ perltest@VM22-Ubuntu:~/N/Net-OpenSSH-0.61_13$ [2]+ Stopped nohup make test perltest@VM22-Ubuntu:~/N/Net-OpenSSH-0.61_13$ cat nohup.out PERL_DL_NONLAZY=1 /home/perltest/perl5/perlbrew/perls/perl-5.16.3/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # # SSH client found: OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012. # Trying to connect to localhost, timeout is 15s. perltest@VM22-Ubuntu:~/N/Net-OpenSSH-0.61_13$ cat nohup.out PERL_DL_NONLAZY=1 /home/perltest/perl5/perlbrew/perls/perl-5.16.3/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # # SSH client found: OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012. # Trying to connect to localhost, timeout is 15s. reproducible with "nohup make test &". could you reproduce? (note that using "nohup" and "&" is documented as a way to run smoke testing: http://wiki.cpantesters.org/wiki/CPANReporterSmokerLong , I am not sure, however, why are you getting so many PASS repors then ) On Mon Oct 28 21:21:35 2013, SALVA wrote: Show quoted text
> On Mon Oct 28 06:20:02 2013, vsespb wrote:
> > Enrironment - smoke tester under Ubuntu 13.04 64bit > > OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012 > > > > I reproduced it manually. I think problem happens only when running > > as > > "nohup .. &" > > I am thinking now. With "nohup" + "tail -f nohup" password prompt > > could be removed from output.
> > I have uploaded a new version to CPAN: > > https://metacpan.org/release/SALVA/Net-OpenSSH-0.61_13 > > Now, the testing script detects if it is running on the background and > in that case runs ssh in batch mode which doesn't ask for passwords.
Subject: Re: [rt.cpan.org #89800] test hangs
Date: Wed, 30 Oct 2013 02:28:53 -0700 (PDT)
To: "bug-Net-OpenSSH [...] rt.cpan.org" <bug-Net-OpenSSH [...] rt.cpan.org>
From: Salvador Fandino <sfandino [...] yahoo.com>
Show quoted text
----- Original Message -----
> From: Victor Efimov via RT <bug-Net-OpenSSH@rt.cpan.org> > To: > Cc: > Sent: Tuesday, October 29, 2013 8:51 PM > Subject: [rt.cpan.org #89800] test hangs > >       Queue: Net-OpenSSH > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89800 > > > I tested it, but it still hangs:
Opps, I solved the issue for "make test &", but the stdin redirection introduced by nohup make the are-I-running-on-the-background logic fail. I have released a new version, hopefully this time it will also work for you!   https://metacpan.org/release/SALVA/Net-OpenSSH-0.61_14  > (note that using "nohup" and "&" is documented as a way
> to run smoke testing: http://wiki.cpantesters.org/wiki/CPANReporterSmokerLong , > I am not sure, however, why are you getting so many PASS repors then )
I don't think too many people run their tests on the background. It is not very usefull.
Ok, I tested and it now works. I think ticket is resolved, thanks. On Wed Oct 30 13:29:09 2013, sfandino@yahoo.com wrote: Show quoted text
> > > > > ----- Original Message -----
> > From: Victor Efimov via RT <bug-Net-OpenSSH@rt.cpan.org> > > To: > > Cc: > > Sent: Tuesday, October 29, 2013 8:51 PM > > Subject: [rt.cpan.org #89800] test hangs > > > >       Queue: Net-OpenSSH > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89800 > > > > > I tested it, but it still hangs:
> > Opps, I solved the issue for "make test &", but the stdin redirection > introduced by nohup make the are-I-running-on-the-background logic > fail. > > I have released a new version, hopefully this time it will also work > for you! > >   https://metacpan.org/release/SALVA/Net-OpenSSH-0.61_14 > > >  > (note that using "nohup" and "&" is documented as a way
> > to run smoke testing: > > http://wiki.cpantesters.org/wiki/CPANReporterSmokerLong , > > I am not sure, however, why are you getting so many PASS repors then > > )
> > I don't think too many people run their tests on the background. It is > not very usefull.