Skip Menu |

This queue is for tickets about the CGI-Application-Dispatch CPAN distribution.

Report information
The Basics
Id: 83501
Status: resolved
Priority: 0/
Queue: CGI-Application-Dispatch

People
Owner: Nobody in particular
Requestors: opensource [...] peoplemerge.com
Cc:
AdminCc:

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



Subject: Tests fail
Can't install CGI-Application-Dispatch-3.12 on CPAN, perl 5.8.8 - CentOS 5.9, tests fail. Question: do tests presume a running Apache with tests already deployed in DocumentRoot? If so, should I just install without tests (!) ? Thanks, error output below. centos-56-64 CGI-Application-Dispatch-3.12]$ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/cgi........ok t/handler....Ignoring import spec :withtestmore at t/handler.t line 14 t/handler....NOK 1# Failed test at t/handler.t line 27. t/handler....NOK 2 # Failed test at t/handler.t line 215. t/handler....NOK 3 # Failed test at t/handler.t line 37. t/handler....NOK 4 # Failed test at t/handler.t line 215. t/handler....NOK 5 # Failed test at t/handler.t line 47. t/handler....NOK 6 # Failed test at t/handler.t line 215. t/handler....NOK 7 # Failed test at t/handler.t line 59. t/handler....NOK 8 # Failed test at t/handler.t line 215. t/handler....NOK 9 # Failed test at t/handler.t line 65. t/handler....NOK 10 # Failed test at t/handler.t line 215. t/handler....NOK 11 # Failed test at t/handler.t line 75. t/handler....NOK 12 # Failed test at t/handler.t line 215. t/handler....NOK 14 # Failed test 'not found - no module' # at t/handler.t line 88. # got: '500' # expected: '404' t/handler....NOK 18 # Failed test 'not found: no run mode' # at t/handler.t line 98. # got: '500' # expected: '404' t/handler....NOK 20 # Failed test 'server error: invalid characters' # at t/handler.t line 103. # got: '500' # expected: '400' t/handler....NOK 21 # Failed test at t/handler.t line 111. t/handler....NOK 22 # Failed test at t/handler.t line 215. t/handler....NOK 23 # Failed test at t/handler.t line 215. t/handler....NOK 24 # Failed test at t/handler.t line 117. t/handler....NOK 25 # Failed test at t/handler.t line 215. # Failed test at t/handler.t line 215. # Failed test at t/handler.t line 123. # Failed test at t/handler.t line 215. t/handler....NOK 28 t/handler....NOK 29# Failed test at t/handler.t line 215. t/handler....NOK 30# Failed test at t/handler.t line 133. t/handler....NOK 31# Failed test at t/handler.t line 215. t/handler....NOK 32# Failed test at t/handler.t line 215. t/handler....NOK 33# Failed test at t/handler.t line 143. t/handler....NOK 34# Failed test at t/handler.t line 215. t/handler....NOK 35# Failed test at t/handler.t line 215. t/handler....NOK 36# Failed test at t/handler.t line 149. t/handler....NOK 37 # Failed test at t/handler.t line 215. t/handler....NOK 38# Failed test at t/handler.t line 215. t/handler....NOK 39# Failed test at t/handler.t line 155. t/handler....NOK 40# Failed test at t/handler.t line 215. t/handler....NOK 41# Failed test at t/handler.t line 215. t/handler....NOK 42# Failed test at t/handler.t line 161. t/handler....NOK 43# Failed test at t/handler.t line 215. t/handler....NOK 44# Failed test at t/handler.t line 215. t/handler....NOK 45# Failed test at t/handler.t line 167. t/handler....NOK 46# Failed test at t/handler.t line 215. t/handler....NOK 47# Failed test at t/handler.t line 215. t/handler....NOK 48# Failed test at t/handler.t line 178. # Failed test at t/handler.t line 215. # Failed test at t/handler.t line 183. # Failed test at t/handler.t line 215. # Failed test at t/handler.t line 188. # Failed test at t/handler.t line 215. # Failed test at t/handler.t line 193. # Failed test at t/handler.t line 215. # Failed test at t/handler.t line 198. # Failed test at t/handler.t line 215. # Failed test at t/handler.t line 204. # Failed test at t/handler.t line 215. # Looks like you failed 54 tests of 61. t/handler....dubious Test returned status 54 (wstat 13824, 0x3600) DIED. FAILED tests 1-12, 14, 18, 20-57, 59-60 Failed 54/61 tests, 11.48% okay t/psgi.......ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------ ------- t/handler.t 54 13824 61 54 88.52% 1-12 14 18 20-57 59-60 Failed 1/3 test scripts, 66.67% okay. 54/127 subtests failed, 57.48% okay. make: *** [test_dynamic] Error 255
Subject: Re: [rt.cpan.org #83501] Tests fail
Date: Thu, 21 Feb 2013 09:35:12 -0500
To: bug-CGI-Application-Dispatch [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
I don't know why it's failing in your environment. Try checking or logs, or reviewing the cpantesters data to see if there is a pattern to other people experiencing failures. CGI::Application::Dispatch::PSGI is an alternative which also works with Apache. I'm also not sure about the Apache requirements without looking. You may wish to investigate the test scripts to determine that as well. Mark
From: opensource [...] peoplemerge.com
Mark! Thanks for your quick reply. I have a feeling you're right, and maybe I should take this up with the Apache group. It looks like the test requires a running Apache configured in a certain (undocumented?) way with CGI-Application-Dispatch already installed: Apache::TestRequest->import(qw(GET POST)); $response = GET('/app1/module_name/rm1'); ok($response->is_success); This chicken-or-egg prevents a CPAN install. I'd either automate the install/run or move them into author-specific integration tests.
Subject: Re: [rt.cpan.org #83501] Tests fail
Date: Fri, 22 Feb 2013 09:41:02 -0500
To: bug-cgi-application-dispatch [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
Dave, The tests are passing for 295 other cases, but not for you: https://metacpan.org/release/CGI-Application-Dispatch This suggests there's something unusual about your environment. Mark
From: opensource [...] peoplemerge.com
I thought maybe there was something special needed to set up those other environments that didn't work for me, so I repeated my steps in a fresh Ubuntu Quantal VM. The previous one which failed was an old CentOS 5 VM (http://puppetlabs.s3.amazonaws.com/pub/centos56_64.box which I found from vagrantbox.es). The result: tests pass. I also tried with Apache::Test installed. I don't really care to investigate further since it I'm convinced you're right and there's something wrong with the CentOS VM I got from puppetlabs or the way I've set it up. If I do need to build more VMs and can reproduce the issue I'll take it up the right channel which is not here. Thanks for your help! Dave