Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 12764
Status: resolved
Priority: 0/
Queue: CPANPLUS

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

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



Subject: Cygwin: CPANPLUS cannot send test reports but Test::Reporters cpantest utility can
I get the following error for sending a report from within cpanp shell: [MSG] DEFAULT 'munge_test_report' HANDLER RETURNING 'sub return value' [ERROR] Could not send 'pass' report for 'MailTools-1.67': Test::Reporter: Unable to send test report at /usr/lib/perl5/site_perl/5.8/CPANPLUS/Dist/MM.pm line 577 [ERROR] Failed to send test report for 'Mail::Send' at /usr/lib/perl5/site_perl/5.8/CPANPLUS/Module.pm line 585 Yet the Test::Reporter 1.27 cpantest tool works fine, and the native Win32 CPANPLUS is able to send reports, so I'm pretty sure it's not a firewall issue. CPANPLUS used to work. This seems to have happened suddenly. My guess is that some prereq that CPANPLUS uses but cpantest does not use interferes with it. It would be nice if there were better diagnostic messages or an option to pass a debug flag to the mailer. From checking netstat, it seems to be trying to send mail using my cpan mirror as a relay. By hacking Test::Reporter to make debug flag true by default, I have confirmed this: Show quoted text
> Net::SMTP=GLOB(0x134bc930)<<< 220 saigo.etla.org ESMTP ...
I'm not sure if the problem is Net::SMTP or not. Sometimes it sends to the correct mail server, sometimes not. This may be a bug in Net::SMP since it seems to be getting the correct paramters.
[guest - Wed May 11 15:55:08 2005]: Show quoted text
> I get the following error for sending a report from within cpanp > shell: > > [MSG] DEFAULT 'munge_test_report' HANDLER RETURNING 'sub return value' > [ERROR] Could not send 'pass' report for 'MailTools-1.67': > Test::Reporter: Unable to send test report > at /usr/lib/perl5/site_perl/5.8/CPANPLUS/Dist/MM.pm line 577 > [ERROR] Failed to send test report for 'Mail::Send' at > /usr/lib/perl5/site_perl/5.8/CPANPLUS/Module.pm line 585 > > Yet the Test::Reporter 1.27 cpantest tool works fine, and the native > Win32 CPANPLUS is able to send reports, so I'm pretty sure it's not > a firewall issue.
This is the chunk of code that generates the error you report: } elsif( $reporter->send( @inform ) ) { msg(loc("Successfully sent '%1' report for '%2'", $grade, $dist), $verbose); return 1; ### something broke :( ### } else { error(loc("Could not send '%1' report for '%2': %3", $grade, $dist, $reporter->errstr)); return; } And as you can tell from the 'Test::Reporter:' in the error -- it's T::R reporting it, not CPAPNLUS. So i'm afraid the error is 'further down' in the chain and not a CPANPLUS bug.