Skip Menu |

This queue is for tickets about the JsonSQL CPAN distribution.

Report information
The Basics
Id: 123383
Status: new
Priority: 0/
Queue: JsonSQL

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.41
Fixed in: (no value)



Subject: Tests fail (with recent JSON::Validator and/or JSON::Parse?)
My smokers started to report the following failure: ... PERL_DL_NONLAZY=1 "/opt/perl-5.22.3D/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t Odd number of elements in anonymous hash at t/01_validator.t line 13 (#1) (W misc) You specified an odd number of elements to initialize a hash, which is odd, because hashes come in key/value pairs. Uncaught exception from user code: Root schema cannot have a relative 'id'. (sqlSelectSchema) at /home/cpansand/.cpan/build/2017102521/JSON-Validator-1.05-TgO7wT/blib/lib/JSON/Validator.pm line 275. JSON::Validator::_resolve(JSON::Validator=HASH(0x2b04a40), HASH(0x1364c80)) called at /home/cpansand/.cpan/build/2017102521/JSON-Validator-1.05-TgO7wT/blib/lib/JSON/Validator.pm line 77 JSON::Validator::schema(JSON::Validator=HASH(0x2b04a40), HASH(0x1364c80)) called at /home/cpansand/.cpan/build/2017102521/JsonSQL-0.41-ft15Oj/blib/lib/JsonSQL/Validator.pm line 33 JsonSQL::Validator::new("JsonSQL::Validator", "select", ARRAY(0x1364ae8)) called at t/01_validator.t line 14 JSON::Validator::_resolve(JSON::Validator=HASH(0x2b04a40), HASH(0x1364c80)) called at /home/cpansand/.cpan/build/2017102521/JSON-Validator-1.05-TgO7wT/blib/lib/JSON/Validator.pm line 77 JSON::Validator::schema(JSON::Validator=HASH(0x2b04a40), HASH(0x1364c80)) called at /home/cpansand/.cpan/build/2017102521/JsonSQL-0.41-ft15Oj/blib/lib/JsonSQL/Validator.pm line 33 JsonSQL::Validator::new("JsonSQL::Validator", "select", ARRAY(0x1364ae8)) called at t/01_validator.t line 14 # Looks like your test exited with 255 before it could output anything. t/01_validator.t ......... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 19/19 subtests when is experimental at /home/cpansand/.cpan/build/2017102521/JsonSQL-0.41-ft15Oj/blib/lib/JsonSQL/Param/Join.pm line 42 (#1) (S experimental::smartmatch) when depends on smartmatch, which is experimental. Additionally, it has several special cases that may not be immediately obvious, and their behavior may change or even be removed in any future release of perl. See the explanation under "Experimental Details on given and when" in perlsyn. when is experimental at /home/cpansand/.cpan/build/2017102521/JsonSQL-0.41-ft15Oj/blib/lib/JsonSQL/Param/Join.pm line 43 (#1) ... (etc) ... This seems to happen either with recent JSON::Validator, or JSON::Parse. Statistical analysis (negative theta means "bad"): **************************************************************** (5) **************************************************************** Regression 'mod:JSON::Parse' **************************************************************** Name Theta StdErr T-stat [0='const'] 1.0000 0.0000 52980322227660680.00 [1='eq_0.49'] 0.0000 0.0000 11.48 [2='eq_0.55'] -1.0000 0.0000 -46962036321764584.00 R^2= 1.000, N= 75, K= 3 **************************************************************** (6) **************************************************************** Regression 'mod:JSON::Validator' **************************************************************** Name Theta StdErr T-stat [0='const'] 1.0000 0.0000 27798263551773340.00 [1='eq_0.94'] 0.0000 0.0000 3.42 [2='eq_0.98'] 0.0000 0.0000 4.27 [3='eq_1.00'] 0.0000 0.0000 5.97 [4='eq_1.01'] 0.0000 0.0000 7.81 [5='eq_1.02'] 0.0000 0.0000 5.26 [6='eq_1.05'] -1.0000 0.0000 -24640527043053552.00 R^2= 1.000, N= 75, K= 7 ****************************************************************
On 2017-10-25 19:05:16, SREZIC wrote: Show quoted text
> My smokers started to report the following failure: > > ... > PERL_DL_NONLAZY=1 "/opt/perl-5.22.3D/bin/perl" "- > MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef > *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" > t/*.t > Odd number of elements in anonymous hash at t/01_validator.t line 13 > (#1) > (W misc) You specified an odd number of elements to initialize a > hash, > which is odd, because hashes come in key/value pairs. > > Uncaught exception from user code: > Root schema cannot have a relative 'id'. (sqlSelectSchema) at > /home/cpansand/.cpan/build/2017102521/JSON-Validator-1.05- > TgO7wT/blib/lib/JSON/Validator.pm line 275. > JSON::Validator::_resolve(JSON::Validator=HASH(0x2b04a40), > HASH(0x1364c80)) called at /home/cpansand/.cpan/build/2017102521/JSON- > Validator-1.05-TgO7wT/blib/lib/JSON/Validator.pm line 77 > JSON::Validator::schema(JSON::Validator=HASH(0x2b04a40), > HASH(0x1364c80)) called at > /home/cpansand/.cpan/build/2017102521/JsonSQL-0.41- > ft15Oj/blib/lib/JsonSQL/Validator.pm line 33 > JsonSQL::Validator::new("JsonSQL::Validator", > "select", ARRAY(0x1364ae8)) called at t/01_validator.t line 14 > JSON::Validator::_resolve(JSON::Validator=HASH(0x2b04a40), > HASH(0x1364c80)) called at /home/cpansand/.cpan/build/2017102521/JSON- > Validator-1.05-TgO7wT/blib/lib/JSON/Validator.pm line 77 > JSON::Validator::schema(JSON::Validator=HASH(0x2b04a40), > HASH(0x1364c80)) called at > /home/cpansand/.cpan/build/2017102521/JsonSQL-0.41- > ft15Oj/blib/lib/JsonSQL/Validator.pm line 33 > JsonSQL::Validator::new("JsonSQL::Validator", "select", > ARRAY(0x1364ae8)) called at t/01_validator.t line 14 > # Looks like your test exited with 255 before it could output > anything. > t/01_validator.t ......... > Dubious, test returned 255 (wstat 65280, 0xff00) > Failed 19/19 subtests > when is experimental at > /home/cpansand/.cpan/build/2017102521/JsonSQL-0.41- > ft15Oj/blib/lib/JsonSQL/Param/Join.pm line 42 (#1) > (S experimental::smartmatch) when depends on smartmatch, which is > experimental. Additionally, it has several special cases that may > not be immediately obvious, and their behavior may change or > even be removed in any future release of perl. See the > explanation > under "Experimental Details on given and when" in perlsyn. > > when is experimental at > /home/cpansand/.cpan/build/2017102521/JsonSQL-0.41- > ft15Oj/blib/lib/JsonSQL/Param/Join.pm line 43 (#1) > ... (etc) ... > > > This seems to happen either with recent JSON::Validator, or > JSON::Parse. Statistical analysis (negative theta means "bad"): > > **************************************************************** > (5) > **************************************************************** > Regression 'mod:JSON::Parse' > **************************************************************** > Name Theta StdErr T-stat > [0='const'] 1.0000 0.0000 52980322227660680.00 > [1='eq_0.49'] 0.0000 0.0000 11.48 > [2='eq_0.55'] -1.0000 0.0000 -46962036321764584.00 > > R^2= 1.000, N= 75, K= 3 > **************************************************************** > (6) > **************************************************************** > Regression 'mod:JSON::Validator' > **************************************************************** > Name Theta StdErr T-stat > [0='const'] 1.0000 0.0000 27798263551773340.00 > [1='eq_0.94'] 0.0000 0.0000 3.42 > [2='eq_0.98'] 0.0000 0.0000 4.27 > [3='eq_1.00'] 0.0000 0.0000 5.97 > [4='eq_1.01'] 0.0000 0.0000 7.81 > [5='eq_1.02'] 0.0000 0.0000 5.26 > [6='eq_1.05'] -1.0000 0.0000 -24640527043053552.00 > > R^2= 1.000, N= 75, K= 7 > ****************************************************************
It's probably JSON::Validator 1.05. Updated statistical analysis (in this one JSON::Parse looks unlikely): **************************************************************** Regression 'mod:JSON::Validator' **************************************************************** Name Theta StdErr T-stat [0='const'] 1.0000 0.0000 23064565316953780.00 [1='eq_0.94'] 0.0000 0.0000 5.26 [2='eq_0.98'] 0.0000 0.0000 6.07 [3='eq_1.00'] 0.0000 0.0000 7.43 [4='eq_1.01'] 0.0000 0.0000 9.72 [5='eq_1.02'] 0.0000 0.0000 4.44 [6='eq_1.05'] -1.0000 0.0000 -21054971171911460.00 R^2= 1.000, N= 80, K= 7 **************************************************************** ... **************************************************************** Regression 'mod:JSON::Parse' **************************************************************** Name Theta StdErr T-stat [0='const'] 1.0000 0.1120 8.93 [1='eq_0.49'] -0.0462 0.1146 -0.40 [2='eq_0.52'] -1.0000 0.1372 -7.29 [3='eq_0.55'] -1.0000 0.1372 -7.29 R^2= 0.765, N= 80, K= 4 ****************************************************************