Issue 27869: test failures under Bash on Windows / WSL (original) (raw)
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/72056
classification
Title: | test failures under Bash on Windows / WSL | ||
---|---|---|---|
Type: | behavior | Stage: | |
Components: | Library (Lib), Windows | Versions: | Python 3.7 |
process
Status: | open | Resolution: | |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | Nosy List: | brett.cannon, paul.moore, paul.waldorf, steve.dower, taleinat, tim.golden, zach.ware | |
Priority: | normal | Keywords: |
Created on 2016-08-26 18:40 by brett.cannon, last changed 2022-04-11 14:58 by admin.
Messages (9) | ||
---|---|---|
msg273714 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2016-08-26 18:40 |
test_logging and test_socket seem to hang, and then there are 35 failures: test_asyncio test_asyncore test_dbm_dumb test_dbm_gnu test_eintr test_epoll test_faulthandler test_fcntl test_ftplib test_gettext test_httpservers test_import test_largefile test_mailbox test_mmap test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_main_handling test_multiprocessing_spawn test_netrc test_os test_pathlib test_pep277 test_posix test_resource test_shutil test_signal test_socketserver test_stat test_subprocess test_tarfile test_time test_unicode_file test_wsgiref test_zipfile | ||
msg274255 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2016-09-02 16:38 |
I re-ran the test suite in a directory not under /mnt/c to see if having a different file owner would change things and it did. test_logging and test_socket still hang, but the failures go down to 23: test_asyncio test_asyncore test_eintr test_epoll test_faulthandler test_fcntl test_ftplib test_httpservers test_import test_mmap test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_main_handling test_multiprocessing_spawn test_os test_posix test_resource test_signal test_socketserver test_subprocess test_time test_unicode_file test_wsgiref | ||
msg274266 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2016-09-02 17:45 |
And with the latest patches applied, same hanging tests, but one less failure: test_asyncio test_asyncore test_epoll test_faulthandler test_fcntl test_ftplib test_httpservers test_import test_mmap test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_main_handling test_multiprocessing_spawn test_os test_posix test_resource test_signal test_socketserver test_subprocess test_time test_unicode_file test_wsgiref | ||
msg292469 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2017-04-27 18:31 |
Under Creators Update with a clean Ubuntu 16.04 image and only installing clang and make, I built with `CC=clang ./configure; make -s -j` and ran with `./python -m test -j0 -x test_socket` (test_socket hung in a previous run; I let it run for 10 minutes previously): 348 tests OK. 19 tests failed: test_asyncio test_asyncore test_epoll test_fcntl test_ftplib test_httpservers test_import test_mmap test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_spawn test_os test_posix test_resource test_selectors test_signal test_subprocess test_time test_unicode_file 36 tests skipped: test_bz2 test_crypt test_ctypes test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_gzip test_idle test_kqueue test_lzma test_msilib test_nis test_ossaudiodev test_readline test_smtpnet test_socketserver test_sqlite test_ssl test_startfile test_tcl test_timeout test_tix test_tk test_ttk_guionly test_ttk_textonly test_turtle test_urllib2net test_urllibnet test_winconsoleio test_winreg test_winsound test_xmlrpc_net test_zipfile64 test_zlib Total duration: 3 min 56 sec Tests result: FAILURE | ||
msg292545 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2017-04-28 19:06 |
Running the tests with -uall didn't change the results. | ||
msg292551 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2017-04-28 21:22 |
When failures are bit more isolated they should probably be reported to https://github.com/microsoft/bashonwindows . | ||
msg299950 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2017-08-08 22:40 |
Running with `./python -m test -u all -j0` causes test_ssl to hang so that needs to also be skipped (otherwise failures look to be the same from a test module level): 19 tests failed: test_asyncio test_asyncore test_epoll test_fcntl test_ftplib test_httpservers test_import test_mmap test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_spawn test_os test_posix test_resource test_selectors test_signal test_subprocess test_time test_unicode_file 24 tests skipped: test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_idle test_kqueue test_lzma test_msilib test_ossaudiodev test_readline test_sqlite test_startfile test_tcl test_tix test_tk test_ttk_guionly test_ttk_textonly test_turtle test_winconsoleio test_winreg test_winsound test_zipfile64 | ||
msg324902 - (view) | Author: Paul Waldorf (paul.waldorf) | Date: 2018-09-09 23:51 |
Thought my experience could be helpful. My env is varies from @brett.cannon in that I'm running Debian 9 (Stretch) on my WSL, which makes me think that these failures have more to do with WSL than any difference in distros? Configured with ./configure --with-pydebug Tests ran with ./python -m test -j0 -x test_signal -x test_ssl -v Both test_signal and test_ssl would hang indefinitely. 364 tests OK. 27 tests failed: test_asyncio test_asyncore test_concurrent_futures test_epoll test_fcntl test_ftplib test_httplib test_httpservers test_import test_io test_mmap test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_main_handling test_multiprocessing_spawn test_os test_posix test_regrtest test_selectors test_socket test_source_encoding test_subprocess test_sys test_sysconfig test_syslog test_time test_unicode_file 20 tests skipped: test_curses test_devpoll test_gdb test_kqueue test_msilib 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 | ||
msg327994 - (view) | Author: Tal Einat (taleinat) * ![]() |
Date: 2018-10-18 18:12 |
As a side-effect, test_ssl hanging is causing builds configured with --enable-optimizations to hang. (Tested with both 3.6.6 and 3.7.0 on Ubuntu 18.04 in WSL on Win 10 Pro 64-bit) |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:35 | admin | set | github: 72056 |
2018-10-18 18:12:20 | taleinat | set | nosy: + taleinatmessages: + |
2018-09-09 23:51:47 | paul.waldorf | set | nosy: + paul.waldorfmessages: + |
2017-08-08 22:40:23 | brett.cannon | set | messages: + |
2017-04-28 21:22:38 | brett.cannon | set | versions: + Python 3.7, - Python 3.6 |
2017-04-28 21:22:33 | brett.cannon | set | messages: + |
2017-04-28 19:06:00 | brett.cannon | set | messages: + |
2017-04-27 18:31:44 | brett.cannon | set | messages: + |
2017-04-19 18:21:58 | brett.cannon | set | title: test failures under Bash on Windows -> test failures under Bash on Windows / WSL |
2016-09-02 17:45:00 | brett.cannon | set | messages: + |
2016-09-02 16:38:27 | brett.cannon | set | messages: + title: test failures on Bash on Windows -> test failures under Bash on Windows |
2016-08-26 18:40:52 | brett.cannon | set | title: test failures on Bash for Windows -> test failures on Bash on Windows |
2016-08-26 18:40:37 | brett.cannon | create |