-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_cmyk fails on PPC64 (and PPC32, SPARC) #5297
Comments
This test passes on GitHub Actions using QEMU: https://github.com/python-pillow/Pillow/runs/2007403137#step:6:730 That is using ghostscript from the ubuntu repository: https://github.com/python-pillow/docker-images/pull/98/files#diff-9dcb549928488061acac880283c65bb9900666c70a21297152f26d62ae3d2719R5 Edit: But that is using ppc64le, I missed that this issue seems to be about ppc64be. |
That looks like ppc64le -- this is ppc64be (forgot to say, sorry). The commonality with ppc/ppc64be/sparc seems like it's an endianness issue. But s390x is big-endian and I have access to that, so I'll try there. Maybe the issue is to do with our (Gentoo)'s ghostscript. |
Looking at the linked Gentoo issue with 10 failures, note that it looks like most of those were just turned into xfails, i.e. known failures. See e.g. the first one: Pillow/Tests/test_file_libtiff.py Lines 851 to 852 in 058b8d3
|
My recollection is that ghostscript tests have been flakey on bigendian dating back to ubuntu 12.04 on PPC. |
Still happens in 8.3.0. There also the |
Since this still happens on 8.3.2 for at least PPC and Sparc, what about skipping those tests on big endian as known fails? Would reduce the noise during testing for us. |
Sounds reasonable, would you like to create a PR? We already have some similar xfail markers: @pytest.mark.xfail(is_big_endian(), reason="Fails on big-endian")
...
@pytest.mark.xfail(is_ppc64le(), reason="failing on ppc64le on GHA") |
@thesamesam given #3243 (comment), is this resolved now? |
Closing, as #3243 (comment) is from the same user that reported this issue originally in https://bugs.gentoo.org/763309 |
Confirmed that 9.0.0 passes on SPARC, PPC, and PPC64. Thanks so much! (I've had the tab open for about a week and started testing again earlier when you touched one of the other bugs as I remembered!) |
Thanks! |
What did you do?
Ran the test suite for Pillow on PPC64 (and PPC32, SPARC) with Ghostscript installed.
What did you expect to happen?
All tests pass.
What actually happened?
(Note that in the past, we had up to 10 failures on PPC64 with 7.0.0, so this is a real improvement).
One test (test_cmyk) failed on PPC64 (and PPC32, SPARC).
This was reported downstream in Gentoo previously for 8.1.0 but I just reproduced it with 8.1.1.
The full build log is here. I've reproduced the error within tox on PPC64 too.
What are your OS, Python and Pillow versions?
[ebuild R ] app-text/ghostscript-gpl-9.53.3-r5:0/9.53::gentoo USE="X cups dbus gtk jpeg2k (unicode) -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW" 0 KiB
The text was updated successfully, but these errors were encountered: