Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.010 test failure on cygwin 5.30.0 #20

Open
cxw42 opened this issue Sep 28, 2019 · 0 comments · May be fixed by #21
Open

v0.010 test failure on cygwin 5.30.0 #20

cxw42 opened this issue Sep 28, 2019 · 0 comments · May be fixed by #21

Comments

@cxw42
Copy link

cxw42 commented Sep 28, 2019

I just built a fresh 5.30.0 from scratch on Cygwin x64 and had some interesting test failures (full log below). For example:

t/mirror.t ............. 1/?
    #   Failed test 'Test::FailWarnings should catch no warnings'
    #   at /home/cxw/perl5/perlbrew/perls/fromscratch-5.30.0/lib/5.30.0/Carp.pm line 293.
    # Warning was 'Could not copy '//home/cxw/.cpanm/work/1569712995.56683/CPAN-Common-Index-0.010/t/CPAN/modules/02packages.details.txt.gz' to '/tmp/U3wY8iyUZB/02packages.details.txt.gz': No such file or directory  at /home/cxw/.cpanm/work/1569712995.56683/CPAN-Common-Index-0.010/blib/lib/CPAN/Common/Index/Mirror.pm line 121.'
t/mirror.t ............. 3/?     # Looks like you failed 1 test of 7.

In this and the other failures, a referenced filename begins with two slashes. Cygwin considers those network paths, so doesn't resolve them as a Unix system would. I suspect (but don't know for sure) that changing the // to / would resolve the failure.

There is another cygwin failure (archived) on cpantesters that exhibits the same symptoms.

