Bug 2115214

Summary: perl-Database-DumpTruck-1.2-24.fc37 FTBFS: Failed test 'Proper data was retrieved from the database' with JSON::PP 4.11
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Database-DumpTruckAssignee: Michal Josef Spacek <mspacek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: jtfas90, lkundrak, mspacek, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-Database-DumpTruck-1.2-25.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-14 00:19:41 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:
Bug Depends On:    
Bug Blocks: 2117176, 2045102    

Description Petr Pisar 2022-08-04 07:16:34 UTC
perl-Database-DumpTruck-1.2-24.fc37 fails to build in Fedora 37 because a test fails:

+ cd Database-DumpTruck-1.2
+ ./Build test

#   Failed test 'Proper data was retrieved from the database'
#   at t/dumptruck.t line 189.
#     Structures begin differing at:
#          $got->[0]{random}{yes} = 1
#     $expected->[0]{random}{yes} = '1'
# Looks like you failed 1 test of 43.
t/dumptruck.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/43 subtests
t/pod.t ........ ok

This is triggered by upgrading perl-JSON-PP from 1:4.10-2.fc37 to 1:4.11-1.fc37. It's caused by this intentional change <https://github.com/makamaka/JSON-PP/pull/73>.

Comment 1 Ben Cotton 2022-08-09 13:35:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 2 Michal Josef Spacek 2022-09-06 08:38:10 UTC
One possible fix is `use Test::Deep::JSON`.

Comment 3 Fedora Update System 2022-09-06 11:44:47 UTC
FEDORA-2022-cddb896610 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-cddb896610

Comment 4 Fedora Update System 2022-09-06 20:30:10 UTC
FEDORA-2022-cddb896610 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-cddb896610`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-cddb896610

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-09-14 00:19:41 UTC
FEDORA-2022-cddb896610 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.