t/stockquote.t started to fail (with XML-Compile-SOAP-3.20?) #1

Open
opened 2016-10-29 14:04:23 +00:00 by eserte · 1 comment
eserte commented 2016-10-29 14:04:23 +00:00 (Migrated from github.com)

My smoker systems started to report the following failure in the test suite:

...
Argument "HTTP_OK" isn't numeric in numeric ge (>=) at /usr/perl5.18.4p/lib/site_perl/5.18.4/HTTP/Status.pm line 110.
Argument "HTTP_OK" isn't numeric in numeric ge (>=) at /usr/perl5.18.4p/lib/site_perl/5.18.4/HTTP/Status.pm line 110.
error: cannot find {http://www.w3.org/2000/10/XMLSchema}string as simpleType or complexType

#   Failed test 'compileCalls'
#   at t/stockquote.t line 43.
# died: Log::Report::Exception (error: cannot find {http://www.w3.org/2000/10/XMLSchema}string as simpleType or complexType
# )
# Looks like you failed 1 test of 5.
t/stockquote.t ............... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests 
...

Statistical analysis suggests that this happens only with XML-Compile-SOAP-3.20 (@markov2: FYI):

****************************************************************
Regression 'mod:XML::Compile::SOAP11'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           1.0000          0.0000    42088212402515744.00
[1='eq_3.06']         0.0000          0.0000       0.00
[2='eq_3.07']         0.0000          0.0000       0.00
[3='eq_3.08']         0.0000          0.0000       0.00
[4='eq_3.10']         0.0000          0.0000       0.00
[5='eq_3.12']         0.0000          0.0000       0.00
[6='eq_3.13']         0.0000          0.0000       0.00
[7='eq_3.15']         0.0000          0.0000       0.00
[8='eq_3.16']         0.0000          0.0000       0.00
[9='eq_3.17']         0.0000          0.0000       1.91
[10='eq_3.18']        0.0000          0.0000       0.00
[11='eq_3.19']        0.0000          0.0000       4.05
[12='eq_3.20']       -1.0000          0.0000    -40129535974021112.00

R^2= 1.000, N= 88, K= 13
****************************************************************
My smoker systems started to report the following failure in the test suite: ``` ... Argument "HTTP_OK" isn't numeric in numeric ge (>=) at /usr/perl5.18.4p/lib/site_perl/5.18.4/HTTP/Status.pm line 110. Argument "HTTP_OK" isn't numeric in numeric ge (>=) at /usr/perl5.18.4p/lib/site_perl/5.18.4/HTTP/Status.pm line 110. error: cannot find {http://www.w3.org/2000/10/XMLSchema}string as simpleType or complexType # Failed test 'compileCalls' # at t/stockquote.t line 43. # died: Log::Report::Exception (error: cannot find {http://www.w3.org/2000/10/XMLSchema}string as simpleType or complexType # ) # Looks like you failed 1 test of 5. t/stockquote.t ............... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests ... ``` Statistical analysis suggests that this happens only with XML-Compile-SOAP-3.20 (@markov2: FYI): ``` **************************************************************** Regression 'mod:XML::Compile::SOAP11' **************************************************************** Name Theta StdErr T-stat [0='const'] 1.0000 0.0000 42088212402515744.00 [1='eq_3.06'] 0.0000 0.0000 0.00 [2='eq_3.07'] 0.0000 0.0000 0.00 [3='eq_3.08'] 0.0000 0.0000 0.00 [4='eq_3.10'] 0.0000 0.0000 0.00 [5='eq_3.12'] 0.0000 0.0000 0.00 [6='eq_3.13'] 0.0000 0.0000 0.00 [7='eq_3.15'] 0.0000 0.0000 0.00 [8='eq_3.16'] 0.0000 0.0000 0.00 [9='eq_3.17'] 0.0000 0.0000 1.91 [10='eq_3.18'] 0.0000 0.0000 0.00 [11='eq_3.19'] 0.0000 0.0000 4.05 [12='eq_3.20'] -1.0000 0.0000 -40129535974021112.00 R^2= 1.000, N= 88, K= 13 **************************************************************** ```
markov2 commented 2016-10-31 09:35:47 +00:00 (Migrated from github.com)
  • Slaven Rezić (notifications@github.com) [161029 14:04]:

    My smoker systems started to report the following failure in the test suite:
    ...
    Argument "HTTP_OK" isn't numeric in numeric ge (>=) at /usr/perl5.18.4p/lib/site_perl/5.18.4/HTTP/Status.pm line 110.
    Argument "HTTP_OK" isn't numeric in numeric ge (>=) at /usr/perl5.18.4p/lib/site_perl/5.18.4/HTTP/Status.pm line 110.
    error: cannot find {http://www.w3.org/2000/10/XMLSchema}string as simpleType or complexType

    Failed test 'compileCalls'

    at t/stockquote.t line 43.

    died: Log::Report::Exception (error: cannot find {http://www.w3.org/2000/10/XMLSchema}string as simpleType or complexType

    )

    Looks like you failed 1 test of 5.

    t/stockquote.t ...............
    Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/5 subtests

Yes, my change triggered this. It's a bug in XML::CompileX::Schema::Loader:
The test XSD t/stockquote/stockquote.xsd contains:
http://www.w3.org/2000/10/XMLSchema
which really no-one uses anymore. XML::Compile doesn't know about the
types in that namespace. Change that into
http://www.w3.org/2001/XMLSchema

The other two warnings in t/stockquote.t are caused by
my $response = HTTP::Response->new( HTTP_OK => status_message(HTTP_OK) );
which should be
my $response = HTTP::Response->new( &HTTP_OK => status_message(HTTP_OK) );
or
my $response = HTTP::Response->new(HTTP_OK, status_message(HTTP_OK) );

On the other hand: it does also show me a bug at my side. Module
XML::Compile::XOP tells people to load it to have XOP enabled... but
the hook to handle XOP is instated anyway. That's incorrect. There
was a small change in that code which made the test fails. I have fixed

that for the next release.

greetz,
MarkOv


   Mark Overmeer MSc                                MARKOV Solutions
   Mark@Overmeer.net                          solutions@overmeer.net

http://Mark.Overmeer.net http://solutions.overmeer.net

- Slaven Rezić (notifications@github.com) [161029 14:04]: > My smoker systems started to report the following failure in the test suite: > ... > Argument "HTTP_OK" isn't numeric in numeric ge (>=) at /usr/perl5.18.4p/lib/site_perl/5.18.4/HTTP/Status.pm line 110. > Argument "HTTP_OK" isn't numeric in numeric ge (>=) at /usr/perl5.18.4p/lib/site_perl/5.18.4/HTTP/Status.pm line 110. > error: cannot find {http://www.w3.org/2000/10/XMLSchema}string as simpleType or complexType > > # Failed test 'compileCalls' > # at t/stockquote.t line 43. > # died: Log::Report::Exception (error: cannot find {http://www.w3.org/2000/10/XMLSchema}string as simpleType or complexType > # ) > # Looks like you failed 1 test of 5. > t/stockquote.t ............... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/5 subtests Yes, my change triggered this. It's a bug in XML::CompileX::Schema::Loader: The test XSD t/stockquote/stockquote.xsd contains: http://www.w3.org/2000/10/XMLSchema which really no-one uses anymore. XML::Compile doesn't know about the types in that namespace. Change that into http://www.w3.org/2001/XMLSchema The other two warnings in t/stockquote.t are caused by my $response = HTTP::Response->new( HTTP_OK => status_message(HTTP_OK) ); which should be my $response = HTTP::Response->new( &HTTP_OK => status_message(HTTP_OK) ); or my $response = HTTP::Response->new(HTTP_OK, status_message(HTTP_OK) ); On the other hand: it _does_ also show me a bug at my side. Module XML::Compile::XOP tells people to load it to have XOP enabled... but the hook to handle XOP is instated anyway. That's incorrect. There was a small change in that code which made the test fails. I have fixed ## that for the next release. greetz, MarkOv --- ``` Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net ``` http://Mark.Overmeer.net http://solutions.overmeer.net
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mjg/perl-XML-CompileX-Schema-Loader#1
No description provided.