Bug 2068124 - TestSuite.test_psnr fails on s390x
Summary: TestSuite.test_psnr fails on s390x
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-glymur
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-24 14:09 UTC by Ben Beasley
Modified: 2022-11-10 22:28 UTC (History)
2 users (show)

Fixed In Version: python-glymur-0.12.0-1.fc38 python-glymur-0.12.0-1.fc36 python-glymur-0.12.0-1.fc35 python-glymur-0.12.0-1.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-10-30 15:19:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github quintusdias glymur issues 546 0 None open TestSuite.test_psnr fails on s390x 2022-03-24 14:09:39 UTC

Description Ben Beasley 2022-03-24 14:09:40 UTC
Description of problem:

TestSuite.test_psnr fails on s390x

Version-Release number of selected component (if applicable): 0.9.9-1


How reproducible:


Steps to Reproduce:
1. Uncomment in the spec file:

> k="${k-}${k+ and }not (TestSuite and test_psnr)"

2. fedpkg scratch-build --srpm --arches s390x

Actual results:

=================================== FAILURES ===================================
_____________________________ TestSuite.test_psnr ______________________________
self = <tests.test_tiff2jp2.TestSuite testMethod=test_psnr>
    def test_psnr(self):
        """
        SCENARIO:  Convert TIFF file to JP2 with the irreversible transform.
    
        EXPECTED RESULT:  data matches, the irreversible transform is confirmed
        """
        with Tiff2Jp2k(
            self.minisblack_spp1_path, self.temp_jp2_filename,
            psnr=(30, 35, 40, 0)
        ) as j:
            j.run()
    
        j = Jp2k(self.temp_jp2_filename)
    
        d = {}
        for layer in range(4):
            j.layer = layer
            d[layer] = j[:]
    
        with warnings.catch_warnings():
            # MSE is zero for that first image, resulting in a divide-by-zero
            # warning
            warnings.simplefilter('ignore')
            psnr = [
                fixtures.skimage.metrics.peak_signal_noise_ratio(
                    fixtures.skimage.data.moon(), d[j]
                )
                for j in range(4)
            ]
    
        # That first image should be lossless.
>       self.assertTrue(np.isinf(psnr[0]))
E       AssertionError: False is not true
tests/test_tiff2jp2.py:584: AssertionError
=========================== short test summary info ============================
FAILED tests/test_tiff2jp2.py::TestSuite::test_psnr - AssertionError: False i...
================== 1 failed, 528 passed, 4 skipped in 49.92s ===================


Expected results:

All tests pass

Additional info:

Reported upstream: https://github.com/quintusdias/glymur/issues/546

Comment 1 Ben Beasley 2022-03-24 14:13:05 UTC
I’ll track the upstream bug. If I have a chance, I might try to investigate more closely. Any help on that front is welcome.

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

Comment 3 Fedora Update System 2022-10-30 15:16:36 UTC
FEDORA-2022-7c63e3fbe5 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-7c63e3fbe5

Comment 4 Fedora Update System 2022-10-30 15:19:00 UTC
FEDORA-2022-7c63e3fbe5 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2022-10-30 15:23:15 UTC
FEDORA-2022-5932f1b2f6 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5932f1b2f6

Comment 6 Fedora Update System 2022-10-30 19:22:39 UTC
FEDORA-2022-5932f1b2f6 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-5932f1b2f6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-5932f1b2f6

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

Comment 7 Fedora Update System 2022-10-31 13:03:03 UTC
FEDORA-2022-d98765e25b has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-d98765e25b

Comment 8 Fedora Update System 2022-10-31 14:09:31 UTC
FEDORA-2022-2637137fc3 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-2637137fc3

Comment 9 Fedora Update System 2022-11-01 16:05:19 UTC
FEDORA-2022-d98765e25b has been pushed to the Fedora 36 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-d98765e25b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-d98765e25b

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

Comment 10 Fedora Update System 2022-11-01 17:21:47 UTC
FEDORA-2022-2637137fc3 has been pushed to the Fedora 35 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-2637137fc3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-2637137fc3

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

Comment 11 Fedora Update System 2022-11-09 11:20:17 UTC
FEDORA-2022-d98765e25b has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2022-11-09 11:26:40 UTC
FEDORA-2022-2637137fc3 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2022-11-10 22:28:30 UTC
FEDORA-2022-5932f1b2f6 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


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