Skip to content

tests fail in fetch() #117

@briandfoy

Description

@briandfoy

I'm trying to install MetaCPAN::Client on a new machine with a self-compiled v5.38.0. These URLs that fail are prefectly fine from any other client I tried. I suspect this is actually a problem in a module that it uses, and I am investigating.

$ uname -a
Darwin m2otter.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 arm64

$ openssl version
OpenSSL 3.1.2 1 Aug 2023 (Library: OpenSSL 3.1.2 1 Aug 2023)

$ cpan MetaCPAN::Client
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/Users/brian/.cpan/Metadata'
  Database was generated on Sun, 06 Aug 2023 15:17:02 GMT
Running install for module 'MetaCPAN::Client'
Checksum for /Users/brian/.cpan/sources/authors/id/M/MI/MICKEY/MetaCPAN-Client-2.030000.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring M/MI/MICKEY/MetaCPAN-Client-2.030000.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for MetaCPAN::Client
Writing MYMETA.yml and MYMETA.json
  MICKEY/MetaCPAN-Client-2.030000.tar.gz
  /usr/local/perls/perl-5.38.0/bin/perl Makefile.PL -- OK
Running make for M/MI/MICKEY/MetaCPAN-Client-2.030000.tar.gz
cp lib/MetaCPAN/Client/Permission.pm blib/lib/MetaCPAN/Client/Permission.pm
cp lib/MetaCPAN/Client/Module.pm blib/lib/MetaCPAN/Client/Module.pm
cp lib/MetaCPAN/Client/Release.pm blib/lib/MetaCPAN/Client/Release.pm
cp lib/MetaCPAN/Client/DownloadURL.pm blib/lib/MetaCPAN/Client/DownloadURL.pm
cp lib/MetaCPAN/Client/Types.pm blib/lib/MetaCPAN/Client/Types.pm
cp lib/MetaCPAN/Client/Cover.pm blib/lib/MetaCPAN/Client/Cover.pm
cp lib/MetaCPAN/Client/ResultSet.pm blib/lib/MetaCPAN/Client/ResultSet.pm
cp lib/MetaCPAN/Client/Distribution.pm blib/lib/MetaCPAN/Client/Distribution.pm
cp lib/MetaCPAN/Client/Author.pm blib/lib/MetaCPAN/Client/Author.pm
cp lib/MetaCPAN/Client.pm blib/lib/MetaCPAN/Client.pm
cp lib/MetaCPAN/Client/Pod.pm blib/lib/MetaCPAN/Client/Pod.pm
cp lib/MetaCPAN/Client/Role/HasUA.pm blib/lib/MetaCPAN/Client/Role/HasUA.pm
cp lib/MetaCPAN/Client/Role/Entity.pm blib/lib/MetaCPAN/Client/Role/Entity.pm
cp lib/MetaCPAN/Client/Scroll.pm blib/lib/MetaCPAN/Client/Scroll.pm
cp lib/MetaCPAN/Client/Favorite.pm blib/lib/MetaCPAN/Client/Favorite.pm
cp lib/MetaCPAN/Client/Rating.pm blib/lib/MetaCPAN/Client/Rating.pm
cp lib/MetaCPAN/Client/Package.pm blib/lib/MetaCPAN/Client/Package.pm
cp lib/MetaCPAN/Client/File.pm blib/lib/MetaCPAN/Client/File.pm
cp lib/MetaCPAN/Client/Mirror.pm blib/lib/MetaCPAN/Client/Mirror.pm
cp lib/MetaCPAN/Client/Request.pm blib/lib/MetaCPAN/Client/Request.pm
  MICKEY/MetaCPAN-Client-2.030000.tar.gz
  /usr/bin/make -- OK
Running make test for MICKEY/MetaCPAN-Client-2.030000.tar.gz
PERL_DL_NONLAZY=1 "/usr/local/perls/perl-5.38.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/api/*.t
t/00-report-prereqs.t ......... #
# Versions for all modules listed in MYMETA.json (including optional ones):
#
# === Configure Requires ===
#
#     Module                Want Have
#     ------------------- ------ ----
#     ExtUtils::MakeMaker 7.1101 7.70
#
# === Build Requires ===
#
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 7.70
#
# === Test Requires ===
#
#     Module                   Want     Have
#     -------------------- -------- --------
#     ExtUtils::MakeMaker       any     7.70
#     File::Spec                any     3.88
#     LWP::Protocol::https      any     6.11
#     Test::Fatal               any    0.017
#     Test::More                any 1.302194
#     Test::Needs          0.002005 0.002010
#     base                      any     2.27
#     blib                     1.01     1.07
#
# === Test Recommends ===
#
#     Module                     Want     Have
#     ---------------------- -------- --------
#     CPAN::Meta             2.120900 2.150010
#     HTTP::Tiny::Mech       1.001002 1.001002
#     WWW::Mechanize::Cached     1.54     1.56
#
# === Runtime Requires ===
#
#     Module           Want     Have
#     --------------- ----- --------
#     Carp              any     1.54
#     HTTP::Tiny      0.056    0.086
#     IO::Socket::SSL  1.42    2.083
#     JSON::MaybeXS     any 1.004005
#     JSON::PP          any     4.16
#     Moo               any 2.005005
#     Moo::Role         any 2.005005
#     Net::SSLeay      1.49     1.92
#     Ref::Util         any    0.204
#     Safe::Isa         any 1.000010
#     Type::Tiny        any 2.004000
#     URI::Escape       any     5.19
#     strict            any     1.12
#     warnings          any     1.65
#
t/00-report-prereqs.t ......... ok
t/api/_get.t .................. ok
t/api/_get_or_search.t ........ ok
t/api/_search.t ............... ok
t/api/author.t ................ 1/? Failed to fetch 'https://fastapi.metacpan.org/author/XSAWYERX': Internal Exception at /Users/brian/.cpan/build/MetaCPAN-Client-2.030000-5/blib/lib/MetaCPAN/Client.pm line 288.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 2.

    ... lots more of the same ...

Files=23, Tests=90,  3 wallclock secs ( 0.02 usr  0.02 sys +  1.63 cusr  0.23 csys =  1.90 CPU)
Result: FAIL
Failed 15/23 test programs. 1/90 subtests failed.
make: *** [test_dynamic] Error 255
  MICKEY/MetaCPAN-Client-2.030000.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports MICKEY/MetaCPAN-Client-2.030000.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions