Skip Menu |

This queue is for tickets about the Perinci-Sub-GetArgs-Argv CPAN distribution.

Report information
The Basics
Id: 121166
Status: resolved
Priority: 0/
Queue: Perinci-Sub-GetArgs-Argv

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

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



Subject: Tests fail on perl-5.24.1 on Linux
Hi! The tests fail on perl-5.24.1 from perlbrew on Linux: [MSG] Extracted 'Perinci::Sub::GetArgs::Argv' to '/home/shlomif/.cpanpl[27/1938] /build/qJdqo16AUc/Perinci-Sub-GetArgs-Argv-0.80' Running [/home/shlomif/apps/perl/brew/perls/perl-5.24.1/bin/perl -e use strict; BEGIN { my $old = select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv = do($0); die $@ if $@; } /home/shlomif/.cpanplus/5.24.1/build/qJdqo16AUc/Pe rinci-Sub-GetArgs-Argv-0.80/Makefile.PL]... Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Perinci::Sub::GetArgs::Argv Writing MYMETA.yml and MYMETA.json Running [/usr/bin/make]... cp lib/Perinci/Sub/GetArgs/Argv.pm blib/lib/Perinci/Sub/GetArgs/Argv.pm Manifying 1 pod document Running [/usr/bin/make test]... PERL_DL_NONLAZY=1 "/home/shlomif/apps/perl/brew/perls/perl-5.24.1/bin/perl" "-ME xtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; te st_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-compile.t ....................................... ok # No tests run! # Failed test 'No tests run for subtest "based on simple type"' # at t/_is_simple_or_array_of_simple_or_hash_of_simple.t line 124. # Looks like you failed 1 test of 2. # Failed test 'simple' # at t/_is_simple_or_array_of_simple_or_hash_of_simple.t line 36. Not a known type/schema name 'int' at /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1/Data/Sah/Resolve.pm line 29. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 1. t/_is_simple_or_array_of_simple_or_hash_of_simple.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/1 subtests t/author-pod-coverage.t .............................. skipped: these tests are for testing by the author t/author-pod-syntax.t ................................ skipped: these tests are for testing by the author t/gen_getopt_long_spec_from_meta.t ................... ok Unknown option: foo Invalid YAML/JSON in arg 'arg5' at /home/shlomif/.cpanplus/5.24.1/build/qJdqo16AUc/Perinci-Sub-GetArgs-Argv-0.80/blib/lib/Perinci/Sub/GetArgs/Argv.pm line 351. Failed trying to parse argv #0 as JSON: 'false' expected, at character offset 1 (before "foo]") at /home/shlomif/.cpanplus/5.24.1/build/qJdqo16AUc/Perinci-Sub-GetArgs-Argv-0.80/blib/lib/Perinci/Sub/GetArgs/Argv.pm line 56. Failed trying to parse argv #0 as JSON: 'false' expected, at character offset 1 (before "foo]") at /home/shlomif/.cpanplus/5.24.1/build/qJdqo16AUc/Perinci-Sub-GetArgs-Argv-0.80/blib/lib/Perinci/Sub/GetArgs/Argv.pm line 56. Unknown option: arg2 Unknown option: foo_bar_baz Unknown option: foo-bar_baz Unknown option: foo-yaml Unknown option: foo-json Unknown option: nofalse Option hs, key "1", requires a value Value "x" invalid for option hi (number expected) t/get_args_from_argv.t ............................... ok t/release-rinci.t .................................... skipped: these tests are for release candidate testing Test Summary Report ------------------- t/_is_simple_or_array_of_simple_or_hash_of_simple.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=7, Tests=60, 1 wallclock secs ( 0.06 usr 0.00 sys + 0.39 cusr 0.03 csys = 0.48 CPU) Result: FAIL Failed 1/7 test programs. 1/60 subtests failed. Makefile:889: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 The tests for 'Perinci::Sub::GetArgs::Argv' failed. Would you like me to proceed anyway or should we abort? =============== Thing is - I'm trying to "cpanp -i Dist::Zilla::PluginBundle::Author::PERLANCAR" and this dep there fails.
Hi Shlomi, Thanks for the report. I've been seeing this failure too from CPAN Testers, but haven't investigated further. Could you test again with the latest Data::Sah::Resolve (0.006) that I just released? Nevertheless, it should be safe to proceed despite the test failure. Regards, perlancar
Hi perlancar, On Sat Apr 15 22:21:16 2017, PERLANCAR wrote: Show quoted text
> Hi Shlomi, > > Thanks for the report. I've been seeing this failure too from CPAN > Testers, but haven't investigated further. Could you test again with > the latest Data::Sah::Resolve (0.006) that I just released? >
It still fails: shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ make test PERL_DL_NONLAZY=1 "/home/shlomif/apps/perl/brew/perls/perl-5.24.1/bin/perl" "-ME xtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; te st_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-compile.t ....................................... ok t/_is_simple_or_array_of_simple_or_hash_of_simple.t .. # No tests run! # Failed test 'No tests run for subtest "based on simple type"' # at t/_is_simple_or_array_of_simple_or_hash_of_simple.t line 124. # Looks like you failed 1 test of 2. t/_is_simple_or_array_of_simple_or_hash_of_simple.t .. 1/? # Failed test 'simple' # at t/_is_simple_or_array_of_simple_or_hash_of_simple.t line 36. Not a known type/schema name 'int' (Can't locate Sah/Schema/int.pm in @INC (you may need to install the Sah::Schema::int module) (@INC contains: /home/shlomif/P erinci-Sub-GetArgs-Argv-0.80/blib/lib /home/shlomif/Perinci-Sub-GetArgs-Argv-0.8 0/blib/arch /home/shlomif/apps/perl/modules/lib/perl5/site_perl/5.22.3 /home/shl omif/apps/perl/modules/lib/site_perl/5.22.3 /home/shlomif/apps/perl/modules/lib/ perl5/5.22.3 /home/shlomif/apps/perl/modules/lib/perl5/site_perl/5.22.2 /home/sh lomif/apps/perl/modules/lib/site_perl/5.22.2 /home/shlomif/apps/perl/modules/lib /perl5/5.22.2 /home/shlomif/apps/perl/modules/lib/perl5/site_perl/5.22.3 /home/shlomif/apps/perl/modules/lib/site_perl/5.22.3 /home/shlomif/apps/perl/modules/li b/perl5/5.22.3 /home/shlomif/apps/perl/modules/lib/perl5/site_perl/5.22.2 /home/ shlomif/apps/perl/modules/lib/site_perl/5.22.2 /home/shlomif/apps/perl/modules/l ib/perl5/5.22.2 /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.2 4.1/x86_64-linux /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5. 24.1 /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux /hom e/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/5.24.1 .) at /home/shlomif/apps/p erl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1/Data/Sah/Resolve.pm line 31. ) at /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1/Data/Sa h/Resolve.pm line 32. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 1. t/_is_simple_or_array_of_simple_or_hash_of_simple.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/1 subtests t/author-pod-coverage.t .............................. skipped: these tests are for testing by the author t/author-pod-syntax.t ................................ skipped: these tests are for testing by the author t/gen_getopt_long_spec_from_meta.t ................... ok t/get_args_from_argv.t ............................... 1/? Unknown option: foo Invalid YAML/JSON in arg 'arg5' at /home/shlomif/Perinci-Sub-GetArgs-Argv-0.80/blib/lib/Perinci/Sub/GetArgs/Argv.pm line 351. Failed trying to parse argv #0 as JSON: 'false' expected, at character offset 1 (before "foo]") at /home/shlomif/Perinci-Sub-GetArgs-Argv-0.80/blib/lib/Perinci/Sub/GetArgs/Argv.pm line 56. Failed trying to parse argv #0 as JSON: 'false' expected, at character offset 1 (before "foo]") at /home/shlomif/Perinci-Sub-GetArgs-Argv-0.80/blib/lib/Perinci/Sub/GetArgs/Argv.pm line 56. Unknown option: arg2 Unknown option: foo_bar_baz Unknown option: foo-bar_baz Unknown option: foo-yaml Unknown option: foo-json Unknown option: nofalse Option hs, key "1", requires a value Value "x" invalid for option hi (number expected) t/get_args_from_argv.t ............................... ok t/release-rinci.t .................................... skipped: these tests are for release candidate testing Test Summary Report ------------------- t/_is_simple_or_array_of_simple_or_hash_of_simple.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=7, Tests=60, 0 wallclock secs ( 0.05 usr 0.01 sys + 0.39 cusr 0.03 csys = 0.48 CPU) Result: FAIL Failed 1/7 test programs. 1/60 subtests failed. Makefile:889: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ make test^C shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ perl -MData::Sah::Resolve\ 999 Data::Sah::Resolve version 999 required--this is only version 0.006. BEGIN failed--compilation aborted. shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ Show quoted text
> Nevertheless, it should be safe to proceed despite the test failure. >
Part of the point of my experiment is to make sure it can be installed with all tests passing. Thanks for returning to me. Show quoted text
> Regards, > perlancar
Can you use something like my Devel::End::PrintINCVersion to print the versions of modules, e.g.: % PERL5OPT=-MDevel::End::PrintINCVersion prove -l t/_is_simple_or_array_of_simple_or_hash_of_simple.t For some reason, there seems to be a problem loading Data::Sah::Type::int, which is done to check if a type is a "builtin type". This problem causes the checking of Sah::Schema::int which does not exist because "int" is indeed a "builtin type". My first guess is older version of Data::Sah.

