Bug 1753610

Summary: gscan2pdf-2.5.6-1.fc32 FTBFS: tests fail with ImageMagick 1:6.9.10.67-1.fc32
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: gscan2pdfAssignee: Petr Pisar <ppisar>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: ppisar, rakesh.pandit, sven
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ImageMagick-6.9.10.75-1.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-27 15:31:30 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: 1753607, 1776857    
Bug Blocks: 1761107    

Description Petr Pisar 2019-09-19 12:13:55 UTC
gscan2pdf-2.5.6-1.fc32 fails to build in F32 because some tests fail:

t/244_threshold_corrupt_image.t ............... ok
#   Failed test 'Found dark page'
#   at t/251_negate.t line 37.
#          got: '1'
#     expected: '0'
# Looks like you failed 1 test of 3.
t/251_negate.t ................................ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 
[...]
Test Summary Report
-------------------
t/251_negate.t                              (Wstat: 256 Tests: 3 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/371_user_defined.t                        (Wstat: 256 Tests: 5 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/3722_user_defined.t                       (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/372_user_defined2.t                       (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=228, Tests=1050, 327 wallclock secs ( 0.62 usr  0.20 sys + 182.91 cusr 10.53 csys = 194.26 CPU)

A difference between passing and failing build root is at <https://apps.fedoraproject.org/koschei/build/6958666>. This is triggered by upgrading ImageMagick from 1:6.9.10.28-4.fc31 to 1:6.9.10.64-1.fc32.

This seems to be a regression in ImageMagick when creating a white PNM image (bug #1753607).

Comment 1 Petr Pisar 2019-11-26 13:55:20 UTC
ImageMagick-1.9.10.67-1 fixed this issue and introduced another one (bug #1776857). Tests fail like this:

$ xvfb-run -d perl -Ilib t/232_analyse_dark.t
1..2
not ok 1 - Found dark page
#   Failed test 'Found dark page'
#   at t/232_analyse_dark.t line 34.
#          got: '1'
#     expected: '0'
ok 2 - using session directory
# Looks like you failed 1 test of 2.

Comment 2 Petr Pisar 2019-11-27 15:31:30 UTC

*** This bug has been marked as a duplicate of bug 1776857 ***