Skip to content

gh-94938: Fix test #95396

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

Merged
merged 1 commit into from
Jul 30, 2022
Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jul 28, 2022

@serhiy-storchaka serhiy-storchaka added tests Tests in the Lib/test dir skip news needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Jul 28, 2022
@serhiy-storchaka serhiy-storchaka merged commit 0956b6d into python:main Jul 30, 2022
@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the gh-94938-test branch July 30, 2022 06:16
@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Jul 30, 2022
@bedevere-bot
Copy link

GH-95459 is a backport of this pull request to the 3.11 branch.

@bedevere-bot
Copy link

GH-95460 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jul 30, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 30, 2022
(cherry picked from commit 0956b6d)

Co-authored-by: Serhiy Storchaka <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 30, 2022
(cherry picked from commit 0956b6d)

Co-authored-by: Serhiy Storchaka <[email protected]>
miss-islington added a commit that referenced this pull request Jul 30, 2022
(cherry picked from commit 0956b6d)

Co-authored-by: Serhiy Storchaka <[email protected]>
miss-islington added a commit that referenced this pull request Jul 30, 2022
(cherry picked from commit 0956b6d)

Co-authored-by: Serhiy Storchaka <[email protected]>
@bedevere-bot

This comment was marked as off-topic.

@sharewax
Copy link

sharewax commented Aug 15, 2022

I have the same for python3.11:

[root@ed-v-build-rpm-1 wg-7-x86_64]# grep Traceback build.log -A3 -B3
0:01:08 load avg: 5.04 [427/434] test_signal passed (47.7 sec) -- running: test_subprocess (44.4 sec), test_concurrent_futures (1 min 5 sec), test_multiprocessing_fork (56.3 sec), test_multiprocessing_forkserver (56.2 sec), test_multiprocessing_spawn (56.2 sec), test_asyncio (1 min 8 sec), test_tools (39.8 sec)
0:01:11 load avg: 5.04 [428/434] test_asyncio passed (1 min 11 sec) -- running: test_subprocess (47.4 sec), test_concurrent_futures (1 min 8 sec), test_multiprocessing_fork (59.2 sec), test_multiprocessing_forkserver (59.2 sec), test_multiprocessing_spawn (59.2 sec), test_tools (42.7 sec)
0:01:21 load avg: 4.50 [429/434] test_multiprocessing_fork passed (1 min 8 sec) -- running: test_subprocess (56.7 sec), test_concurrent_futures (1 min 17 sec), test_multiprocessing_forkserver (1 min 8 sec), test_multiprocessing_spawn (1 min 8 sec), test_tools (52.0 sec)
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.11.0rc1/Lib/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
KeyError: '/psm_80a022e5'
0:01:28 load avg: 4.91 [430/434] test_multiprocessing_forkserver passed (1 min 15 sec) -- running: test_subprocess (1 min 4 sec), test_concurrent_futures (1 min 25 sec), test_multiprocessing_spawn (1 min 15 sec), test_tools (59.5 sec)
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.11.0rc1/Lib/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
KeyError: '/psm_ac671647'
0:01:56 load avg: 5.28 [431/434] test_subprocess passed (1 min 32 sec) -- running: test_concurrent_futures (1 min 53 sec), test_multiprocessing_spawn (1 min 44 sec), test_tools (1 min 27 sec)
0:01:59 load avg: 5.34 [432/434] test_multiprocessing_spawn passed (1 min 46 sec) -- running: test_concurrent_futures (1 min 55 sec), test_tools (1 min 30 sec)
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.11.0rc1/Lib/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
KeyError: '/psm_6ee09471'

Is it normal or no? Should it be fixed? Because tracebacks looks not so good in logs during RPM build and etc...

[root@ed-mgmt-1 test]# python3.11 test_multiprocessing_forkserver.py
............s..................................................s...............................s.s.s.....s...s...........ss.....s......................................................................................................................................Traceback (most recent call last):
  File "/opt/wargaming/wargaming-python311/root/usr/lib64/python3.11/multiprocessing/resource_tracker.py", line 209, in main
.    cache[rtype].remove(name)
KeyError: '/psm_27b2df21'
..............................ssss...............................s.........ss.ss..sss.sss.s.ssss......ss....s.
----------------------------------------------------------------------
Ran 374 tests in 75.566s

OK (skipped=33)

[root@ed-mgmt-1 test]# python3.11 test_multiprocessing_spawn.py
............s..............s...................................s...............................s.s.s.....s...s...........ss.....s...............................................................................................ss......................................Traceback (most recent call last):
  File "/opt/wargaming/wargaming-python311/root/usr/lib64/python3.11/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
KeyError: '/psm_75a03c5e'
..............................ssss...............................s.........ss.ss..sss.sss.s.ssss......ss....s.
----------------------------------------------------------------------
Ran 374 tests in 117.700s

OK (skipped=36) 

@serhiy-storchaka
Copy link
Member Author

The annoying output that you see is not related to this PR. Please open a new issue if the corresponding issue has not already been opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants