Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 766860 - dev-lang/python-3.9.1-r1 - test test_subprocess failed
Summary: dev-lang/python-3.9.1-r1 - test test_subprocess failed
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2021-01-24 11:58 UTC by ernsteiswuerfel
Modified: 2021-03-22 15:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (python-3.9.1-r1:20210124-114107.log,322.19 KB, text/plain)
2021-01-24 11:58 UTC, ernsteiswuerfel
Details
emerge --info (file_766860.txt,6.05 KB, text/plain)
2021-01-24 11:58 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-01-24 11:58:00 UTC
Created attachment 684399 [details]
build.log

Same on 3.9.0-r1.

[...]
======================================================================
FAIL: test_extra_groups (test.test_subprocess.POSIXProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-3.9.1-r1/work/Python-3.9.1/Lib/test/test_subprocess.py", line 1922, in test_extra_groups
    self.assertEqual(set(desired_gids), set(child_groups))
AssertionError: Items in the first set but not the second:
65533
65534
Items in the second set but not the first:
2723208816

----------------------------------------------------------------------

Ran 314 tests in 184.151s

FAILED (failures=1, skipped=34)
test test_subprocess failed
1 test failed again:
    test_subprocess

== Tests result: FAILURE then FAILURE ==

402 tests OK.

1 test failed:
    test_subprocess

21 tests skipped:
    test_curses test_devpoll test_ioctl test_kqueue test_msilib
    test_nis test_ossaudiodev test_smtpnet test_socketserver
    test_startfile test_timeout test_tix test_tk test_ttk_guionly
    test_urllib2net test_urllibnet test_winconsoleio test_winreg
    test_winsound test_xmlrpc_net test_zipfile64

1 re-run test:
    test_subprocess

Total duration: 7 min 15 sec
Tests result: FAILURE then FAILURE
make: *** [Makefile:1198: test] Error 2
Comment 1 ernsteiswuerfel archtester 2021-01-24 11:58:29 UTC
Created attachment 684402 [details]
emerge --info
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-01-24 18:54:32 UTC
This looks to be specific to ppc64, and I don't think I can help there much.  I don't see an upstream bug about this.  Could you start by getting a git checkout of CPython (https://github.com/python/cpython/) and trying to run tests there?

Roughly:

./configure -C
make -j$(nproc)
make test

If you could try 3.9 branch and master that would be helpful too.
Comment 3 ernsteiswuerfel archtester 2021-01-28 13:06:46 UTC
Upstream cython v3.9.1 fails with:

[...]
======================================================================
FAIL: test_extra_groups (test.test_subprocess.POSIXProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/build/cpython/Lib/test/test_subprocess.py", line 1922, in test_extra_groups
    self.assertEqual(set(desired_gids), set(child_groups))
AssertionError: Items in the first set but not the second:
65533
65534
Items in the second set but not the first:
3101468880

----------------------------------------------------------------------

Ran 314 tests in 53.932s

FAILED (failures=1, skipped=32)
test test_subprocess failed
2 tests failed again:
    test_nntplib test_subprocess

== Tests result: FAILURE then FAILURE ==

410 tests OK.

2 tests failed:
    test_nntplib test_subprocess

13 tests skipped:
    test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev
    test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
    test_winreg test_winsound test_zipfile64

2 re-run tests:
    test_nntplib test_subprocess

Total duration: 5 min 22 sec
Tests result: FAILURE then FAILURE
Comment 4 ernsteiswuerfel archtester 2021-01-28 13:26:13 UTC
Upstream cython master passes tests:

[...]
== Tests result: SUCCESS ==

413 tests OK.

13 tests skipped:
    test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev
    test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
    test_winreg test_winsound test_zipfile64

Total duration: 4 min 5 sec
Tests result: SUCCESS
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-01-28 14:16:54 UTC
I was hoping I'd be able to help you but I can't reproduce on the Gentoo ppc64 build host.

Could you also try the top of '3.9' branch?

You should be able to run that one test via:

./python  ./Tools/scripts/run_tests.py test_subprocess

(also would be nice to confirm that it happens when running it alone via that command)
Comment 6 ernsteiswuerfel archtester 2021-01-28 14:41:58 UTC
single test still fails on 'v3.9.1' but it passes on '3.9' (895591c1f0):

[...]
Using random seed 982950
0:00:00 load avg: 0.51 Run tests in parallel using 34 child processes
0:00:30 load avg: 0.57 running: test_subprocess (30.0 sec)
0:00:51 load avg: 0.65 [1/1] test_subprocess passed (51.8 sec)
/root/build/cpython/Lib/subprocess.py:1052: ResourceWarning: subprocess 407282 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback

== Tests result: SUCCESS ==

1 test OK.

Total duration: 52.0 sec
Tests result: SUCCESS
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-01-28 14:46:43 UTC
Well, in that case we can either wait for the next upstream release, or you could try using 'git bisect' to find out which commit fixed it.
Comment 8 ernsteiswuerfel archtester 2021-02-21 23:36:57 UTC
python-3.9.2 passes tests on ppc64.

[...]
== Tests result: SUCCESS ==

403 tests OK.

21 tests skipped:
    test_curses test_devpoll test_ioctl test_kqueue test_msilib
    test_nis test_ossaudiodev test_smtpnet test_socketserver
    test_startfile test_timeout test_tix test_tk test_ttk_guionly
    test_urllib2net test_urllibnet test_winconsoleio test_winreg
    test_winsound test_xmlrpc_net test_zipfile64

Total duration: 3 min 32 sec
Tests result: SUCCESS
 * The following tests have been skipped:
 * test_gdb.py
 * If you would like to run them, you may:
 * cd '/usr/lib/python3.9/test'
 * and run the tests separately.
>>> Completed testing dev-lang/python-3.9.2
Comment 9 ernsteiswuerfel archtester 2021-03-22 15:58:02 UTC
Obsolete, as python-3.9.2 has been stabled (bug #770853).