Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the UR CPAN distribution.

Report information
The Basics
Id: 83479
Status: resolved
Priority: 0/
Queue: UR

People
Owner: BRUMMETT [...] cpan.org
Requestors: olivier.sallou [...] gmail.com
Cc:
AdminCc:

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



Subject: UR fails to install via CPAN, tests are failing
Hi, I tried to install UR from CPAN, but tests are failing: Test Summary Report ------------------- t/URT/t/63_view_text.t (Wstat: 512 Tests: 4 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 24 tests but ran 4. t/URT/t/63b_view_with_subviews.t (Wstat: 512 Tests: 4 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 11 tests but ran 4. t/URT/t/63c_view_with_subviews.t (Wstat: 512 Tests: 11 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 31 tests but ran 11. t/URT/t/63d_delete_view.t (Wstat: 512 Tests: 4 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 8 tests but ran 4. t/URT/t/63e_enumerate_available_views.t (Wstat: 512 Tests: 2 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 5 tests but ran 2. Files=223, Tests=7134, 221 wallclock secs ( 2.82 usr 1.07 sys + 153.65 cusr 12.94 csys = 170.48 CPU) Result: FAIL Errors in testing. Cannot continue. Here is small extract of errors: t/URT/t/63e_enumerate_available_views.t ................................... 1/5 Failed to resolve a subclass of UR::Object::View for URT::Thingy::Type from parameters. Received UR::BoolExpr=(UR::Object::View: perspective => "available-views", subject_class_name => "URT::Thingy::Type", toolkit => "xml"). at t/URT/t/63e_enumerate_available_views.t line 25 # Looks like you planned 5 tests but ran 2. # Looks like your test exited with 2 just after 2. t/URT/t/63e_enumerate_available_views.t ................................... Dubious, test returned 2 (wstat 512, 0x200) Failed 3/5 subtests I am on a Debian, perl 5.14.2 Linux debiansid 3.0.0-1-amd64 #1 SMP Tue Sep 20 07:03:13 UTC 2011 x86_64 GNU/Linux
As additional info, it occurs when XML::XSLT is installed. If not installed, tests are skipped.
On Wed Mar 13 11:10:15 2013, http://osallou.myopenid.com/ wrote: Show quoted text
> As additional info, > it occurs when XML::XSLT is installed. > If not installed, tests are skipped.
Thanks for the info. These tests also require XML::LibXML to be installed. The test is now changed to skip if it's not present. I'm in the middle of making sure the tests all pass on the CPAN testing machines with dev releases. There should be a new non-dev release uploaded in the next few days.
On Wed Mar 13 12:06:31 2013, BRUMMETT wrote: Show quoted text
> On Wed Mar 13 11:10:15 2013, http://osallou.myopenid.com/ wrote:
> > As additional info, > > it occurs when XML::XSLT is installed. > > If not installed, tests are skipped.
>
I installed both XML:LibXSLT and XML:LibXML but tests keeps failing with error: Failed to resolve a subclass of UR::Object::View for Person from parameters. Received UR::BoolExpr=(UR::Object::View: perspective => "default", subject_class_name => "Person","aspects in" => ["name","age",{ perspective => "default", toolkit => "xml", name => "cats", aspects => ["name","age","fluf","owner"]}], toolkit => "xml"). at t/URT/t/63b_view_with_subviews.t line 54 Show quoted text
> Thanks for the info. These tests also require XML::LibXML to be > installed. The test is now changed to skip if it's not present. > > I'm in the middle of making sure the tests all pass on the CPAN testing > machines with dev releases. There should be a new non-dev release > uploaded in the next few days.
On Wed Mar 13 12:28:19 2013, http://osallou.myopenid.com/ wrote: Show quoted text
> I installed both XML:LibXSLT and XML:LibXML but tests keeps failing > with error: > > [...]
Odd. I had been seeing that failure on the 63* tests for some architectures of the CPAN testing machines. For the 0.41_04 test release, I changed the tests to skip unless both both XML::LibXML and XML::LibXSLT could be loaded, the 63* tests haven't failed. I'll dig in some more; maybe there's another dependancy I've overlooked.
Fixed in UR 0.43 - it passes on all newer versions of perl.