Skip to content
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

Windows 10 buildbot: test__xxsubinterpreters.test_already_running() fails randomly #77537

Closed
vstinner opened this issue Apr 25, 2018 · 5 comments
Labels
3.8 only security fixes tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

BPO 33356
Nosy @vstinner, @ericsnowcurrently, @pablogsal

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2019-10-14.21:23:30.694>
created_at = <Date 2018-04-25.14:26:40.576>
labels = ['3.8', 'tests']
title = 'Windows 10 buildbot: test__xxsubinterpreters.test_already_running() fails randomly'
updated_at = <Date 2019-10-14.21:23:30.693>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2019-10-14.21:23:30.693>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2019-10-14.21:23:30.694>
closer = 'vstinner'
components = ['Tests']
creation = <Date 2018-04-25.14:26:40.576>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 33356
keywords = []
message_count = 5.0
messages = ['315737', '318097', '338973', '339157', '354657']
nosy_count = 3.0
nosy_names = ['vstinner', 'eric.snow', 'pablogsal']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue33356'
versions = ['Python 3.8']

@vstinner
Copy link
Member Author

Windows10 3.x: test_already_running() failed once, but passed when run again:

http://buildbot.python.org/all/#/builders/3/builds/817/steps/3/logs/stdio

======================================================================
FAIL: test_already_running (test.test__xxsubinterpreters.RunStringTests)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test__xxsubinterpreters.py", line 561, in test_already_running
    interpreters.run_string(self.id, 'print("spam")')
AssertionError: RuntimeError not raised

(...)
Re-running test 'test__xxsubinterpreters' in verbose mode
(...)
Ran 94 tests in 14.582s
OK (skipped=3)

@vstinner vstinner added 3.8 only security fixes tests Tests in the Lib/test dir labels Apr 25, 2018
@vstinner
Copy link
Member Author

I didn't see this failure recently, I close the bug.

@vstinner
Copy link
Member Author

The bug is still here. It looks like a race condition triggered on very slow buildbot like AMD64 FreeBSD 10-STABLE Non-Debug 3.x:

https://buildbot.python.org/all/#/builders/167/builds/728

0:18:13 load avg: 4.84 [405/420/1] test__xxsubinterpreters failed -- running: test_tools (6 min 1 sec)
spam
test_bad_id (test.test__xxsubinterpreters.ChannelIDTests) ... ok
(...)
test_initial (test.test__xxsubinterpreters.ListAllTests) ... ok
test_SystemExit (test.test__xxsubinterpreters.RunStringTests) ... ok
test_already_running (test.test__xxsubinterpreters.RunStringTests) ... FAIL
test_bad_id (test.test__xxsubinterpreters.RunStringTests) ... Exception in thread Thread-9:
Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/test/test__xxsubinterpreters.py", line 51, in run
    interpreters.run_string(interp, dedent(f"""
RuntimeError: interpreter already running

ok
test_bad_script (test.test__xxsubinterpreters.RunStringTests) ... ok
test_bytes_for_script (test.test__xxsubinterpreters.RunStringTests) ... ok
(...)

======================================================================
FAIL: test_already_running (test.test__xxsubinterpreters.RunStringTests)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/test/test__xxsubinterpreters.py", line 855, in test_already_running
    interpreters.run_string(self.id, 'print("spam")')
AssertionError: RuntimeError not raised

Ran 112 tests in 12.936s

FAILED (failures=1, skipped=5)
test test__xxsubinterpreters failed
(...)
Re-running test 'test__xxsubinterpreters' in verbose mode
(...)
Ran 112 tests in 3.058s
OK (skipped=5)

@vstinner vstinner reopened this Mar 27, 2019
@ericsnowcurrently
Copy link
Member

I'll take a look when I get a chance.

@vstinner
Copy link
Member Author

I close this issue as a duplicate of bpo-37224.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.8 only security fixes tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

2 participants