Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MooseX-NotRequired CPAN distribution.

Report information
The Basics
Id: 95847
Status: resolved
Priority: 0/
Queue: MooseX-NotRequired

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.11
Fixed in: (no value)



Subject: presentation.t fails
# Failed test 'Type constraints still work on original class' # at t/presentation.t line 65. # expecting: Regexp ((?^i:does not pass the type constraint because)) # found: Moose::Exception::AttributeIsRequired (Attribute (customer) is required at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Moose/Exception.pm line 37 # Moose::Exception::_build_trace('Moose::Exception::AttributeIsRequired=HASH(0x9500480)') called at reader Moose::Exception::trace (defined at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Moose/Exception.pm line 9) line 8 # Moose::Exception::trace('Moose::Exception::AttributeIsRequired=HASH(0x9500480)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Moose/Exception.pm line 49 # Moose::Exception::BUILD('Moose::Exception::AttributeIsRequired=HASH(0x9500480)', 'HASH(0x9506aa8)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Class/MOP/Method.pm line 128 # Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x94429b0)', 'Moose::Exception::AttributeIsRequired=HASH(0x9500480)', 'HASH(0x9506aa8)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Moose/Object.pm line 56 # Moose::Object::BUILDALL('Moose::Exception::AttributeIsRequired=HASH(0x9500480)', 'HASH(0x9506aa8)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Moose/Meta/Class.pm line 282 # Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x940c76c)', 'HASH(0x9506aa8)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Moose/Object.pm line 27 # Moose::Object::new('Moose::Exception::AttributeIsRequired', 'attribute_name', 'customer', 'class_name', 'SalesOrder', 'params', 'HASH(0x9506a44)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Moose/Util.pm line 52 # Moose::Util::throw_exception('AttributeIsRequired', 'attribute_name', 'customer', 'class_name', 'SalesOrder', 'params', 'HASH(0x9506a44)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Moose/Meta/Attribute.pm line 495 # Moose::Meta::Attribute::initialize_instance_slot('Moose::Meta::Attribute=HASH(0x933179c)', 'Moose::Meta::Instance=HASH(0x940bc7c)', 'SalesOrder=HASH(0x9506c74)', 'HASH(0x9506a44)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Class/MOP/Class.pm line 530 # Class::MOP::Class::_construct_instance('Moose::Meta::Class=HASH(0x8ff418c)', 'HASH(0x9506a44)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Class/MOP/Class.pm line 500 # Class::MOP::Class::new_object('Moose::Meta::Class=HASH(0x8ff418c)', 'HASH(0x9506a44)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Moose/Meta/Class.pm line 278 # Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x8ff418c)', 'HASH(0x9506a44)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux-thread-multi-64int/Moose/Object.pm line 27 # Moose::Object::new('SalesOrder', 'HASH(0x9500430)') called at t/presentation.t line 58 # main::__ANON__ at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/Sub/Uplevel.pm line 87 # Sub::Uplevel::uplevel(3, 'CODE(0x90dd498)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/Test/Exception.pm line 136 # eval {...} at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/Test/Exception.pm line 136 # Test::Exception::_try_as_caller('CODE(0x90dd498)') called at /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/Test/Exception.pm line 217 # Test::Exception::throws_ok('CODE(0x90dd498)', 'Regexp=REGEXP(0x950bcd8)', 'Type constraints still work on original class') called at t/presentation.t line 65 # ) # Looks like you failed 1 test of 9. t/presentation.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/9 subtests See also http://www.cpantesters.org/cpan/report/e26cbcce-d033-11e3-b7b3-9aede0bfc7aa -- Alexandr Ciornii, http://chorny.net
On 2014-05-21 22:40:41, CHORNY wrote: Show quoted text
> # Failed test 'Type constraints still work on original class' > # at t/presentation.t line 65. > # expecting: Regexp ((?^i:does not pass the type constraint because)) > # found: Moose::Exception::AttributeIsRequired (Attribute (customer) > is required at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Moose/Exception.pm line 37 > # > Moose::Exception::_build_trace('Moose::Exception::AttributeIsRequired=HASH(0x9500480)') > called at reader Moose::Exception::trace (defined at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Moose/Exception.pm line 9) line 8 > # > Moose::Exception::trace('Moose::Exception::AttributeIsRequired=HASH(0x9500480)') > called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Moose/Exception.pm line 49 > # > Moose::Exception::BUILD('Moose::Exception::AttributeIsRequired=HASH(0x9500480)', > 'HASH(0x9506aa8)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Class/MOP/Method.pm line 128 > # > Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x94429b0)', > 'Moose::Exception::AttributeIsRequired=HASH(0x9500480)', > 'HASH(0x9506aa8)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Moose/Object.pm line 56 > # > Moose::Object::BUILDALL('Moose::Exception::AttributeIsRequired=HASH(0x9500480)', > 'HASH(0x9506aa8)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Moose/Meta/Class.pm line 282 > # > Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x940c76c)', > 'HASH(0x9506aa8)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Moose/Object.pm line 27 > # Moose::Object::new('Moose::Exception::AttributeIsRequired', > 'attribute_name', 'customer', 'class_name', 'SalesOrder', 'params', > 'HASH(0x9506a44)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Moose/Util.pm line 52 > # Moose::Util::throw_exception('AttributeIsRequired', > 'attribute_name', 'customer', 'class_name', 'SalesOrder', 'params', > 'HASH(0x9506a44)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Moose/Meta/Attribute.pm line 495 > # > Moose::Meta::Attribute::initialize_instance_slot('Moose::Meta::Attribute=HASH(0x933179c)', > 'Moose::Meta::Instance=HASH(0x940bc7c)', 'SalesOrder=HASH(0x9506c74)', > 'HASH(0x9506a44)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Class/MOP/Class.pm line 530 > # > Class::MOP::Class::_construct_instance('Moose::Meta::Class=HASH(0x8ff418c)', > 'HASH(0x9506a44)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Class/MOP/Class.pm line 500 > # > Class::MOP::Class::new_object('Moose::Meta::Class=HASH(0x8ff418c)', > 'HASH(0x9506a44)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Moose/Meta/Class.pm line 278 > # > Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x8ff418c)', > 'HASH(0x9506a44)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/i686-linux- > thread-multi-64int/Moose/Object.pm line 27 > # Moose::Object::new('SalesOrder', 'HASH(0x9500430)') called at > t/presentation.t line 58 > # main::__ANON__ at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/Sub/Uplevel.pm > line 87 > # Sub::Uplevel::uplevel(3, 'CODE(0x90dd498)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/Test/Exception.pm > line 136 > # eval {...} at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/Test/Exception.pm > line 136 > # Test::Exception::_try_as_caller('CODE(0x90dd498)') called at > /home/c/perl5/perlbrew/perls/20rc1i/lib/site_perl/5.20.0/Test/Exception.pm > line 217 > # Test::Exception::throws_ok('CODE(0x90dd498)', > 'Regexp=REGEXP(0x950bcd8)', 'Type constraints still work on original > class') called at t/presentation.t line 65 > # ) > # Looks like you failed 1 test of 9. > t/presentation.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/9 subtests > > > > See also http://www.cpantesters.org/cpan/report/e26cbcce-d033-11e3- > b7b3-9aede0bfc7aa
This failure happens randomly, and only perls >= 5.17.6 are affected (see http://matrix.cpantesters.org/?dist=MooseX-NotRequired%200.11 for a fail/pass overview), so it's possible that the module is a hash randomization victim.
Show quoted text
> This failure happens randomly, and only perls >= 5.17.6 are affected
I believe it's updated exceptions in Moose that are causing the failures. I've updated the tests to work with either version of the exception. Sorry for taking so long to respond to the bug report.