Mojolicious-Plugin-OpenAPI 2.14 Fail

Tested by David Cantrell (DCANTRELL), 10. Jul 2019,

  1. Program output
  2. Tester comments
  3. Prerequisites
  4. Environment and other context
  5. More reports...

This distribution has been tested as part of the CPAN Testers project, supporting the Perl programming language. See http://wiki.cpantesters.org/ for more information or email questions to cpan-testers-discuss@perl.org

-- Dear Jan Henning Thorsen,

This is a computer-generated report for Mojolicious-Plugin-OpenAPI-2.14 on perl 5.20.2, created by CPAN-Reporter-1.2018.

Thank you for uploading your work to CPAN. However, there was a problem testing your distribution.

If you think this report is invalid, please consult the CPAN Testers Wiki for suggestions on how to avoid getting FAIL reports for missing library or binary dependencies, unsupported operating systems, and so on:

http://wiki.cpantesters.org/wiki/CPANAuthorNotes

Program output

Output from '/usr/bin/make test':

PERL_DL_NONLAZY=1 /home/david/cpantesting/perl-5.20.2/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-basic.t .......................... ok
t/authenticate.t ...................... ok
t/autorender.t ........................ ok
t/bundle.t ............................ ok
t/coerce.t ............................ ok
t/collectionformat.t .................. ok
t/correct-order-of-paths.t ............ ok
$c->openapi->cors_simple() has been replaced by $c->openapi->cors_exchange() at /home/david/cpantesting/perl-5.20.2/.cpan/build/Mojolicious-Plugin-OpenAPI-2.14-kYZ26L/blib/lib/Mojolicious/Plugin/OpenAPI/Cors.pm line 85.
$c->openapi->cors_simple() has been replaced by $c->openapi->cors_exchange() at /home/david/cpantesting/perl-5.20.2/.cpan/build/Mojolicious-Plugin-OpenAPI-2.14-kYZ26L/blib/lib/Mojolicious/Plugin/OpenAPI/Cors.pm line 85.
$c->openapi->cors_simple() has been replaced by $c->openapi->cors_exchange() at /home/david/cpantesting/perl-5.20.2/.cpan/build/Mojolicious-Plugin-OpenAPI-2.14-kYZ26L/blib/lib/Mojolicious/Plugin/OpenAPI/Cors.pm line 85.
t/cors.t .............................. ok
t/custom-format.t ..................... ok
t/default-value.t ..................... ok
t/discriminator.t ..................... ok
t/empty-string.t ...................... ok
t/error-messages.t .................... ok
t/example-array-of-hashes.t ........... ok
t/headers.t ........................... ok
t/invalid-json.t ...................... ok
t/invalid-x-mojo-name.t ............... ok
t/issue-24-booleans-in-yaml-schema.t .. skipped: [JSON::Validator] YAML::XS 0.67 is missing or could not be loaded. at /home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/JSON/Validator.pm line 354.
t/issue-48-refs.t ..................... ok
t/load-and-validate-spec.t ............ ok
[2019-07-10 11:58:58.27293] [20767] [debug] GET "/api" (7b083132)
[2019-07-10 11:58:58.27396] [20767] [debug] Routing to a callback
[2019-07-10 11:58:58.27473] [20767] [debug] 200 OK (0.001817s, 550.358/s)
[2019-07-10 11:58:58.84202] [20767] [debug] GET "/api" (37c9016c)
[2019-07-10 11:58:58.87620] [20767] [debug] Routing to a callback
[2019-07-10 11:58:58.87696] [20767] [debug] 200 OK (0.034934s, 28.625/s)
t/load-from-app.t ..................... ok
t/path-parameters.t ................... ok
t/recursion.t ......................... ok
t/ref-param.t ......................... ok
t/register.t .......................... ok