Edit Unfortunately, after cloning and installing all the authordeps, everything passes under dzil test :( .

  • I compared dependency versions from the report below to those from a successful run. The only differences I saw were (in the failure) EUMM 7.34, Test::More 1.302162, and IO::Uncompress::Gunzip 2.084. Additionally, T::M and IO::U::G are the differences between the cpantesters pass and fail (above) on Cygwin. I downgraded all three of those on my local system but was not able to reproduce the failure.

Thank you for considering this report!

Full log

$ cpanm --verbose CPAN::Common::Index
cpanm (App::cpanminus) 1.7044 on perl 5.030000 built for cygwin-thread-multi
Work directory is /home/cxw/.cpanm/work/1569712995.56683
You have make /usr/bin/make
You have /usr/bin/wget
You have /usr/bin/tar: tar (GNU tar) 1.29
Packaged by Cygwin (1.29-1)
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching CPAN::Common::Index () on cpanmetadb ...
--2019-09-28 19:23:16--  http://cpanmetadb.plackperl.org/v1.0/package/CPAN::Common::Index
Resolving cpanmetadb.plackperl.org (cpanmetadb.plackperl.org)... 151.101.186.217
Connecting to cpanmetadb.plackperl.org (cpanmetadb.plackperl.org)|151.101.186.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 273 [text/yaml]
Saving to: ‘STDOUT’

-                   100%[===================>]     273  --.-KB/s    in 0s

2019-09-28 19:23:16 (4.56 MB/s) - written to stdout [273/273]

--> Working on CPAN::Common::Index
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Common-Index-0.010.tar.gz ... --2019-09-28 19:23:16--  http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Common-Index-0.010.tar.gz
Resolving www.cpan.org (www.cpan.org)... 151.101.186.217, 2a04:4e42:2c::729
Connecting to www.cpan.org (www.cpan.org)|151.101.186.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1612703 (1.5M) [application/x-gzip]
Saving to: ‘CPAN-Common-Index-0.010.tar.gz’

CPAN-Common-Index-0 100%[===================>]   1.54M   937KB/s    in 1.7s

2019-09-28 19:23:18 (937 KB/s) - ‘CPAN-Common-Index-0.010.tar.gz’ saved [1612703/1612703]

OK
Unpacking CPAN-Common-Index-0.010.tar.gz
CPAN-Common-Index-0.010/
CPAN-Common-Index-0.010/Changes
CPAN-Common-Index-0.010/CONTRIBUTING.mkdn
CPAN-Common-Index-0.010/cpanfile
CPAN-Common-Index-0.010/dist.ini
CPAN-Common-Index-0.010/examples/
CPAN-Common-Index-0.010/lib/
CPAN-Common-Index-0.010/LICENSE
CPAN-Common-Index-0.010/Makefile.PL
CPAN-Common-Index-0.010/MANIFEST
CPAN-Common-Index-0.010/META.json
CPAN-Common-Index-0.010/META.yml
CPAN-Common-Index-0.010/perlcritic.rc
CPAN-Common-Index-0.010/README
CPAN-Common-Index-0.010/t/
CPAN-Common-Index-0.010/tidyall.ini
CPAN-Common-Index-0.010/Todo
CPAN-Common-Index-0.010/xt/
CPAN-Common-Index-0.010/xt/author/
CPAN-Common-Index-0.010/xt/release/
CPAN-Common-Index-0.010/xt/release/distmeta.t
CPAN-Common-Index-0.010/xt/release/minimum-version.t
CPAN-Common-Index-0.010/xt/author/00-compile.t
CPAN-Common-Index-0.010/xt/author/critic.t
CPAN-Common-Index-0.010/xt/author/pod-coverage.t
CPAN-Common-Index-0.010/xt/author/pod-spell.t
CPAN-Common-Index-0.010/xt/author/pod-syntax.t
CPAN-Common-Index-0.010/xt/author/portability.t
CPAN-Common-Index-0.010/xt/author/test-version.t
CPAN-Common-Index-0.010/t/00-report-prereqs.dd
CPAN-Common-Index-0.010/t/00-report-prereqs.t
CPAN-Common-Index-0.010/t/api.t
CPAN-Common-Index-0.010/t/CPAN/
CPAN-Common-Index-0.010/t/CUSTOM/
CPAN-Common-Index-0.010/t/lib/
CPAN-Common-Index-0.010/t/local_package.t
CPAN-Common-Index-0.010/t/metadb.t
CPAN-Common-Index-0.010/t/mirror.t
CPAN-Common-Index-0.010/t/mux-ordered.t
CPAN-Common-Index-0.010/t/lib/CommonTests.pm
CPAN-Common-Index-0.010/t/CUSTOM/mypackages.gz
CPAN-Common-Index-0.010/t/CUSTOM/uncompressed
CPAN-Common-Index-0.010/t/CPAN/authors/
CPAN-Common-Index-0.010/t/CPAN/modules/
CPAN-Common-Index-0.010/t/CPAN/modules/02packages.details.txt
CPAN-Common-Index-0.010/t/CPAN/modules/02packages.details.txt.gz
CPAN-Common-Index-0.010/t/CPAN/authors/01mailrc.txt
CPAN-Common-Index-0.010/t/CPAN/authors/01mailrc.txt.gz
CPAN-Common-Index-0.010/lib/CPAN/
CPAN-Common-Index-0.010/lib/CPAN/Common/
CPAN-Common-Index-0.010/lib/CPAN/Common/Index/
CPAN-Common-Index-0.010/lib/CPAN/Common/Index.pm
CPAN-Common-Index-0.010/lib/CPAN/Common/Index/LocalPackage.pm
CPAN-Common-Index-0.010/lib/CPAN/Common/Index/MetaDB.pm
CPAN-Common-Index-0.010/lib/CPAN/Common/Index/Mirror.pm
CPAN-Common-Index-0.010/lib/CPAN/Common/Index/Mux/
CPAN-Common-Index-0.010/lib/CPAN/Common/Index/Mux/Ordered.pm
CPAN-Common-Index-0.010/examples/synopsis.pl
Entering CPAN-Common-Index-0.010
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.34)
Running Makefile.PL
Configuring CPAN-Common-Index-0.010 ... Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for CPAN::Common::Index
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have Tie::Handle::SkipHeader 0 ... Yes (0.004)
Checking if you have File::Spec 0 ... Yes (3.78)
Checking if you have Exporter 0 ... Yes (5.73)
Checking if you have CPAN::DistnameInfo 0 ... Yes (0.12)
Checking if you have File::Spec::Functions 0 ... Yes (3.78)
Checking if you have parent 0 ... Yes (0.237)
Checking if you have CPAN::Meta::YAML 0 ... Yes (0.018)
Checking if you have Test::FailWarnings 0 ... Yes (0.008)
Checking if you have File::Basename 0 ... Yes (2.85)
Checking if you have File::stat 0 ... Yes (1.08)
Checking if you have Carp 0 ... Yes (1.50)
Checking if you have Module::Load 0 ... Yes (0.34)
Checking if you have Search::Dict 1.07 ... Yes (1.07)
Checking if you have File::Copy 0 ... Yes (2.34)
Checking if you have Test::Deep 0 ... Yes (1.128)
Checking if you have Test::Fatal 0 ... Yes (0.014)
Checking if you have warnings 0 ... Yes (1.44)
Checking if you have lib 0 ... Yes (0.65)
Checking if you have Test::More 0.96 ... Yes (1.302162)
Checking if you have File::Fetch 0 ... Yes (0.56)
Checking if you have HTTP::Tiny 0 ... Yes (0.076)
Checking if you have Cwd 0 ... Yes (3.78)
Checking if you have strict 0 ... Yes (1.11)
Checking if you have URI 0 ... Yes (1.76)
Checking if you have File::Temp 0.19 ... Yes (0.2309)
Checking if you have Class::Tiny 0 ... Yes (1.006)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.34)
Building and testing CPAN-Common-Index-0.010 ... cp lib/CPAN/Common/Index/MetaDB.pm blib/lib/CPAN/Common/Index/MetaDB.pm
cp lib/CPAN/Common/Index/Mirror.pm blib/lib/CPAN/Common/Index/Mirror.pm
cp lib/CPAN/Common/Index/LocalPackage.pm blib/lib/CPAN/Common/Index/LocalPackage.pm
cp lib/CPAN/Common/Index.pm blib/lib/CPAN/Common/Index.pm
cp lib/CPAN/Common/Index/Mux/Ordered.pm blib/lib/CPAN/Common/Index/Mux/Ordered.pm
Manifying 5 pod documents
PERL_DL_NONLAZY=1 "/home/cxw/perl5/perlbrew/perls/fromscratch-5.30.0/bin/perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-report-prereqs.t .. 1/1 #
# Versions for all modules listed in MYMETA.json (including optional ones):
#
# === Configure Requires ===
#
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker 6.17 7.34
#
# === Build Requires ===
#
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 7.34
#
# === Test Requires ===
#
#     Module                Want     Have
#     --------------------- ---- --------
#     Cwd                    any     3.78
#     Exporter               any     5.73
#     ExtUtils::MakeMaker    any     7.34
#     File::Spec             any     3.78
#     File::Spec::Functions  any     3.78
#     Test::Deep             any    1.128
#     Test::FailWarnings     any    0.008
#     Test::Fatal            any    0.014
#     Test::More            0.96 1.302162
#     lib                    any     0.65
#
# === Test Recommends ===
#
#     Module         Want     Have
#     ---------- -------- --------
#     CPAN::Meta 2.120900 2.150010
#
# === Runtime Requires ===
#
#     Module                  Want   Have
#     ----------------------- ---- ------
#     CPAN::DistnameInfo       any   0.12
#     CPAN::Meta::YAML         any  0.018
#     Carp                     any   1.50
#     Class::Tiny              any  1.006
#     File::Basename           any   2.85
#     File::Copy               any   2.34
#     File::Fetch              any   0.56
#     File::Spec               any   3.78
#     File::Temp              0.19 0.2309
#     File::stat               any   1.08
#     HTTP::Tiny               any  0.076
#     Module::Load             any   0.34
#     Search::Dict            1.07   1.07
#     Tie::Handle::SkipHeader  any  0.004
#     URI                      any   1.76
#     parent                   any  0.237
#     strict                   any   1.11
#     warnings                 any   1.44
#
# === Runtime Recommends ===
#
#     Module                 Want  Have
#     ---------------------- ---- -----
#     IO::Uncompress::Gunzip  any 2.084
#
t/00-report-prereqs.t .. ok
t/api.t ................ ok
t/local_package.t ...... ok
t/metadb.t ............. ok
t/mirror.t ............. 1/?
    #   Failed test 'Test::FailWarnings should catch no warnings'
    #   at /home/cxw/perl5/perlbrew/perls/fromscratch-5.30.0/lib/5.30.0/Carp.pm line 293.
    # Warning was 'Could not copy '//home/cxw/.cpanm/work/1569712995.56683/CPAN-Common-Index-0.010/t/CPAN/modules/02packages.details.txt.gz' to '/tmp/U3wY8iyUZB/02packages.details.txt.gz': No such file or directory  at /home/cxw/.cpanm/work/1569712995.56683/CPAN-Common-Index-0.010/blib/lib/CPAN/Common/Index/Mirror.pm line 121.'
