jhthorsen / mojolicious-plugin-openapi

OpenAPI / Swagger plugin for Mojolicious
54 stars 44 forks source link

t/yaml.t may fail #59

Closed eserte closed 6 years ago

eserte commented 6 years ago

On some of my smoker machines t/yaml.t fails:

# YAML::XS 0.66

#   Failed test 'Could not load Swagger2 plugin using YAML::XS'
#   at t/yaml.t line 20.
# Can't call method "can" on an undefined value at /home/cpansand/.cpan/build/2018011915/JSON-Validator-2.00-0/blib/lib/JSON/Validator.pm line 256.
# YAML::Syck 1.30

#   Failed test 'Could not load Swagger2 plugin using YAML::Syck'
#   at t/yaml.t line 20.
# Can't call method "can" on an undefined value at /home/cpansand/.cpan/build/2018011915/JSON-Validator-2.00-0/blib/lib/JSON/Validator.pm line 256.
# Looks like you failed 2 tests of 2.
t/yaml.t .............................. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests 

Statistical analysis suggests that the failures happen if YAML::XS < 0.67 is installed:

$ local-ctgetreports.pl --q 'qr:# YAML::XS (\S+)' Mojolicious-Plugin-OpenAPI-1.24
...
****************************************************************
Regression 'qr:# YAML::XS (\S+)'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']          -0.0000          0.0000     -23.80
[1='eq_0.59']         0.0000          0.0000       7.55
[2='eq_0.62']         0.0000          0.0000       1.64
[3='eq_0.63']        -0.0000          0.0000      -1.83
[4='eq_0.65']        -0.0000          0.0000      -4.78
[5='eq_0.66']         0.0000          0.0000       8.43
[6='eq_0.67']         1.0000          0.0000    17220411790955142.00
[7='eq_0.68']         1.0000          0.0000    21047169966722948.00
[8='eq_0.69']         1.0000          0.0000    29022272672653860.00

R^2= 1.000, N= 124, K= 9
****************************************************************
jhthorsen commented 6 years ago

I think this is fixed by #60..?