Bug 1534885 - perl-Dancer2-Plugin-DBIC-0.0100-1.fc28 FTBFS: Can't call method "resultset" on an undefined value at /usr/share/perl5/vendor_perl/DBIx/Class/Schema.pm line 547.
Summary: perl-Dancer2-Plugin-DBIC-0.0100-1.fc28 FTBFS: Can't call method "resultset" o...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Dancer2-Plugin-DBIC
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-16 08:25 UTC by Petr Pisar
Modified: 2018-02-05 12:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-05 12:14:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 123681 0 None None None 2018-01-16 08:42:59 UTC
Github ironcamel Dancer2-Plugin-DBIC issues 24 0 None None None 2018-01-16 08:46:41 UTC

Description Petr Pisar 2018-01-16 08:25:22 UTC
perl-Dancer2-Plugin-DBIC-0.0100-1.fc28 fails to build in F28 because tests fail:



t/02-multiple-schemas.t .. ok
Can't call method "resultset" on an undefined value at /usr/share/perl5/vendor_perl/DBIx/Class/Schema.pm line 547.
# Looks like your test exited with 255 just after 1.
t/03-dynamic-schemas.t ... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/3 subtests 
[t::lib::TestApp:63796] error @2018-01-15 22:24:16> Route exception: DBIx::Class::ResultSource::schema(): Unable to perform storage-dependent operations with a detached result source (source 'User' is not associated with a schema). at t/lib/TestApp.pm line 8 in /usr/share/perl5/vendor_perl/Dancer2/Core/App.pm l. 1473
[t::lib::TestApp:63796] error @2018-01-15 22:24:16> Route exception: DBIx::Class::ResultSource::schema(): Unable to perform storage-dependent operations with a detached result source (source 'User' is not associated with a schema). at t/lib/TestApp.pm line 12 in /usr/share/perl5/vendor_perl/Dancer2/Core/App.pm l. 1473
    #   Failed test 'GET /user/1 is found'
    #   at t/04-testapp.t line 65.
    #          got: '500 Internal Server Error'
    #     expected: '200 OK'
    #   Failed test 'content looks good for /user/1'
    #   at t/04-testapp.t line 71.
    #                   '<!DOCTYPE html>
    # <html lang="en">
    # <head>
    #   <meta charset="UTF-8">
    #   <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
    #   <title>Error 500 - Internal Server Error</title>
    #   <link rel="stylesheet" href="http://localhost/css/error.css">
    # </head>
    # <body>
    # <h1>Error 500 - Internal Server Error</h1>
    # <div id="content">
    # Wooops, something went wrong
    # </div>
    # <div id="footer">
    # Powered by <a href="http://perldancer.org/">Dancer2</a> 0.205002
    # </div>
    # </body>
    # </html>
    # '
    #     doesn't match '(?^:sukria)'
    # Looks like you failed 2 tests of 2.
#   Failed test 'user1'
#   at t/04-testapp.t line 76.
[t::lib::TestApp:63796] error @2018-01-15 22:24:16> Route exception: DBIx::Class::ResultSource::schema(): Unable to perform storage-dependent operations with a detached result source (source 'User' is not associated with a schema). at t/lib/TestApp.pm line 12 in /usr/share/perl5/vendor_perl/Dancer2/Core/App.pm l. 1473
    #   Failed test 'GET /user/2 is found'
    #   at t/04-testapp.t line 81.
    #          got: '500 Internal Server Error'
    #     expected: '200 OK'
    #   Failed test 'content looks good for /user/2'
    #   at t/04-testapp.t line 87.
    #                   '<!DOCTYPE html>
    # <html lang="en">
    # <head>
    #   <meta charset="UTF-8">
    #   <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
    #   <title>Error 500 - Internal Server Error</title>
    #   <link rel="stylesheet" href="http://localhost/css/error.css">
    # </head>
    # <body>
    # <h1>Error 500 - Internal Server Error</h1>
    # <div id="content">
    # Wooops, something went wrong
    # </div>
    # <div id="footer">
    # Powered by <a href="http://perldancer.org/">Dancer2</a> 0.205002
    # </div>
    # </body>
    # </html>
    # '
    #     doesn't match '(?^:bigpresh)'
    # Looks like you failed 2 tests of 2.
#   Failed test 'user2'
#   at t/04-testapp.t line 92.
[t::lib::TestApp:63796] error @2018-01-15 22:24:16> Route exception: DBIx::Class::ResultSource::schema(): Unable to perform storage-dependent operations with a detached result source (source 'User' is not associated with a schema). at t/lib/TestApp.pm line 17 in /usr/share/perl5/vendor_perl/Dancer2/Core/App.pm l. 1473
    #   Failed test 'DELETE /user/2 is ok'
    #   at t/04-testapp.t line 97.
    #          got: '500 Internal Server Error'
    #     expected: '200 OK'
    # Looks like you failed 1 test of 1.
#   Failed test 'delete'
#   at t/04-testapp.t line 102.
[t::lib::TestApp:63796] error @2018-01-15 22:24:16> Route exception: DBIx::Class::ResultSource::schema(): Unable to perform storage-dependent operations with a detached result source (source 'User' is not associated with a schema). at t/lib/TestApp.pm line 8 in /usr/share/perl5/vendor_perl/Dancer2/Core/App.pm l. 1473
# Looks like you failed 3 tests of 6.
t/04-testapp.t ........... 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/6 subtests 

A difference between passing and failing build root is <https://apps.fedoraproject.org/koschei/build/3781431>.

Comment 1 Petr Pisar 2018-01-16 08:35:00 UTC
This is caused by upgrading perl-Hash-Merge from 0.200 to 0.299.

Comment 2 Emmanuel Seyman 2018-01-16 08:42:59 UTC
Yes, this has the same cause as bug #1517785

Comment 3 Emmanuel Seyman 2018-02-04 10:24:42 UTC
Now that we have DBIx-Class-Schema-Loader 0.07048, tests pass.


Note You need to log in before you can comment on or make changes to this bug.