python / cpython

The Python programming language
https://www.python.org
Other
63.19k stars 30.26k forks source link

Python 'make test' failed inside ssh+tmux #86315

Closed 230bb79e-2f06-43f4-aab4-d3acabe566b6 closed 1 year ago

230bb79e-2f06-43f4-aab4-d3acabe566b6 commented 4 years ago
BPO 42149

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: ```python assignee = None closed_at = None created_at = labels = ['build', '3.9'] title = "Python 'make test' failed inside ssh+tmux" updated_at = user = 'https://bugs.python.org/kmash' ``` bugs.python.org fields: ```python activity = actor = 'kmash' assignee = 'none' closed = False closed_date = None closer = None components = ['Build'] creation = creator = 'kmash' dependencies = [] files = [] hgrepos = [] issue_num = 42149 keywords = [] message_count = 2.0 messages = ['379603', '379604'] nosy_count = 1.0 nosy_names = ['kmash'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = None url = 'https://bugs.python.org/issue42149' versions = ['Python 3.9'] ```

230bb79e-2f06-43f4-aab4-d3acabe566b6 commented 4 years ago

Short version: When building python from source code on linux (Debian10 amd64) inside ssh+tmux session 'make test' ends up with some tests failed.

Long version: Build environment - freshly installed Debian10-amd64 os. Added build dependency packages: libreadline-dev libbz2-dev libffi-dev liblzma-dev libssl-dev libsqlite3-dev libgdbm-dev libncursesw5-dev tk-dev libgdbm-compat-dev

If you ssh to this machine, start tmux and initiate build like this: ./configure && make && make test the whole testing phase will fail due to some failed tests. ---------------------------------------- 7 tests failed:
test_generators test_multiprocessing_fork
test_multiprocessing_forkserver test_multiprocessing_spawn
test_pdb test_regrtest test_threading

14 tests skipped:
test_devpoll test_gdb 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

7 re-run tests:
test_generators test_multiprocessing_fork
test_multiprocessing_forkserver test_multiprocessing_spawn
test_pdb test_regrtest test_threading

Total duration: 10 min 34 sec
Tests result: FAILURE then FAILURE ----------------------------------------- Running the same build process on the same machine ends up fine, if running: locally inside xterm, locally inside xterm+tmux, remotely inside ssh only (without tmux).

230bb79e-2f06-43f4-aab4-d3acabe566b6 commented 4 years ago

Does it mean that running python script inside ssh+tmux session could fail if it uses functionality that fails those tests?

vstinner commented 1 year ago

Sadly, nobody managed to reproduce the issue in the meanwhile. I close the issue.

If you can still reproduce the issue on the main branch of Python (future Python 3.13), please reopen the issue.