Subject: | "Undefined subroutine" failures |
Observed today in the course of a long BBC run via 'cpanm'.
#####
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Metabase-Backend-MongoDB-1.000.tar.gz
-> OK
Unpacking Metabase-Backend-MongoDB-1.000.tar.gz
Entering Metabase-Backend-MongoDB-1.000
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.24)
Configuring Metabase-Backend-MongoDB-1.000
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Metabase::Backend::MongoDB
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Compress::Zlib 2 ... Yes (2.069_01)
Checking if you have Test::Deep 0 ... Yes (1.126)
Checking if you have warnings 0 ... Yes (1.37)
Checking if you have Metabase::Fact 0 ... Yes (0.025)
Checking if you have Carp 0 ... Yes (1.42)
Checking if you have namespace::autoclean 0 ... Yes (0.28)
Checking if you have Regexp::SQL::LIKE 0.001 ... Yes (0.001)
Checking if you have File::Find 0 ... Yes (1.34)
Checking if you have boolean 0 ... Yes (0.46)
Checking if you have Metabase::Archive 0.017 ... Yes (1.003)
Checking if you have Try::Tiny 0 ... Yes (0.28)
Checking if you have Metabase::Index 0.017 ... Yes (1.003)
Checking if you have Test::Routine 0 ... Yes (0.023)
Checking if you have Moose::Role 0 ... Yes (2.1807)
Checking if you have Data::Stream::Bulk::Callback 0 ... Yes (0.11)
Checking if you have Metabase::Test::Archive 0 ... Yes (1.003)
Checking if you have File::Temp 0 ... Yes (0.2304)
Checking if you have JSON 2 ... Yes (2.90)
Checking if you have Test::Routine::Util 0 ... Yes (0.023)
Checking if you have MongoDB 0 ... Yes (v1.6.1)
Checking if you have Moose 0 ... Yes (2.1807)
Checking if you have re 0 ... Yes (0.34)
Checking if you have Metabase::Test::Index 0 ... Yes (1.003)
Checking if you have Test::More 0.92 ... Yes (1.302075)
Checking if you have strict 0 ... Yes (1.11)
Building and testing Metabase-Backend-MongoDB-1.000
cp lib/Metabase/Backend/MongoDB.pm blib/lib/Metabase/Backend/MongoDB.pm
cp lib/Metabase/Archive/MongoDB.pm blib/lib/Metabase/Archive/MongoDB.pm
cp lib/Metabase/Index/MongoDB.pm blib/lib/Metabase/Index/MongoDB.pm
PERL_DL_NONLAZY=1 "/home/jkeenan/testing/fatal-brace/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t .. ok
#
# Failed test 'store and retrieve'
# at /home/jkeenan/testing/fatal-brace/lib/perl5/site_perl/5.25.9/Test/Routine/Common.pm line 21.
# Caught exception in subtest: Undefined subroutine &Metabase::Test::Backend::MongoDB::BAIL_OUT called at t/lib/Metabase/Test/Backend/MongoDB.pm line 27.
#
# Failed test 'iteration'
# at /home/jkeenan/testing/fatal-brace/lib/perl5/site_perl/5.25.9/Test/Routine/Common.pm line 21.
# Caught exception in subtest: Undefined subroutine &Metabase::Test::Backend::MongoDB::BAIL_OUT called at t/lib/Metabase/Test/Backend/MongoDB.pm line 27.
#
# Failed test 'deletion'
# at /home/jkeenan/testing/fatal-brace/lib/perl5/site_perl/5.25.9/Test/Routine/Common.pm line 21.
# Caught exception in subtest: Undefined subroutine &Metabase::Test::Backend::MongoDB::BAIL_OUT called at t/lib/Metabase/Test/Backend/MongoDB.pm line 27.
#
# Failed test 'Run Archive tests on Metabase::Archive::MongodB'
# at /home/jkeenan/testing/fatal-brace/lib/perl5/site_perl/5.25.9/Test/Routine/Runner.pm line 115.
(in cleanup) Undefined subroutine &Metabase::Test::Backend::MongoDB::BAIL_OUT called at t/lib/Metabase/Test/Backend/MongoDB.pm line 27.
# Looks like you failed 1 test of 1.
t/archive.t .....
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
#
# Failed test 'add and count'
# at /home/jkeenan/testing/fatal-brace/lib/perl5/site_perl/5.25.9/Test/Routine/Common.pm line 21.
# Caught exception in subtest: Undefined subroutine &Metabase::Test::Backend::MongoDB::BAIL_OUT called at t/lib/Metabase/Test/Backend/MongoDB.pm line 27.
#
# Failed test 'search'
# at /home/jkeenan/testing/fatal-brace/lib/perl5/site_perl/5.25.9/Test/Routine/Common.pm line 21.
# Caught exception in subtest: Undefined subroutine &Metabase::Test::Backend::MongoDB::BAIL_OUT called at t/lib/Metabase/Test/Backend/MongoDB.pm line 27.
#
# Failed test 'exists()'
# at /home/jkeenan/testing/fatal-brace/lib/perl5/site_perl/5.25.9/Test/Routine/Common.pm line 21.
# Caught exception in subtest: Undefined subroutine &Metabase::Test::Backend::MongoDB::BAIL_OUT called:
at t/lib/Metabase/Test/Backend/MongoDB.pm line 27.
#
# Failed test 'delete()'
# at /home/jkeenan/testing/fatal-brace/lib/perl5/site_perl/5.25.9/Test/Routine/Common.pm line 21.
# Caught exception in subtest: Undefined subroutine &Metabase::Test::Backend::MongoDB::BAIL_OUT called at t/lib/Metabase/Test/Backend/MongoDB.pm line 27.
#
# Failed test 'Run Index tests on Metabase::Index::MongodB'
# at /home/jkeenan/testing/fatal-brace/lib/perl5/site_perl/5.25.9/Test/Routine/Runner.pm line 115.
(in cleanup) Undefined subroutine &Metabase::Test::Backend::MongoDB::BAIL_OUT called at t/lib/Metabase/Test/Backend/MongoDB.pm line 27.
# Looks like you failed 1 test of 1.
t/index.t .......
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
(in cleanup) Undefined subroutine &Metabase::Test::Backend::MongoDB::BAIL_OUT called at t/lib/Metabase/Test/Backend/MongoDB.pm line 27.
t/query.t ....... ok
Test Summary Report
-------------------
t/archive.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/index.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=4, Tests=6, 4 wallclock secs ( 0.02 usr 0.00 sys + 4.06 cusr 0.18 csys = 4.26 CPU)
Result: FAIL
Failed 2/4 test programs. 2/6 subtests failed.
Makefile:890: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
-> FAIL Installing Metabase::Archive::MongoDB failed.
#####
Thank you very much.
Jim Keenan