CC: | ether [...] cpan.org |
Subject: | Tests started to fail (with recent Moose?) |
The test suite started to fail on my smoker systems. Test log:
...
# Failed test 'use MooseX::Exception::Rot13;'
# at t/01basic.t line 37.
# Tried to use 'MooseX::Exception::Rot13'.
# Error: The 'add_method' method cannot be called on an immutable instance at /opt/perl-5.27.8/lib/site_perl/5.27.8/x86_64-linux/Class/MOP/Class.pm line 1108
# Class::MOP::Class::add_around_method_modifier('Class::MOP::Class::Immutable::Moose::Meta::Class=HASH(0x55e7b38a77d8)', 'message', 'CODE(0x55e7b39bfd28)') called at /home/cpansand/.cpan/build/2018012206/MooseX-Exception-Rot13-0.001-0/blib/lib/MooseX/Exception/Rot13.pm line 21
# require MooseX/Exception/Rot13.pm at t/01basic.t line 37
# main::BEGIN at /home/cpansand/.cpan/build/2018012206/MooseX-Exception-Rot13-0.001-0/blib/lib/MooseX/Exception/Rot13.pm line 0
# eval {...} at /home/cpansand/.cpan/build/2018012206/MooseX-Exception-Rot13-0.001-0/blib/lib/MooseX/Exception/Rot13.pm line 0
# eval 'package main;
# BEGIN { ${^WARNING_BITS} = $args[-1] if defined $args[-1] }
# #line 37 t/01basic.t
# use MooseX::Exception::Rot13 @{$args[0]};
# 1;
# ' at /opt/perl-5.27.8/lib/site_perl/5.27.8/Test/More.pm line 1031
# Test::More::_eval('package main;^JBEGIN { ${^WARNING_BITS} = $args[-1] if defined $args[-1] }^J#line 37 t/01basic.t^Juse MooseX::Exception::Rot13 @{$args[0]};^J1;^J', 'ARRAY(0x55e7b2b655e8)', 'UUUUUUUUUUUUUUUUUU') called at /opt/perl-5.27.8/lib/site_perl/5.27.8/Test/More.pm line 1007
# Test::More::use_ok('MooseX::Exception::Rot13') called at t/01basic.t line 37
# Compilation failed in require at t/01basic.t line 37.
# BEGIN failed--compilation aborted at t/01basic.t line 37.
# Failed test at t/01basic.t line 45.
# 'I do not understand this option (is => yyy) on attribute (xxx) at /opt/perl-5.27.8/lib/site_perl/5.27.8/x86_64-linux/Moose/Exporter.pm line 419
# Moose::has('xxx', 'is', 'yyy') called at t/01basic.t line 43
# main::__ANON__ at /opt/perl-5.27.8/lib/site_perl/5.27.8/Test/Fatal.pm line 129
# Test::Fatal::try {...} at /opt/perl-5.27.8/lib/site_perl/5.27.8/Try/Tiny.pm line 100
# eval {...} at /opt/perl-5.27.8/lib/site_perl/5.27.8/Try/Tiny.pm line 93
# Try::Tiny::try('CODE(0x55e7b38965a0)', 'Try::Tiny::Catch=REF(0x55e7b39aad30)') called at /opt/perl-5.27.8/lib/site_perl/5.27.8/Test/Fatal.pm line 136
# Test::Fatal::exception('CODE(0x55e7b3894d90)') called at t/01basic.t line 45
# '
# doesn't match '(?^:\A(V qb abg haqrefgnaq guvf bcgvba))'
# Looks like you failed 2 tests of 3.
t/01basic.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/3 subtests
...
Statistical analysis suggests that the problem appears with recent Moose versions (e.g. 2.2008 or 2.2009):
****************************************************************
Regression 'mod:Moose'
****************************************************************
Name Theta StdErr T-stat
[0='const'] 1.0000 0.0000 6149888453172548.00
[1='eq_2.1206'] -0.0000 0.0000 -0.73
[2='eq_2.1207'] -0.0000 0.0000 -0.80
[3='eq_2.1211'] -0.0000 0.0000 -0.30
[4='eq_2.1213'] -0.0000 0.0000 -0.69
[5='eq_2.1403'] -0.0000 0.0000 -0.61
[6='eq_2.1404'] -0.0000 0.0000 -0.34
[7='eq_2.1603'] -0.0000 0.0000 -1.06
[8='eq_2.1604'] -0.0000 0.0000 -1.12
[9='eq_2.1605'] -0.0000 0.0000 -1.75
[10='eq_2.1800'] -0.0000 0.0000 -0.42
[11='eq_2.1801'] -0.0000 0.0000 -0.59
[12='eq_2.1804'] 0.0000 0.0000 0.00
[13='eq_2.1805'] -0.0000 0.0000 -0.40
[14='eq_2.1806'] -0.0000 0.0000 -2.18
[15='eq_2.1807'] -0.0000 0.0000 -0.87
[16='eq_2.1902'] 0.0000 0.0000 0.08
[17='eq_2.2000'] -0.0000 0.0000 -0.08
[18='eq_2.2004'] -0.0000 0.0000 -1.53
[19='eq_2.2005'] -0.0000 0.0000 -0.99
[20='eq_2.2006'] 0.0000 0.0000 0.00
[21='eq_2.2008'] -1.0000 0.0000 -4348627828779160.00
[22='eq_2.2009'] -1.0000 0.0000 -5377921443129613.00
R^2= 1.000, N= 131, K= 23
****************************************************************