Subject: | Test suite may fail (with older Mojo::Pg?) |
t/08-base-sql.t fails on some of my smokers:
...
# Failed test 'right query'
# at t/08-base-sql.t line 19.
# Structures begin differing at:
# $got->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? )'
# $expected->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? ) ON CONFLICT do nothing'
# Failed test 'right query'
# at t/08-base-sql.t line 23.
# Structures begin differing at:
# $got->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? )'
# $expected->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? ) ON CONFLICT DO NOTHING'
# Failed test 'right query'
# at t/08-base-sql.t line 35.
# Structures begin differing at:
# $got->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? ) RETURNING *'
# $expected->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? ) ON CONFLICT do nothing RETURNING *'
# Failed test 'right query'
# at t/08-base-sql.t line 46.
# Structures begin differing at:
# $got->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? )'
# $expected->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? ) ON CONFLICT (foo) do update set foo = ?'
# Failed test 'right query'
# at t/08-base-sql.t line 57.
# Structures begin differing at:
# $got->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? )'
# $expected->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? ) ON CONFLICT ("foo") DO UPDATE SET "foo" = ?'
# Failed test 'right query'
# at t/08-base-sql.t line 68.
# Structures begin differing at:
# $got->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? )'
# $expected->[0] = 'INSERT INTO "foo" ( "bar") VALUES ( ? ) ON CONFLICT ("foo", "bar") DO UPDATE SET "foo" = ?'
# Failed test 'right error'
# at t/08-base-sql.t line 72.
# ''
# doesn't match '(?^:on_conflict value must be in the form \[\$target, \\\%set\])'
# Failed test 'right error'
# at t/08-base-sql.t line 75.
# ''
# doesn't match '(?^:HASHREF)'
[SQL::Abstract::__ANON__] Fatal: hash passed to _order_by must have exactly one key (-desc or -asc) at t/08-base-sql.t line 82.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 12.
t/08-base-sql.t .........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 8/12 subtests
...
This seems to happen with older Mojo::Pg (< 4.13). Statistical analysis (theta = 0 means "bad"):
****************************************************************
Regression 'mod:Mojo::Pg'
****************************************************************
Name Theta StdErr T-stat
[0='const'] 0.0000 0.0000 0.00
[1='eq_4.06'] 0.0000 0.0000 0.00
[2='eq_4.08'] 0.0000 0.0000 0.00
[3='eq_4.11'] 0.0000 0.0000 0.00
[4='eq_4.12'] 0.0000 0.0000 0.00
[5='eq_4.13'] 1.0000 0.0000 11969365730746234.00
R^2= 1.000, N= 40, K= 6
****************************************************************