https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-python/pygame-2.0.1-r1 fails tests. Discovered on: sparc (internal ref: sparc_at)
Created attachment 708213 [details] build.log build log and emerge --info
riscv64 (sifive unmatched) has the exact same test failure output. Not sure if the causes are the same.
Same with 2.0.3.
ppc32: AssertionError: Something went wrong in the Test Machinery: total: 1648 != untrusty_total: 1647 * ERROR: dev-python/pygame-2.0.3::gentoo failed (test phase): * (no error message)
I see the same in 2.1.2 on amd64: AssertionError: Something went wrong in the Test Machinery: total: 1644 != untrusty_total: 1643 (This is a mostly-stable machine, and until now had pygame-2.1.0 and -2.0.1-r1 masked because of this test failure.)
By enforcing usesubprocess=True via https://github.com/pygame/pygame/blob/defcff77187240e3c25c94a926f9daf4fedac51f/test/test_utils/test_runner.py#L324 (not sure why --usesubprocess doesn't work), I can get a verbose test output from subprocess. It reveals video_test failed. This test succeeds on machine with opengl support and should probably be skipped if we use dummy driver.
uh, ignore my previous comment. I was not doing it properly. This time, I comment out the AssertionError line ```https://github.com/pygame/pygame/blob/96828d42b82d0fd2b9a89105fde93c3c5e8d4b2e/test/test_utils/run_tests.py#L303``` and run the test with python -m pygame.tests -dv, I am able to obtain a full test dump. It turns out actually test_image failed silently. 'ERROR: test_load_extended '^M '(pygame.tests.image_test.ImageModuleTest) [Test '^M 'loading a tif] '^M "(filename='examples/data/turquoise.tif', "^M 'expected_color=(0, 255, 255, 255))\n'^M 'can load different format images.\n'^M '----------------------------------------------------------------------\n'^M 'Traceback (most recent call last):\n'^M ' File '^M '"/var/tmp/portage/dev-python/pygame-2.1.2/work/pygame-2.1.2-python3_9/test/lib/pygame/tests/image_test.py", '^M 'line 1050, in test_load_extended\n'^M ' surf = '^M 'pygame.image.load_extended(example_path("data/" + '^M 'filename))\n'^M 'pygame.error: Unsupported image format\n'^M '\n'^M
Created attachment 765148 [details] more detailed failure log
(In reply to Alex Fan from comment #7) > uh, ignore my previous comment. I was not doing it properly. > > This time, I comment out the AssertionError line > ```https://github.com/pygame/pygame/blob/ > 96828d42b82d0fd2b9a89105fde93c3c5e8d4b2e/test/test_utils/run_tests. > py#L303``` and run the test with python -m pygame.tests -dv, I am able to > obtain a full test dump. It turns out actually test_image failed silently. > > 'ERROR: test_load_extended '^M > '(pygame.tests.image_test.ImageModuleTest) [Test > '^M > 'loading a tif] '^M > "(filename='examples/data/turquoise.tif', "^M > 'expected_color=(0, 255, 255, 255))\n'^M > 'can load different format images.\n'^M > > '----------------------------------------------------------------------\n'^M > 'Traceback (most recent call last):\n'^M > ' File '^M > > '"/var/tmp/portage/dev-python/pygame-2.1.2/work/pygame-2.1.2-python3_9/test/ > lib/pygame/tests/image_test.py", '^M > 'line 1050, in test_load_extended\n'^M > ' surf = '^M > 'pygame.image.load_extended(example_path("data/" + > '^M > 'filename))\n'^M > 'pygame.error: Unsupported image format\n'^M > '\n'^M Thanks for debugging this! Could you test if rebuilding sdl2-image with USE=tiff fixes this?
Oh, nevermind, I managed to reproduce and I'll confirm it myself shortly. Also, thanks for the hint with "-v".
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbf516071347552f163cadcaf2e12034da367a32 commit dbf516071347552f163cadcaf2e12034da367a32 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2022-02-15 09:12:00 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2022-02-15 09:39:04 +0000 dev-python/pygame: Require tiff support in sdl2-image Closes: https://bugs.gentoo.org/790113 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/pygame/pygame-2.1.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)