#   Failed test 'exact match for JSON Pointer "/exception"'
#   at t/renderer.t line 34.
#          got: 'no age!
# Context:
#   5: use Mojolicious::Lite;
#   6: 
#   7: my $age = 43;
#   8: get '/user' => sub {
#   9:   my $c = shift->openapi->valid_input or return;
#   10:   die "no age!\n" unless defined $age;
#   11:   $c->render(openapi => {age => $age});
#   12:   },
#   13:   'get_user';
#   14: 
#   15: post '/user' => sub {
# Traceback (most recent call first):
#   File "t/renderer.t", line 10, in "main"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious.pm", line 141, in "Mojolicious"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious/Plugins.pm", line 15, in "Mojolicious::Plugins"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious/Plugins.pm", line 18, in "Mojolicious::Plugins"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious/Routes.pm", line 97, in "Mojolicious::Routes"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious/Routes.pm", line 104, in "Mojolicious::Routes"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious/Routes.pm", line 45, in "Mojolicious::Routes"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious/Routes.pm", line 54, in "Mojolicious::Routes"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious.pm", line 132, in "Mojolicious"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious.pm", line 142, in "Mojolicious"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious/Plugins.pm", line 15, in "Mojolicious::Plugins"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious.pm", line 205, in "Mojolicious"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious.pm", line 205, in "Mojolicious"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious/Plugins.pm", line 15, in "Mojolicious::Plugins"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious/Plugins.pm", line 18, in "Mojolicious::Plugins"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojolicious.pm", line 147, in "Mojolicious"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/Server.pm", line 68, in "Mojo::Server"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/EventEmitter.pm", line 15, in "Mojo::EventEmitter"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/Server/Daemon.pm", line 104, in "Mojo::Server::Daemon"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/EventEmitter.pm", line 15, in "Mojo::EventEmitter"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/Transaction/HTTP.pm", line 60, in "Mojo::Transaction::HTTP"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/Server/Daemon.pm", line 219, in "Mojo::Server::Daemon"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/Server/Daemon.pm", line 200, in "Mojo::Server::Daemon"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/EventEmitter.pm", line 15, in "Mojo::EventEmitter"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/IOLoop/Stream.pm", line 110, in "Mojo::IOLoop::Stream"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/IOLoop/Stream.pm", line 58, in "Mojo::IOLoop::Stream"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/Reactor/Poll.pm", line 143, in "Mojo::Reactor::Poll"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/Reactor/Poll.pm", line 143, in "Mojo::Reactor::Poll"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/Reactor/EV.pm", line 46, in "Mojo::Reactor::EV"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/Reactor/EV.pm", line 25, in "Mojo::Reactor::EV"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/Reactor/EV.pm", line 25, in "Mojo::Reactor::EV"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/IOLoop.pm", line 134, in "Mojo::IOLoop"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Mojo/UserAgent.pm", line 65, in "Mojo::UserAgent"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Test/Mojo.pm", line 396, in "Test::Mojo"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Test/Mojo.pm", line 343, in "Test::Mojo"
#   File "/home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/Test/Mojo.pm", line 121, in "Test::Mojo"
#   File "t/renderer.t", line 34, in "main"
# '
#     expected: 'no age!
# '
# Looks like you failed 1 test of 21.
t/renderer.t .......................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/21 subtests 
t/reply-spec.t ........................ ok
t/route-names.t ....................... ok
t/security-disabled.t ................. ok
t/security.t .......................... ok
t/set-request.t ....................... ok
t/spec.t .............................. ok
t/swagger2.t .......................... ok
t/tutorial.t .......................... ok
t/v2-file.t ........................... ok
Format rule for 'unknown' is missing at /home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/JSON/Validator.pm line 747.
t/v2-formats.t ........................ ok
t/v2-readonly.t ....................... ok
t/v3-body.t ........................... skipped: Can't locate YAML/XS.pm in @INC (you may need to install the YAML::XS module) (@INC contains: /home/david/cpantesting/perl-5.20.2/.cpan/build/Mojolicious-Plugin-OpenAPI-2.14-kYZ26L/blib/lib /home/david/cpantesting/perl-5.20.2/.cpan/build/Mojolicious-Plugin-OpenAPI-2.14-kYZ26L/blib/arch /home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/x86_64-linux-thread-multi /home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2 /home/david/cpantesting/perl-5.20.2/lib/5.20.2/x86_64-linux-thread-multi /home/david/cpantesting/perl-5.20.2/lib/5.20.2 .) at (eval 87) line 1.
t/v3-nullable.t ....................... skipped: Can't locate YAML/XS.pm in @INC (you may need to install the YAML::XS module) (@INC contains: /home/david/cpantesting/perl-5.20.2/.cpan/build/Mojolicious-Plugin-OpenAPI-2.14-kYZ26L/blib/lib /home/david/cpantesting/perl-5.20.2/.cpan/build/Mojolicious-Plugin-OpenAPI-2.14-kYZ26L/blib/arch /home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/x86_64-linux-thread-multi /home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2 /home/david/cpantesting/perl-5.20.2/lib/5.20.2/x86_64-linux-thread-multi /home/david/cpantesting/perl-5.20.2/lib/5.20.2 .) at (eval 87) line 1.
t/v3.t ................................ skipped: Can't locate YAML/XS.pm in @INC (you may need to install the YAML::XS module) (@INC contains: /home/david/cpantesting/perl-5.20.2/.cpan/build/Mojolicious-Plugin-OpenAPI-2.14-kYZ26L/blib/lib /home/david/cpantesting/perl-5.20.2/.cpan/build/Mojolicious-Plugin-OpenAPI-2.14-kYZ26L/blib/arch /home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/x86_64-linux-thread-multi /home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2 /home/david/cpantesting/perl-5.20.2/lib/5.20.2/x86_64-linux-thread-multi /home/david/cpantesting/perl-5.20.2/lib/5.20.2 .) at (eval 87) line 1.
t/validate.t .......................... ok
t/x-mojo-placeholder.t ................ ok
# Skipping test when YAML::XS 0.67 is not installed
t/yaml.t .............................. ok