t/mirror.t ............. 3/?     # Looks like you failed 1 test of 7.

#   Failed test 'refresh and unpack index files'
#   at t/mirror.t line 71.
Could not copy '//home/cxw/.cpanm/work/1569712995.56683/CPAN-Common-Index-0.010/t/CPAN/modules/02packages.details.txt.gz' to '/tmp/U3wY8iyUZB/02packages.details.txt.gz': No such file or directory  at t/mirror.t line 67.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 3.
t/mirror.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/3 subtests
t/mux-ordered.t ........ 1/?
    #   Failed test 'Test::FailWarnings should catch no warnings'
    #   at /home/cxw/perl5/perlbrew/perls/fromscratch-5.30.0/lib/5.30.0/Carp.pm line 293.
    # Warning was 'Could not copy '//home/cxw/.cpanm/work/1569712995.56683/CPAN-Common-Index-0.010/t/CPAN/authors/01mailrc.txt.gz' to '/tmp/bSvGegzWI_/01mailrc.txt.gz': No such file or directory  at /home/cxw/.cpanm/work/1569712995.56683/CPAN-Common-Index-0.010/blib/lib/CPAN/Common/Index/Mirror.pm line 121.'
    # Looks like you failed 1 test of 2.

#   Failed test 'find package'
#   at t/mux-ordered.t line 91.
Could not copy '//home/cxw/.cpanm/work/1569712995.56683/CPAN-Common-Index-0.010/t/CPAN/authors/01mailrc.txt.gz' to '/tmp/bSvGegzWI_/01mailrc.txt.gz': No such file or directory  at /home/cxw/.cpanm/work/1569712995.56683/CPAN-Common-Index-0.010/blib/lib/CPAN/Common/Index/Mux/Ordered.pm line 98.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 5.
t/mux-ordered.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/5 subtests

Test Summary Report
-------------------
t/mirror.t           (Wstat: 65280 Tests: 3 Failed: 1)
  Failed test:  3
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
t/mux-ordered.t      (Wstat: 65280 Tests: 5 Failed: 1)
  Failed test:  5
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
Files=6, Tests=30,  7 wallclock secs ( 0.03 usr  0.06 sys +  1.76 cusr  2.46 csys =  4.31 CPU)
Result: FAIL
Failed 2/6 test programs. 2/30 subtests failed.
make: *** [Makefile:919: test_dynamic] Error 255
FAIL
! Installing CPAN::Common::Index failed. See /home/cxw/.cpanm/work/1569712995.56683/build.log for details. Retry with --force to force install it.
@brunoramoslu brunoramoslu linked a pull request Aug 12, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant