Bug 1110272

Summary: perl-DBIx-Class-0.08250-5.fc21 FTBFS: 'Cascading delete on Ordered has_many works' t/60core.t test fails
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-DBIx-ClassAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: iarnell, mmaslano, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://koji.fedoraproject.org/koji/taskinfo?taskID=7050504
Whiteboard:
Fixed In Version: perl-DBIx-Class-0.08250-6.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-18 07:39:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2014-06-17 10:48:04 UTC
perl-DBIx-Class-0.08250-5.fc21 fails to build due to tests:

#   Failed test 'Cascading delete on Ordered has_many works'
#   at t/60core.t line 362.
# died: DBIx::Class::Exception (DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::SQLite::st execute failed: UNIQUE constraint failed: track.cd, track.position [for Statement "UPDATE track SET position = ? WHERE ( trackid = ? )"] at t/60core.t line 362
# )
#   Failed test 'Cascading through has_many top level.'
#   at t/60core.t line 363.
#          got: '3'
#     expected: '0'
#   Failed test 'Cascading through has_many children.'
#   at t/60core.t line 364.
#          got: '3'
#     expected: '0'
# Looks like you failed 3 tests of 123.
t/60core.t .......................................... 
Dubious, test returned 3 (wstat 768, 0x300)
Failed

This is caused by upgrading sqlite from 3.8.4.3 to 3.8.5.

Comment 1 Petr Pisar 2014-06-18 07:20:02 UTC
Upstream fixed it by:

commit 37b9b05b2fd693c01ef01a29765fba97077393d2
Author: Peter Rabbitson <ribasushi>
Date:   Mon Jun 16 16:15:44 2014 +0200

    Fix ::Ordered in combination with delete_all
    
    See pod-changes for description of the solution. I cringe but... oh well