Skip Menu |
 

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 91947
Status: resolved
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: frankschwach [...] yahoo.de
mjd [...] plover.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.08250
Fixed in: 0.08260



Subject: Tests failling with latest Moose
Download (untitled) / with headers
text/plain 874b
My system: Linux precise-dev64 3.2.0-57-virtual My Perl: v5.10.1 (*) built for x86_64-linux Trying to install DBIx::Class 0.08250 fails in t/storage/replicated.t at line 140 (after test4) with The method 'connect_info' was not found in the inheritance hierarchy for DBIx::Class::Storage::DBI::Replicated The problematic code block is this "around" modifier:in t/storage/replicated.t around connect_info => sub { my ($next, $self, $info) = @_; $info->[3]{master_option} = 1; $self->$next($info); }; It fails with Moose 2.1200 but DBIx::Class installs without problems with Moose 5.1005 on the same machine. The "connect_info" method is added to DBIx::Class::Storage::DBI::Replicated using __PACKAGE__->meta->add_method It seems that this is not working or acting too late for the above "around" modification in the latest Moose version(?)
Subject: Re: [rt.cpan.org #91947] Tests failling with latest Moose
Date: Wed, 8 Jan 2014 13:54:26 +0000
To: bug-DBIx-Class [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
Download (untitled) / with headers
text/plain 187b
The test is faulty: it doesn't load classes early enough, specifically DBIx::Class::Storage::DBI::Replicated which it tries to augment before it's loaded. Attached patch fixes. -zefram
Download use_early.patch
text/x-diff 723b

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #91947] Tests failling with latest Moose
Date: Wed, 8 Jan 2014 23:09:33 +0000
To: Frank Schwach via RT <bug-DBIx-Class [...] rt.cpan.org>
From: Peter Rabbitson <ribasushi [...] cpan.org>
Download (untitled) / with headers
text/plain 516b
On Wed, Jan 08, 2014 at 07:35:46AM -0500, Frank Schwach via RT wrote: Show quoted text
> Wed Jan 08 07:35:43 2014: Request 91947 was acted upon. > Transaction: Ticket created by fschwach > Queue: DBIx-Class > Subject: Tests failling with latest Moose > Broken in: 0.08250 > Severity: Important > Owner: Nobody > Requestors: frankschwach@yahoo.de > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=91947 > > >
This is fixed in 0.08250_03, will show up on CPAN this weekend.
Subject: Re: [rt.cpan.org #91947] Tests failling with latest Moose
Date: Thu, 09 Jan 2014 09:34:59 +0000
To: bug-DBIx-Class [...] rt.cpan.org
From: Frank Schwach <frankschwach [...] yahoo.de>
Download (untitled) / with headers
text/plain 666b
Thanks a lot! On 08/01/14 23:09, Peter Rabbitson via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=91947 > > > On Wed, Jan 08, 2014 at 07:35:46AM -0500, Frank Schwach via RT wrote:
>> Wed Jan 08 07:35:43 2014: Request 91947 was acted upon. >> Transaction: Ticket created by fschwach >> Queue: DBIx-Class >> Subject: Tests failling with latest Moose >> Broken in: 0.08250 >> Severity: Important >> Owner: Nobody >> Requestors: frankschwach@yahoo.de >> Status: new >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=91947 > >> >>
> This is fixed in 0.08250_03, will show up on CPAN this weekend. > >
Subject: DBIx-Class-0.08250 t/storage/replicated.t failed with perl 5.18.2
Date: Thu, 09 Jan 2014 18:17:07 +0000
To: mst [...] shadowcatsystems.co.uk
From: Mark Jason Dominus <mjd [...] plover.com>
Download (untitled) / with headers
text/plain 6.9k
The README file for DBIx-Class-0.08250 claims that bug reports are always welcome, but doesn't give any usable submission address for bug reports. It suggests sending "plain bug reports either via RT or the Mailing list" but it doesn't include the RT URL, the RT email address, or the mailing list address. It does include the URL for a web page describing the mailing list, and that page advertises "To post a message to all the list members, send email to dbix-class@lists.scsys.co.uk." But non-subscribers can't actually do that; the submission bounces. ---------------------------------------------------------------- perl -Ilib t/storage/replicated.t produces: # Using Moose version 2.1200 and MooseX::Types version 0.41 ok 1 - use DBIx::Class::Storage::DBI::Replicated::Pool; ok 2 - use DBIx::Class::Storage::DBI::Replicated::Balancer; ok 3 - use DBIx::Class::Storage::DBI::Replicated::Replicant; ok 4 - use DBIx::Class::Storage::DBI::Replicated; The method 'connect_info' was not found in the inheritance hierarchy for DBIx::Class::Storage::DBI::Replicated at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Exception.pm line 38 Moose::Exception::_build_trace('Moose::Exception::MethodNameNotFoundInInheritanceHierarchy=HASH(0x3c97f08)') called at reader Moose::Exception::trace (defined at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Exception.pm line 12) line 7 Moose::Exception::trace('Moose::Exception::MethodNameNotFoundInInheritanceHierarchy=HASH(0x3c97f08)') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Exception.pm line 50 Moose::Exception::BUILD('Moose::Exception::MethodNameNotFoundInInheritanceHierarchy=HASH(0x3c97f08)', 'HASH(0x3c92928)') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Class/MOP/Method.pm line 131 Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x4034168)', 'Moose::Exception::MethodNameNotFoundInInheritanceHierarchy=HASH(0x3c97f08)', 'HASH(0x3c92928)') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Object.pm line 59 Moose::Object::BUILDALL('Moose::Exception::MethodNameNotFoundInInheritanceHierarchy=HASH(0x3c97f08)', 'HASH(0x3c92928)') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Class.pm line 285 Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x3fd2888)', 'HASH(0x3c92928)') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Object.pm line 30 Moose::Object::new('Moose::Exception::MethodNameNotFoundInInheritanceHierarchy', 'class', 'Moose::Meta::Class=HASH(0x3b93180)', 'method_name', 'connect_info') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Util.pm line 54 Moose::Util::throw_exception('MethodNameNotFoundInInheritanceHierarchy', 'class', 'Moose::Meta::Class=HASH(0x3b93180)', 'method_name', 'connect_info') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Class/MOP/Class.pm line 1065 Class::MOP::Class::__ANON__('Moose::Meta::Class=HASH(0x3b93180)', 'connect_info') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Class/MOP/Class.pm line 1112 Class::MOP::Class::add_around_method_modifier('Moose::Meta::Class=HASH(0x3b93180)', 'connect_info', 'CODE(0x3b565e8)') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Util.pm line 282 Moose::Util::add_method_modifier('Moose::Meta::Class=HASH(0x3b93180)', 'around', 'ARRAY(0x3df4288)') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose.pm line 92 Moose::around(undef, 'connect_info') called at /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Exporter.pm line 408 Moose::around('connect_info', 'CODE(0x3b565e8)') called at t/storage/replicated.t line 140 # Auto checked 0 references for leaks - none detected # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 4. ---------------------------------------------------------------- perl -V produces: Summary of my perl5 (revision 5 version 18 subversion 2) configuration: Platform: osname=linux, osvers=2.6.32-359-ec2, archname=x86_64-linux uname='linux reporting 2.6.32-359-ec2 #72-ubuntu smp wed nov 13 12:04:06 utc 2013 x86_64 gnulinux ' config_args='-Dprefix=/vol/home/mjd/.plenv/versions/5.18.2 -de -Dusedevel -A'eval:scriptdir=/vol/home/mjd/.plenv/versions/5.18.2/bin'' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.4.3', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib /lib64 /usr/lib64 libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.11.1.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.11.1' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_SAWAMPERSAND PERL_USE_DEVEL USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF Built under linux Compiled at Jan 9 2014 08:09:43 @INC: /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/x86_64-linux /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2 /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/5.18.2/x86_64-linux /vol/home/mjd/.plenv/versions/5.18.2/lib/perl5/5.18.2 . ---------------------------------------------------------------- Moose is 2.1200 in case that matters. Let me know if you want me to run any other tests or report any other information.
Dupe. Merging.
Download (untitled) / with headers
text/plain 817b
Update as per ML [1]: This is a known issue https://rt.cpan.org/Ticket/Display.html?id=91947 and dev release 0.08250_03 [2] already addresses it. A new version will be sent to CPAN pending either the extra pending fixes, or backing out a number of changes which are not ready for official release. A more robust dev-model, with multiple stable branches is being worked on in order to not land us in this situation again. The extra delays are due to severe lack of careful developers to share the load of maintaining this complex beast without lapses in quality. Sorry for the inconvenience. In the meantime it is safe to force this test. Cheers [1] http://lists.scsys.co.uk/pipermail/dbix-class/2014-January/011581.html [2] http://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/DBIx-Class-0.08250_03.tar.gz


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.