Subject: | Test::Reporter submission problem |
When trying to submit reports, none of my built perls would succeed,
while the system perl would work. I started to dig around and found a
problem.
Test::Reporter::HTTPGateway requires LWP::UserAgent but doesn't list it
as a prereq. Trying to submit reports will die because the module
obviously isn't installed.
However, CPANPLUS doesn't wrap the test submission in an eval block, so
it also dies unhelpfully with no indication why.
Sample:
[MSG] Sending test report for 'HTML-Tagset-3.20'
[ERROR] CPANPLUS::Internals::Source::SQLite has not implemented writing
state to disk
... program terminates ...
I tracked down the problem ( thanks to BinGOs too! ) to
CPANPLUS::Internals::Report and it should be a straightforward fix by
adding an eval around the submission part. This is on line 568 in
CPANPLUS-devel as of this date.
### XXX should we do an 'already sent' check? ###
} elsif( $reporter->send( ) ) {
I would suggest the eval around that line and printing the output if
there's any error and verbose is true. That way, we would be able to
quickly see what's wrong.
I also agree with BinGOs' comment that Test::Reporter should somehow
figure out a way to avoid such a heavy prereq, but that's for another day :)
@BinGOs> By all means raise a CPANPLUS ticket so I remember, please.
BinGOs++ :)
--
~Apocalypse