Test Summary Report
-------------------
t/renderer.t                        (Wstat: 256 Tests: 21 Failed: 1)
  Failed test:  16
  Non-zero exit status: 1
t/v2-formats.t                      (Wstat: 0 Tests: 30 Failed: 0)
  TODO passed:   15, 21-22
Files=43, Tests=565, 164 wallclock secs ( 0.19 usr  0.05 sys + 18.17 cusr  1.79 csys = 20.20 CPU)
Result: FAIL
Failed 1/43 test programs. 1/565 subtests failed.
Makefile:897: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255

Prerequisites

Requires

Build requires

Configure requires

Tester comments

this report is from an automated smoke testing program and was not reviewed by a human for accuracy

Environment and other context

Environment variables:

    AUTOMATED_TESTING = 1
    LANG = en_US.UTF-8
    NONINTERACTIVE_TESTING = 1
    PATH = /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    PERL = 5.20.2
    PERL5LIB = 
    PERL5OPT = 
    PERL5_CPANPLUS_IS_RUNNING = 31761
    PERL5_CPAN_IS_RUNNING = 31761
    PERLVER = 5.20.2
    PERL_INLINE_DIRECTORY = /home/david/.Inline-5.20.2
    PERL_MM_USE_DEFAULT = 1
    PERL_USE_UNSAFE_INC = 0
    SHELL = /bin/bash
    TERM = screen

Perl special variables (and OS-specific diagnostics, for MSWin32):

    $^X = /home/david/cpantesting/perl-5.20.2/bin/perl
    $UID/$EUID = 1000 / 1000
    $GID = 1000 27 1000
    $EGID = 1000 27 1000

Perl module toolchain versions installed:

    Module              Have    
    ------------------- --------
    CPAN                2.05    
    CPAN::Meta          2.150010
    Cwd                 3.48_01 
    ExtUtils::CBuilder  0.280217
    ExtUtils::Command   1.18    
    ExtUtils::Install   1.67    
    ExtUtils::MakeMaker 6.98    
    ExtUtils::Manifest  1.63    
    ExtUtils::ParseXS   3.24    
    File::Spec          3.48_01 
    JSON                4.02    
    JSON::PP            4.02    
    Module::Build       0.4229  
    Module::Signature   n/a     
    Parse::CPAN::Meta   2.150010
    Test::Harness       3.30    
    Test::More          1.302162
    YAML                n/a     
    YAML::Syck          n/a     
    version             0.9909  


--

Summary of my perl5 (revision 5 version 20 subversion 2) configuration:
   
  Platform:
    osname=linux, osvers=4.9.0-8-amd64, archname=x86_64-linux-thread-multi
    uname='linux pigsty 4.9.0-8-amd64 #1 smp debian 4.9.144-3 (2019-02-02) x86_64 gnulinux '
    config_args='-de -Duse64bitall -Dusethreads -Dprefix=/home/david/cpantesting/perl-5.20.2'
    hint=previous, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccversion='', gccversion='6.3.0 20170516', 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 /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed /usr/include/x86_64-linux-gnu /usr/lib
    libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=libc-2.24.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.24'
  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 MULTIPLICITY PERLIO_LAYERS
                        PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                        PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
                        USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS
                        USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
                        USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO
                        USE_PERL_ATOF USE_REENTRANT_API
  Locally applied patches:
	Devel::PatchPerl 1.56
  Built under linux
  Compiled at Apr 25 2019 17:17:34
  %ENV:
    PERL="5.20.2"
    PERL5LIB=""
    PERL5OPT=""
    PERL5_CPANPLUS_IS_RUNNING="31761"
    PERL5_CPAN_IS_RUNNING="31761"
    PERLVER="5.20.2"
    PERL_INLINE_DIRECTORY="/home/david/.Inline-5.20.2"
    PERL_MM_USE_DEFAULT="1"
    PERL_USE_UNSAFE_INC="0"
  @INC:
    /home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2/x86_64-linux-thread-multi
    /home/david/cpantesting/perl-5.20.2/lib/site_perl/5.20.2
    /home/david/cpantesting/perl-5.20.2/lib/5.20.2/x86_64-linux-thread-multi
    /home/david/cpantesting/perl-5.20.2/lib/5.20.2