Message body is not shown because it is too large.

Also, could I get the installed version of Data::Sah and the output of: % perl -MData::Sah::Type::int -e1
On Sun Apr 16 05:53:25 2017, PERLANCAR wrote: Show quoted text
> Also, could I get the installed version of Data::Sah and the output of: > > % perl -MData::Sah::Type::int -e1 >
shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ which perl /home/shlomif/apps/perl/brew/perls/perl-5.24.1/bin/perl shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ perl -MData::Sah\ 999Can't locate Data/Sah.pm in @INC (you may need to install the Data::Sah module) (@INC contains: /home/shlomif/apps/perl/modules/lib/perl5/site_perl/5.22.3 /home/shlomif/apps/perl/modules/lib/site_perl/5.22.3 /home/shlomif/apps/perl/modules/lib/perl5/5.22.3 /home/shlomif/apps/perl/modules/lib/perl5/site_perl/5.22.2 /home/shlomif/apps/perl/modules/lib/site_perl/5.22.2 /home/shlomif/apps/perl/modules/lib/perl5/5.22.2 /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1/x86_64-linux /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1 /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/5.24.1 .). BEGIN failed--compilation aborted. shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ perl -MData::Sah::Type::int -e1 Can't locate Data/Sah/Type/int.pm in @INC (you may need to install the Data::Sah::Type::int module) (@INC contains: /home/shlomif/apps/perl/modules/lib/perl5/site_perl/5.22.3 /home/shlomif/apps/perl/modules/lib/site_perl/5.22.3 /home/shlomif/apps/perl/modules/lib/perl5/5.22.3 /home/shlomif/apps/perl/modules/lib/perl5/site_perl/5.22.2 /home/shlomif/apps/perl/modules/lib/site_perl/5.22.2 /home/shlomif/apps/perl/modules/lib/perl5/5.22.2 /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1/x86_64-linux /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1 /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/5.24.1 .). BEGIN failed--compilation aborted. shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$
Subject: Re: [rt.cpan.org #121166] Tests fail on perl-5.24.1 on Linux
Date: Sun, 16 Apr 2017 17:28:02 +0700
To: bug-Perinci-Sub-GetArgs-Argv [...] rt.cpan.org
From: Perl Ancar <perlancar [...] gmail.com>
ok so this is a missing dependency problem. i'll rectify this in a moment. thanks! On Apr 16, 2017 5:22 PM, "Shlomi Fish via RT" < bug-Perinci-Sub-GetArgs-Argv@rt.cpan.org> wrote: Show quoted text
> Queue: Perinci-Sub-GetArgs-Argv > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=121166 > > > On Sun Apr 16 05:53:25 2017, PERLANCAR wrote:
> > Also, could I get the installed version of Data::Sah and the output of: > > > > % perl -MData::Sah::Type::int -e1 > >
> > > shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ which perl > /home/shlomif/apps/perl/brew/perls/perl-5.24.1/bin/perl > shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ perl -MData::Sah\ > 999Can't locate Data/Sah.pm in @INC (you may need to install the Data::Sah > module) (@INC contains: /home/shlomif/apps/perl/ > modules/lib/perl5/site_perl/5.22.3 /home/shlomif/apps/perl/modules/lib/site_perl/5.22.3 > /home/shlomif/apps/perl/modules/lib/perl5/5.22.3 /home/shlomif/apps/perl/ > modules/lib/perl5/site_perl/5.22.2 /home/shlomif/apps/perl/modules/lib/site_perl/5.22.2 > /home/shlomif/apps/perl/modules/lib/perl5/5.22.2 > /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1/x86_64-linux > /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1 > /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux > /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/5.24.1 .). > BEGIN failed--compilation aborted. > shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ perl > -MData::Sah::Type::int -e1 > Can't locate Data/Sah/Type/int.pm in @INC (you may need to install the > Data::Sah::Type::int module) (@INC contains: /home/shlomif/apps/perl/ > modules/lib/perl5/site_perl/5.22.3 /home/shlomif/apps/perl/modules/lib/site_perl/5.22.3 > /home/shlomif/apps/perl/modules/lib/perl5/5.22.3 /home/shlomif/apps/perl/ > modules/lib/perl5/site_perl/5.22.2 /home/shlomif/apps/perl/modules/lib/site_perl/5.22.2 > /home/shlomif/apps/perl/modules/lib/perl5/5.22.2 > /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1/x86_64-linux > /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/site_perl/5.24.1 > /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux > /home/shlomif/apps/perl/brew/perls/perl-5.24.1/lib/5.24.1 .). > BEGIN failed--compilation aborted. > shlomif@telaviv1:~/Perinci-Sub-GetArgs-Argv-0.80$ >
On Sun Apr 16 06:28:21 2017, perlancar@gmail.com wrote: Show quoted text
> ok so this is a missing dependency problem. i'll rectify this in a > moment. > thanks!
Thanks. Show quoted text
> On Apr 16, 2017 5:22 PM, "Shlomi Fish via RT" < > bug-Perinci-Sub-GetArgs-Argv@rt.cpan.org> wrote:
Released 0.81 that fixes this issue.
On Wed Apr 19 02:15:33 2017, PERLANCAR wrote: Show quoted text
> Released 0.81 that fixes this issue.
Thanks! I should note that it appears to have fixed it here. Now I can continue with trying to install the PluginBundle.
On Thu Apr 20 05:40:38 2017, SHLOMIF wrote: Show quoted text
> On Wed Apr 19 02:15:33 2017, PERLANCAR wrote:
> > Released 0.81 that fixes this issue.
> > Thanks! I should note that it appears to have fixed it here. Now I can > continue with trying to install the PluginBundle.
OK, cpanp -i Dist::Zilla::PluginBundle::Author::PERLANCAR gives me: " Module 'Dist::Zilla::PluginBundle::Author::PERLANCAR' installed successfully No errors installing all modules " Good job and thanks!