CC: | KAZEBURO [...] cpan.org |
Subject: | Tests may fail if Cookie::Baker and Cookie::Baker::XS versions are inconsistent (1.14) |
I see the following failure on some of my smokers:
...
# Failed test 'no warnings'
# at /usr/perl5.16.3t/lib/site_perl/5.16.3/Test/Builder.pm line 152.
# There were 1 warning(s)
# Previous test 0 ''
# Cookie::Baker::XS 0.08 is require. fallback to PP version at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 17.
# at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 17.
# eval {...} called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 14
# Cookie::Baker::BEGIN() called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 29
# eval {...} called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 29
# require Cookie/Baker.pm called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Plack/Request.pm line 15
# Plack::Request::BEGIN() called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 29
# eval {...} called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 29
# require Plack/Request.pm called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Plack/Middleware/MethodOverride.pm line 4
# Catalyst::BEGIN() called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 29
# eval {...} called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 29
# require Plack/Middleware/MethodOverride.pm called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Catalyst.pm line 48
# Catalyst::BEGIN() called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 29
# eval {...} called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 29
# require Catalyst.pm called at t/testapp/lib/TestApp.pm line 12
# TestApp::BEGIN() called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 29
# eval {...} called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Cookie/Baker.pm line 29
# require TestApp.pm called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Module/Runtime.pm line 317
# Module::Runtime::require_module("TestApp") called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Class/Load.pm line 174
# Class::Load::try {...} () called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Try/Tiny.pm line 97
# eval {...} called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Try/Tiny.pm line 93
# Try::Tiny::try(CODE(0x46cb7630), Try::Tiny::Catch=REF(0x47085e58)) called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Class/Load.pm line 180
# Class::Load::try_load_class("TestApp", undef) called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Class/Load.pm line 35
# Class::Load::load_class("TestApp") called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Test/WWW/Mechanize/Catalyst.pm line 70
# Test::WWW::Mechanize::Catalyst::BUILD(Test::WWW::Mechanize::Catalyst=HASH(0x4708c390), HASH(0x4144d810)) called at /usr/perl5.16.3t/lib/site_perl/5.16.3/amd64-freebsd-thread-multi/Class/MOP/Method.pm line 128
# Class::MOP::Method::execute(Moose::Meta::Method=HASH(0x470a4f78), Test::WWW::Mechanize::Catalyst=HASH(0x4708c390), HASH(0x4144d810)) called at /usr/perl5.16.3t/lib/site_perl/5.16.3/amd64-freebsd-thread-multi/Moose/Object.pm line 54
# Moose::Object::BUILDALL(Test::WWW::Mechanize::Catalyst=HASH(0x4708c390), HASH(0x4144d810)) called at /usr/perl5.16.3t/lib/site_perl/5.16.3/amd64-freebsd-thread-multi/Moose/Meta/Class.pm line 279
# Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x45428f30), "__INSTANCE__", Test::WWW::Mechanize::Catalyst=HASH(0x4708c390), "catalyst_app", "TestApp") called at /usr/perl5.16.3t/lib/site_perl/5.16.3/Test/WWW/Mechanize/Catalyst.pm line 52
# Test::WWW::Mechanize::Catalyst::new("Test::WWW::Mechanize::Catalyst", "catalyst_app", "TestApp", "cookie_jar", HASH(0x4144d660)) called at t//testlib.pm line 26
# testlib::init() called at t/02_base.t line 13
#
# Looks like you failed 1 test of 88.
t/02_base.t ........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/88 subtests
...
This seems to happen if Cookie::Baker::XS is installed, but the version is smaller than the current Cookie::Baker version (on this system: XS is 0.07, and PP is 0.08). Maybe this is a problem that should be solved in Cookie::Baker (i.e. it should be silent if it fall backs to the PP version, or alternatively, the Cookie::Baker Makefile/Build.PL should detect that an older XS is installed, and automatically set the prereq version for it). Or the CatalystX-I18N should deal with it and don't use Test::NoWarnings or remove these warnings.