On 4/27/21 9:05 PM, James E Keenan wrote:
On FreeBSD-12 I have CPAN::Reporter and Task::CPAN::Reporter installed. In ~/.cpan/CPAN/MyConfig.pm I have set:  'test_report' => q[1],

But when I use the 'cpan' shell to 'install' or 'test' CPAN distros, no test report is generated or sent.  Here is typical output:

#####
cpan[2]> test ExtUtils::ModuleMaker
Running test for module 'ExtUtils::ModuleMaker'
Checksum for /home/jkeenan/.cpan/sources/authors/id/J/JK/JKEENAN/ExtUtils-ModuleMaker-0.63.tar.gz ok
Configuring J/JK/JKEENAN/ExtUtils-ModuleMaker-0.63.tar.gz with Makefile.PL

CPAN::Reporter: error loading Test::Reporter::Transport::Metabase. Please install the missing module or choose a different transport mechanism.

Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::ModuleMaker
Writing MYMETA.yml and MYMETA.json
(/usr/local/bin/perl Makefile.PL exited with 0)
CPAN::Reporter: Makefile.PL result is 'pass', No errors.
   JKEENAN/ExtUtils-ModuleMaker-0.63.tar.gz
   /usr/local/bin/perl Makefile.PL -- OK
Running make for J/JK/JKEENAN/ExtUtils-ModuleMaker-0.63.tar.gz

CPAN::Reporter: error loading Test::Reporter::Transport::Metabase. Please install the missing module or choose a different transport mechanism.

...

All tests successful.
Files=18, Tests=1589,  4 wallclock secs ( 0.13 usr  0.05 sys +  3.32 cusr  0.59 csys =  4.09 CPU)
Result: PASS
(/usr/bin/make test exited with 0)
CPAN::Reporter: Test result is 'pass', All tests successful.
CPAN::Reporter: preparing a CPAN Testers report for ExtUtils-ModuleMaker-0.63

CPAN::Reporter: error loading Test::Reporter::Transport::Metabase. Please install the missing module or choose a different transport mechanism.

CPAN::Reporter: problem with Test::Reporter transport:
Test::Reporter: could not load 'Test::Reporter::Transport::Metabase'
Attempt to reload Test/Reporter/Transport/Metabase.pm aborted.
Compilation failed in require at (eval 192) line 1.

  at /usr/local/lib/perl5/site_perl/CPAN/Reporter.pm line 464.

Test report will not be sent
   JKEENAN/ExtUtils-ModuleMaker-0.63.tar.gz
   /usr/bin/make test -- OK
#####

This is similar to a problem about which I posted to this list in April 2020.  Thread started here: https://www.nntp.perl.org/group/perl.cpan.testers.discuss/2020/04/msg4477.html

Why am I getting this spurious "missing module" failure?  What can I do to fix it?

Thank you very much.
Jim Keenan

Stumbling around I came to this web site:

https://metabase.cpantesters.org/api/v1/

I then modified my ~/.cpanreporter/config.ini file to read:

#####
edit_report=default:ask/no pass/na:no
email_from=jkee...@cpan.org
send_report=default:ask/yes pass/na:yes
#transport=Metabase uri https://metabase.cpantesters.org/api/v1/ id_file metabase_id.json transport=Metabase uri https://metabase.cpantesters.org/api/v1/submit/CPAN-Testers-Report id_file metabase_id.json
#####

I then went into the 'cpan' shell and called 'test' on one of my own distros. I got no better results:

#####
CPAN::Reporter: Test result is 'pass', All tests successful.
CPAN::Reporter: preparing a CPAN Testers report for List-Compare-0.55
CPAN::Reporter: sending test report with 'pass' via Metabase
CPAN::Reporter: Test::Reporter: error from 'Test::Reporter::Transport::Metabase:' fact submission failed: Not Found at /usr/local/lib/perl5/site_perl/Metabase/Client/Simple.pm line 129.
        
Metabase::Client::Simple::submit_fact(Metabase::Client::Simple=HASH(0x80bc8ebe8),
 CPAN::Testers::Report=HASH(0x80c026960)) called at 
/usr/local/lib/perl5/site_perl/Test/Reporter/Transport/Metabase.pm line 122
        
Test::Reporter::Transport::Metabase::send(Test::Reporter::Transport::Metabase=HASH(0x814193540),
 Test::Reporter=HASH(0x814081cf0)) called at 
/usr/local/lib/perl5/site_perl/Test/Reporter.pm line 272
eval {...} called at /usr/local/lib/perl5/site_perl/Test/Reporter.pm line 272 Test::Reporter::send(Test::Reporter=HASH(0x814081cf0)) called at /usr/local/lib/perl5/site_perl/CPAN/Reporter.pm line 495 CPAN::Reporter::_dispatch_report(HASH(0x814192fa8)) called at /usr/local/lib/perl5/site_perl/CPAN/Reporter.pm line 107 CPAN::Reporter::grade_test(CPAN::Distribution=HASH(0x812d7df78), "/usr/bin/make test", ARRAY(0x8142700c0), 0) called at /usr/local/lib/perl5/site_perl/CPAN/Reporter.pm line 202 CPAN::Reporter::test(CPAN::Distribution=HASH(0x812d7df78), "/usr/bin/make test") called at /usr/local/lib/perl5/5.32/CPAN/Distribution.pm line 3786 CPAN::Distribution::test(CPAN::Distribution=HASH(0x812d7df78)) called at /usr/local/lib/perl5/5.32/CPAN/Module.pm line 484
        eval {...} called at /usr/local/lib/perl5/5.32/CPAN/Module.pm line 483
CPAN::Module::rematein(CPAN::Module=HASH(0x810bea7b0), "test") called at /usr/local/lib/perl5/5.32/CPAN/Module.pm line 513 CPAN::Module::test(CPAN::Module=HASH(0x810bea7b0)) called at /usr/local/lib/perl5/5.32/CPAN/Shell.pm line 1901 CPAN::Shell::rematein("CPAN::Shell", "test", "List::Compare") called at /usr/local/lib/perl5/5.32/CPAN/Shell.pm line 2068 CPAN::Shell::__ANON__("CPAN::Shell", "List::Compare") called at /usr/local/lib/perl5/5.32/CPAN.pm line 381
        eval {...} called at /usr/local/lib/perl5/5.32/CPAN.pm line 378
        CPAN::shell() called at /usr/local/lib/perl5/5.32/App/Cpan.pm line 416
App::Cpan::_process_options("App::Cpan") called at /usr/local/lib/perl5/5.32/App/Cpan.pm line 512
        App::Cpan::run("App::Cpan") called at /usr/local/bin/cpan line 18
#####

The relevant part of /usr/local/lib/perl5/site_perl/Metabase/Client/Simple.pm is:

#####
 92 sub submit_fact {
 93     my ( $self, $fact ) = @_;
 94
...
129     unless ( $res->{success} ) {
130         Carp::confess $self->_error( $res => "fact submission failed" );
131     }
#####

What is going wrong?

Thank you very much.
Jim Keenan

Reply via email to