develooper Front page | perl.perl5.porters | Postings from August 2017

[perl #131571] Bleadperl v5.27.0-138-g64278e8ca7 breaksSONGMU/L-0.01.tar.gz

Thread Next
From:
James E Keenan via RT
Date:
August 1, 2017 23:15
Subject:
[perl #131571] Bleadperl v5.27.0-138-g64278e8ca7 breaksSONGMU/L-0.01.tar.gz
Message ID:
rt-4.0.24-29635-1501629303-1722.131571-15-0@perl.org
On Tue, 25 Jul 2017 21:28:14 GMT, jkeenan wrote:
> On Tue, 25 Jul 2017 19:43:28 GMT,
> andreas.koenig.7os6VVqR@franz.ak.mind.de wrote:
> > also affected: BRUMMETT/UR-0.46.tar.gz
> >
> > Thanks to Slaven, the scout!
> >
> 
> 1. General question to P5P:  Is there some standard operating
> procedure we could recommend to module authors as to how to avoid this
> problem?
> 
> 2. There are 4 tests in 3 test files failing in reports such as
> http://www.cpantesters.org/cpan/report/66c62eee-6b5c-11e7-a7ec-
> 5ffb9018cd8c.  Only the failures in the first 2 files can be
> attributed to this AUTOLOAD-related fatalization.
> 
> I tried to install UR via 'cpanm' against 5.27.2.  It has a ton of
> dependencies.  Eventually I was able to get to the failures, but to
> get to the cause of the failures, at or about t/URT/t/41_rpc_basic.t
> line 103, I had to change 'ok' to 'like' to get the exception to show
> up.
> 
> $ ~/testing/blead/bin/prove -I~/testing/blead/lib -v
> t/URT/t/41_rpc_basic.t
> 
> 
> ok 26 - Response return value is correctly empty
> not ok 27 - Response excpetion correctly reflects calling an undefined
> function
> 
> #   Failed test 'Response excpetion correctly reflects calling an
> undefined function'
> #   at t/URT/t/41_rpc_basic.t line 105.
> #                   'Use of inherited AUTOLOAD for non-method
> URT::RPC::Thingy::some_undefined_function() is no longer allowed at
> /home/jkeenan/.cpanm/work/1501015361.9173/UR-
> 0.46/lib/UR/Service/RPC/Executer.pm line 87.
> # '
> #     doesn't match '(?^:(Can't locate object method|Undefined
> sub).*some_undefined_function)'
> 
> I had to do a similar ok->like manipulation for the next failure as
> well:
> 
> $ ~/testing/blead/bin/prove -I~/testing/blead/lib -v
> t/URT/t/42_rpc_between_processes.t
> 
> ok - Response return value is correctly empty
> not ok - Response excpetion correctly reflects calling an undefined
> function
> 
> #   Failed test 'Response excpetion correctly reflects calling an
> undefined function'
> #   at t/URT/t/42_rpc_between_processes.t line 128.
> #                   'Use of inherited AUTOLOAD for non-method
> URT::RPC::Thingy::some_undefined_function() is no longer allowed at
> /home/jkeenan/.cpanm/work/1501015361.9173/UR-
> 0.46/lib/UR/Service/RPC/Executer.pm line 87.
> # '
> #     doesn't match '(?^:(Can't locate object method|Undefined
> sub).*some_undefined_function)'
> ok - Created RPC message for match in scalar context
> 

For the two test failures above I have filed:
https://github.com/genome/UR/issues/136

> 
> $ ~/testing/blead/bin/prove -I/home/jkeenan/testing/blead/lib -vb
> t/URT/t/63c_view_with_subviews.t
> 
> ok 10 - path exists to expected content for toolkit json
> not ok 11 - content matches!
> 
> #   Failed test 'content matches!'
> #   at t/URT/t/63c_view_with_subviews.t line 151.
> #          got: '{
> #    "age" : "99 yrs",
> #    "cats" : [
> #       {
> #          "age" : "2 yrs",
> #          "fluf" : 11,
> #          "name" : "fluffy",
> #          "owner" : {
> #             "id" : 111
> #          }
> #       },
> #       {
> #          "age" : "8 yrs",
> #          "fluf" : "22 yrs",
> #          "name" : "nestor",
> #          "owner" : {
> #             "id" : 111
> #          }
> #       }
> #    ],
> #    "name" : "Fester"
> # }
> # '
> #     expected: '{
> #    "age" : "99 yrs",
> #    "cats" : [
> #       {
> #          "age" : "2 yrs",
> #          "fluf" : "11",
> #          "name" : "fluffy",
> #          "owner" : {
> #             "id" : "111"
> #          }
> #       },
> #       {
> #          "age" : "8 yrs",
> #          "fluf" : "22 yrs",
> #          "name" : "nestor",
> #          "owner" : {
> #             "id" : "111"
> #          }
> #       }
> #    ],
> #    "name" : "Fester"
> # }
> # '
>  #
> # VIEW: Acme::Person as text...
>   #
> # Creating view with toolkit text
> ...
> ok 18 - path exists to expected content for toolkit json
> not ok 19 - content matches!
> 
> #   Failed test 'content matches!'
> #   at t/URT/t/63c_view_with_subviews.t line 151.
> #          got: '{
> #    "id" : "Acme::Cat/And/owner_id/O:\u001dO:111\u001e",
> #    "members" : [
> #       {
> #          "id" : 222
> #       },
> #       {
> #          "id" : 333
> #       }
> #    ]
> # }
> # '
> #     expected: '{
> #    "id" : "Acme::Cat/And/owner_id/O:\u001dO:111\u001e",
> #    "members" : [
> #       {
> #          "id" : "222"
> #       },
> #       {
> #          "id" : "333"
> #       }
> #    ]
> # }
> # '
>  #
> # VIEW: Acme::Cat::Set as text...
> 
> In third file, diff shows that certain numbers in JSON output are no
> longer being quoted.  That's probably not related to the AUTOLOAD
> problem.


-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=131571

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About