Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

CPAN Tests Failing [SOLVED]

by Eriond (Novice)
on Mar 20, 2013 at 14:08 UTC ( #1024526=perlquestion: print w/ replies, xml ) Need Help??
Eriond has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks,

I've just got a few questions as to why my CPAN tests are failing. I've tried to reproduce the issue locally, on multiple machines, but I always get a pass.

http://search.cpan.org/~adamdh/WWW-Shopify-0.11/

It seems to do with DBIx::Schema not loading all my DBIx::Result classes, but for the life of me, I can't think why this could be, considering it passes everything on my systems perfectly fine, even after I've removed all the installed versions of the module.

Any ideas?

P.S. Also, if anyone can tell me why the no_index directive in my META.json isn't doing what I thought it was supposed to do (remove a lot of my modules in that package from the module list), it'd be much appreciated.

Thanks,

Adam

Comment on CPAN Tests Failing [SOLVED]
Re: CPAN Tests Failing
by blue_cowdawg (Monsignor) on Mar 20, 2013 at 15:12 UTC
        Any ideas?

    What's failing and how? Show the test results that show a failure so we have something to discuss...


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re: CPAN Tests Failing
by toolic (Chancellor) on Mar 20, 2013 at 15:25 UTC
    I've tried to reproduce the issue locally, on multiple machines, but I always get a pass.
    Please confirm that you tried installing this from CPAN yourself and what method you used.

    I tried installing it, and I noticed some warnings:

    cpan WWW::Shopify ... WARNING: the following files are missing in your kit: MYMETA.json MYMETA.yml Please inform the author.

    When I click on a link from the MANIFEST for MYMETA.json, I get this error:

    Not Found The requested URL /src/ADAMDH/WWW-Shopify-0.11/MYMETA.json was not fou +nd on this server.

    I'm not saying that is the root of your problem, but that does seem strange.

      I don't know about the current state of art regarding module metadata, but I think the MYMETA.* files are not supposed to be redistributed at all. They seem to be generated whenever Makefile.PL is run and record the (then) current state of affairs.

      ... but still, when doing local tests by using make disttest, these warnings should appear and be eliminated.

      Indeed; this isn't related, but it's still a problem.

      MYMETA.(yml|json) should not be bundled with the distribution, and should not be listed in MANIFEST.

      q.v. What are the files in a CPAN distribution?

      package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
Re: CPAN Tests Failing
by tobyink (Abbot) on Mar 20, 2013 at 15:26 UTC

    As I understand it, if your META file contains a "provides" section, the CPAN indexer doesn't do its normal file crawling to figure out what packages are contained within your release - it just trusts whatever is in "provides". Thus the "no_index" bit is basically a no-op.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
Re: CPAN Tests Failing
by blue_cowdawg (Monsignor) on Mar 20, 2013 at 15:34 UTC

    Here's a full dump of what I get when I do: perl -MWWW::Shopify::Model::DBIx::Schema:

    lib/perl5/site_perl/5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-t +hreads-64int /usr/lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686 +-cygwin-threads-64int /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5. +10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 .) at + /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 150. at + /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 155 Compilation failed in require at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 150. at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 155 Compilation failed in require at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 150. at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 155 Compilation failed in require at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 150. at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 155 Compilation failed in require at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 150. at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 155 Compilation failed in require at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 150. at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 155 Compilation failed in require at /usr/lib/perl5/site_perl/5.14/Class/C +3/Componentised.pm line 150. '; $VAR2 = 'Trace begun at WWW/Shopify/Exception.pm line 16 WWW::Shopify::Exception::new(\'WWW::Shopify::Exception::DBError\', \'D +BIx::Class::Row::throw_exception(): DBIx::Class::Row::throw_exception +(): DBIx::Class::Row::throw_exception(): DBIx::Class::Row::throw_exce +ption(): DBIx::Class::Row::throw_exception(): DBIx::Class::Row::throw +_exception(): Can\\\'t locate WWW/Shopify/Model/DBIx/Schema/Result/Mo +del/MetafieldProduct.pm in @INC (@INC contains: /usr/lib/perl5/site_p +erl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.14 /usr +/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/ +vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64int /usr/l +ib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_per +l/5.10 /usr/lib/perl5/site_perl/5.8 .) at /usr/lib/perl5/site_perl/5. +14/Class/C3/Componentised.pm line 150. at /usr/lib/perl5/site_perl/5. +14/Class/C3/Componentised.pm line 155^JCompilation failed in require +at /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 150. +at /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 155^J +Compilation failed in require at /usr/lib/perl5/site_perl/5.14/Class/ +C3/Componentisentised.pm line 155^JCompilation failed in require at / +usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 150. at / +usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 155^JComp +ilation failed in require at /usr/lib/perl5/site_perl/5.14/Class/C3/C +omponentised.pm line 150.^J\') called at WWW/Shopify/Model/DBIx/Schem +a.pm line 6 WWW::Shopify::Model::DBIx::Schema::__ANON__(\'DBIx::Class::Row::throw_ +exception(): DBIx::Class::Row::throw_exception(): DBIx::Class::Row::t +hrow_exception(): DBIx::Class::Row::throw_exception(): DBIx::Class::R +ow::throw_exception(): DBIx::Class::Row::throw_exception(): Can\\\'t +locate WWW/Shopify/Model/DBIx/Schema/Result/Model/MetafieldProduct.pm + in @INC (@INC contains: /usr/lib/perl5/site_perl/5.14/i686-cygwin-th +reads-64int /usr/lib/perl5/site_perl/5.14 /usr/lib/perl5/vendor_perl/ +5.14/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.14 /usr/l +ib/perl5/5.14/i686-cygwin-threads-64int /usr/lib/perl5/5.14 /usr/lib/ +perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/s +ite_perl/5.8 .) at /usr/lib/perl5/site_perl/5.14/Class/C3/Componentis +ed.pm line 150. at /usr/lib/perl5/site_perl/5.14/Class/C3/Componentis +ed.pm line 155^JCompilation failed in require at /usr/lib/perl5/site_ +perl/5.14/Class/C3/Componentised.pm line 150. at /usr/lib/perl5/site_ +perl/5.14/Class/C3/Componentised.pm line 155^JCompilation failed in r +equire at /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm lin +e 150. at /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm lin +e 155^JCompilation failed in require at /usr/lib/perl5/site_perl/5.14 +/Class/C3/Componentised.pm line 150. at /usr/lib/perl5/site_perl/5.14 +/Class/C3/Componentised.pm line 155^JCompilation failed in require at + /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 150. at + /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 155^JCo +mpilation failed in require at /usr/lib/perl5/site_perl/5.14/Class/C3 +/Componentised.pm line 150. at /usr/lib/perl5/site_perl/5.14/Class/C3 +/Componentised.pm line 155^JCompilation failed in require at /usr/lib +/perl5/site_perl/5.14/Class/C3/Componentised.pm line 150.^J\') called + at /usr/lib/perl5/site_perl/5.14/DBIx/Class/Schema.pm line 1084 DBIx::Class::Schema::throw_exception(\'WWW::Shopify::Model::DBIx::Sche +ma\', \'DBIx::Class::Row::throw_exception(): DBIx::Class::Row::throw_ +exception(): DBIx::Class::Row::throw_exception(): DBIx::Class::Row::t +hrow_exception(): DBIx::Class::Row::throw_exception(): DBIx::Class::R +ow::throw_exception(): Can\\\'t locate WWW/Shopify/Model/DBIx/Schema/ +Result/Model/MetafieldProduct.pm in @INC (@INC contains: /usr/lib/per +l5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/ +5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/l +ib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64i +nt /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/v +endor_perl/5.10 /usr/lib/perl5/site_perl/5.8 .) at /usr/lib/perl5/sit +e_perl/5.14/Class/C3/Componentised.pm line 150. at /usr/lib/perl5/sit +e_perl/5.14/Class/C3/Componentised.pm line 155^JCompilation failed in + require at /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm l +ine 150. at /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm l +ine 155^JCompilation failed in require at /usr/lib/perl5/site_perl/5. +14/Class/C3/Componentised.pm line 150. at /usr/lib/perl5/site_perl/5. +14/Class/C3/Componentised.pm line 155^JCompilation failed in require +at /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 150. +at /usr/lib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 155^J +Compilation failed in require at /usr/lib/perl5/site_perl/5.14/Class/ +C3/Componentised.pm line 150. at /usr/lib/perl5/site_perl/5.14/Class/ +C3/Componentised.pm line 155^JCompilation failed in require at /usr/l +ib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 150. at /usr/l +ib/perl5/site_perl/5.14/Class/C3/Componentised.pm line 155^JCompilati +on failed in require at /usr/lib/perl5/site_perl/5.14/Class/C3/Compon +entised.pm line 150.^J\') called at /usr/lib/perl5/site_perl/5.14/Cla +ss/C3/Componentised.pm line 155 Class::C3::Componentised::ensure_class_loaded(\'WWW::Shopify::Model::D +BIx::Schema\', \'WWW::Shopify::Model::DBIx::Schema::Result::Model::Or +der::TaxLine\') called at /usr/lib/perl5/site_perl/5.14/DBIx/Class/Sc +hema.pm line 244 DBIx::Class::Schema::load_namespaces(\'WWW::Shopify::Model::DBIx::Sche +ma\') called at WWW/Shopify/Model/DBIx/Schema.pm line 7 require WWW/Shopify/Model/DBIx/Schema.pm at - line 0 main::BEGIN at WWW/Shopify/Model/DBIx/Schema.pm line 0 eval {...} at WWW/Shopify/Model/DBIx/Schema.pm line 0 '; Compilation failed in require. BEGIN failed--compilation aborted. </p> Out of all that spew the part I find interesting first is: <code> Can\\\'t locate WWW/Shopify/Model/DBIx/Schema/Result/Model/MetafieldP +roduct.pm in @INC
    I did this by sitting at the top of the blib directory in your build. When I search for the offending module, where is what I see:
    $ ls -l WWW/Shopify/Model/DBIx/Schema/Result/Model/MetafieldProduct.pm ls: cannot access WWW/Shopify/Model/DBIx/Schema/Result/Model/Metafield +Product.pm: No such file or directory
    Is it possible you missed something in your manifest file?


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

      I concur. There actually seem to be a few missing:

      • WWW::Shopify::Model::DBIx::Schema::Result::Model::BlogMetafield
      • WWW::Shopify::Model::DBIx::Schema::Result::Model::CustomCollectionMetafield
      • WWW::Shopify::Model::DBIx::Schema::Result::Model::CustomerMetafield
      • WWW::Shopify::Model::DBIx::Schema::Result::Model::MetafieldOrder
      • WWW::Shopify::Model::DBIx::Schema::Result::Model::MetafieldProduct
      • WWW::Shopify::Model::DBIx::Schema::Result::Model::MetafieldVariant
      • WWW::Shopify::Model::DBIx::Schema::Result::Model::Page
      package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

        Ah. You guys are 100% right, it was indeed the manifest. Silly of me to miss it really. I guess I just got caught up over the Model::Shop thing and didn't actually just think about what's been changing recently.

        Thanks very much for solving my problem. Really appreciate it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1024526]
Approved by Corion
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2014-09-21 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (165 votes), past polls