Bug 2450636

Summary: perl-Dancer2-Plugin-REST-1.02-27.fc45 FTBFS: Failed test '$data has been encoded' at t/02_prepare_serializer_for_format.t line 82
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Dancer2-Plugin-RESTAssignee: Emmanuel Seyman <emmanuel>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 45CC: emmanuel, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org//package/perl-Dancer2-Plugin-REST
Whiteboard:
Fixed In Version: perl-Dancer2-Plugin-REST-1.03-1.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-04-05 07:07:32 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: 2433833    

Description Petr Pisar 2026-03-24 07:53:57 UTC
perl-Dancer2-Plugin-REST-1.02-27.fc45 fails to build in Fedora 45 because a test fails:

    #   Failed test '$data has been encoded'
    #   at t/02_prepare_serializer_for_format.t line 82.
    #          got: '{"foo":"42"}'
    #     expected: '{"foo":42}'
    # Looks like you failed 1 test of 2.
#   Failed test '(?^:application/json)'
#   at t/02_prepare_serializer_for_format.t line 70.
# Looks like you failed 1 test of 6.
t/02_prepare_serializer_for_format.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/6 subtests 

A difference beteen passing and failing build root is at <https://koschei.fedoraproject.org/build/22696632>. An upgrade of perl-JSON from 4.10-9.fc44 to 4.11-1.fc45 is suspicious.

Comment 1 Emmanuel Seyman 2026-04-05 07:07:32 UTC
Fixed in Dancer2-Plugin-REST-1.03