Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-66285: fix forking inasyncio#99539

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kumaraditya303 merged 8 commits intopython:mainfromkumaraditya303:async-fork
Nov 24, 2022

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303kumaraditya303 commentedNov 16, 2022
edited by bedevere-bot
Loading

@kumaraditya303kumaraditya303 marked this pull request as ready for reviewNovember 17, 2022 11:11
@kumaraditya303kumaraditya303 added the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelNov 17, 2022
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@kumaraditya303 for commitd6ef1a6 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelNov 17, 2022
@gvanrossum
Copy link
Member

See my comments on the issue,@kumaraditya303 .

@kumaraditya303
Copy link
ContributorAuthor

See my comments on the issue,

@gvanrossum: I have added more tests and also added a subprocess test.

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure⚠️⚠️⚠️

Hi! The buildbotAMD64 RHEL8 FIPS Only Blake2 Builtin Hash 3.x has failed when building commit0c1fbc1.

What do you need to do:

  1. Don't panic.
  2. Checkthe buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/469/builds/3768) and take a look at the build logs.
  4. Check if the failure is related to this commit (0c1fbc1) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/469/builds/3768

Failed tests:

  • test_asyncio

Failed subtests:

  • test_fork_signal_handling - test.test_asyncio.test_unix_events.TestFork.test_fork_signal_handling
  • test_fork_asyncio_run - test.test_asyncio.test_unix_events.TestFork.test_fork_asyncio_run
  • test_fork_asyncio_subprocess - test.test_asyncio.test_unix_events.TestFork.test_fork_asyncio_subprocess

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

416 tests OK.

10 slowest tests:

  • test_gdb: 6 min 6 sec
  • test_concurrent_futures: 2 min 46 sec
  • test_capi: 2 min 7 sec
  • test_asyncio: 1 min 57 sec
  • test_multiprocessing_spawn: 1 min 44 sec
  • test_multiprocessing_forkserver: 1 min 10 sec
  • test_multiprocessing_fork: 1 min 3 sec
  • test_tokenize: 59.6 sec
  • test_signal: 48.9 sec
  • test_socket: 46.8 sec

1 test failed:
test_asyncio

16 tests skipped:
test_check_c_globals test_devpoll test_ioctl test_kqueue
test_launcher test_msilib test_peg_generator test_startfile
test_tix test_tkinter test_ttk test_winconsoleio test_winreg
test_winsound test_wmi test_zipfile64

1 re-run test:
test_asyncio

Total duration: 10 min 8 sec

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/unittest/async_case.py", line90, in_callTestMethodifself._callMaybeAsync(method)isnotNone:^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/unittest/async_case.py", line117, in_callMaybeAsyncreturnself._asyncioTestContext.run(func,*args,**kwargs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/test/test_asyncio/test_unix_events.py", line1953, intest_fork_asyncio_subprocess    result= manager.Value('i',1)^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/managers.py", line726, intemp    token, exp=self._create(typeid,*args,**kwds)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/managers.py", line606, in_create    conn=self._Client(self._address,authkey=self._authkey)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/connection.py", line507, inClient    answer_challenge(c, authkey)  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/connection.py", line822, inanswer_challenge    digest= hmac.new(authkey, message,'md5').digest()^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line184, innewreturn HMAC(key, msg, digestmod)^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line60, in__init__self._init_hmac(key, msg, digestmod)  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line67, in_init_hmacself._hmac= _hashopenssl.hmac_new(key, msg,digestmod=digestmod)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ValueError:no reason suppliedTraceback (most recent call last):  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/unittest/async_case.py", line90, in_callTestMethodifself._callMaybeAsync(method)isnotNone:^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/unittest/async_case.py", line117, in_callMaybeAsyncreturnself._asyncioTestContext.run(func,*args,**kwargs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/test/test_asyncio/test_unix_events.py", line1902, intest_fork_signal_handling    child_started= manager.Event()^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/managers.py", line726, intemp    token, exp=self._create(typeid,*args,**kwds)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/managers.py", line606, in_create    conn=self._Client(self._address,authkey=self._authkey)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/connection.py", line507, inClient    answer_challenge(c, authkey)  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/connection.py", line822, inanswer_challenge    digest= hmac.new(authkey, message,'md5').digest()^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line184, innewreturn HMAC(key, msg, digestmod)^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line60, in__init__self._init_hmac(key, msg, digestmod)  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line67, in_init_hmacself._hmac= _hashopenssl.hmac_new(key, msg,digestmod=digestmod)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ValueError:no reason suppliedTraceback (most recent call last):  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/unittest/async_case.py", line90, in_callTestMethodifself._callMaybeAsync(method)isnotNone:^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/unittest/async_case.py", line117, in_callMaybeAsyncreturnself._asyncioTestContext.run(func,*args,**kwargs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/test/test_asyncio/test_unix_events.py", line1937, intest_fork_asyncio_run    result= manager.Value('i',0)^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/managers.py", line726, intemp    token, exp=self._create(typeid,*args,**kwds)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/managers.py", line606, in_create    conn=self._Client(self._address,authkey=self._authkey)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/connection.py", line507, inClient    answer_challenge(c, authkey)  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/connection.py", line822, inanswer_challenge    digest= hmac.new(authkey, message,'md5').digest()^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line184, innewreturn HMAC(key, msg, digestmod)^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line60, in__init__self._init_hmac(key, msg, digestmod)  File"/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line67, in_init_hmacself._hmac= _hashopenssl.hmac_new(key, msg,digestmod=digestmod)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ValueError:no reason supplied

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure⚠️⚠️⚠️

Hi! The buildbotwasm32-wasi 3.x has failed when building commit0c1fbc1.

What do you need to do:

  1. Don't panic.
  2. Checkthe buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/1046/builds/954) and take a look at the build logs.
  4. Check if the failure is related to this commit (0c1fbc1) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/1046/builds/954

Failed tests:

  • test_traceback

Failed subtests:

  • test_import_from_error_bad_suggestions_do_not_trigger_for_small_names - test.test_traceback.CPythonSuggestionFormattingTests.test_import_from_error_bad_suggestions_do_not_trigger_for_small_names

Summary of the results of the build (if available):

== Tests result: FAILURE ==

325 tests OK.

10 slowest tests:

  • test_tokenize: 51.3 sec
  • test_unparse: 42.7 sec
  • test_capi: 33.1 sec
  • test_lib2to3: 29.2 sec
  • test_unicodedata: 25.0 sec
  • test_decimal: 16.0 sec
  • test_statistics: 14.2 sec
  • test_pickle: 13.1 sec
  • test_zipfile: 9.4 sec
  • test_buffer: 7.5 sec

1 test failed:
test_traceback

107 tests skipped:
test__xxsubinterpreters test_asyncgen test_asyncio test_bz2
test_check_c_globals test_clinic test_cmd_line
test_concurrent_futures test_contextlib_async test_ctypes
test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_doctest
test_docxmlrpc test_dtrace test_embed test_epoll test_faulthandler
test_fcntl test_file_eintr test_fork1 test_ftplib test_gdb
test_grp test_gzip test_httplib test_httpservers test_idle
test_imaplib test_interpreters test_ioctl test_kqueue
test_launcher test_lzma test_mailbox test_mmap test_msilib
test_multiprocessing_fork test_multiprocessing_forkserver
test_multiprocessing_main_handling test_multiprocessing_spawn
test_nis test_openpty test_ossaudiodev test_pdb test_peg_generator
test_perf_profiler test_pipes test_poll test_poplib test_pty
test_pwd test_queue test_readline test_regrtest test_repl
test_resource test_select test_selectors test_smtplib test_smtpnet
test_socket test_socketserver test_spwd test_sqlite3 test_ssl
test_stable_abi_ctypes test_startfile test_subprocess
test_sys_settrace test_syslog test_tcl test_telnetlib test_thread
test_threadedtempfile test_threading test_threading_local test_tix
test_tkinter test_tools test_ttk test_ttk_textonly test_turtle
test_urllib test_urllib2 test_urllib2_localnet test_urllib2net
test_urllib_response test_urllibnet test_venv test_wait3
test_wait4 test_webbrowser test_winconsoleio test_winreg
test_winsound test_wmi test_wsgiref test_xmlrpc test_xmlrpc_net
test_xxlimited test_zipfile64 test_zipimport_support test_zlib
test_zoneinfo
0:04:47 load avg: 2.78
0:04:47 load avg: 2.78 Re-running failed tests is not supported with --python host runner option.

Total duration: 4 min 47 sec

Click to see traceback logs
TracebackFormatTests.test_format_stack) ... okTracebackFormatTests.test_exception_group_deep_recursion_traceback) ... okTracebackCases.test_format_exception_only_exc) ... okTracebackException.test_compact_no_cause) ... okTracebackCases.test_base_exception) ... okTracebackErrorCaretTests.test_specialization_variations) ... okTracebackException.test_locals) ... okTracebackFormatTests.test_print_exception_bad_type_python) ... okTracebackErrorCaretTests.test_caret_multiline_expression) ... okTracebackCases.test_print_traceback_at_exit) ... skipped 'requires subprocess support'TracebackErrorCaretTests.test_traceback_specialization_with_syntax_error) ... okTracebackException.test_compact_with_cause) ... okTracebackFormatTests.test_recursive_traceback_python) ... okTracebackException.test_long_context_chain) ... okTracebackException_ExceptionGroups.test_exception_group_format_exception_only) ... okTracebackFormatTests.test_print_exception_bad_type_capi) ... okTracebackCases.test_extract_stack) ... okTracebackCases.test_nocaret) ... okTracebackErrorCaretTests.test_multiline_method_call_a) ... okTracebackCases.test_no_caret_with_no_debug_ranges_flag) ... skipped 'requires subprocess support'TracebackErrorCaretTests.test_traceback_very_long_line) ... okTracebackErrorCaretTests.test_caret_exception_group) ... okTracebackErrorCaretTests.test_basic_caret) ... okTraceback (most recent call last):  File"/Lib/test/test_traceback.py", line3173, intest_import_from_error_bad_suggestions_do_not_trigger_for_small_namesself.assertNotIn("mom", actual)AssertionError:'mom' unexpectedly found in "ImportError: cannot import name 'b' from 'nmQWXqKJcBDACXLN' (/opt/buildbot/bcannon-wasm/3.x.bcannon-wasm.wasi/build/build_oot/host/build/test_python_496508æ/test_python_worker_830271æ/tmp6fv8mom7/nmQWXqKJcBDACXLN.py)"TracebackException.test_comparison_equivalent_exceptions_are_equal) ... okTracebackErrorCaretTests.test_multiline_method_call_c) ... okTracebackErrorCaretTests.test_caret_for_subscript_unicode) ... okTracebackCases.test_no_caret_with_no_debug_ranges_flag_python_traceback) ... skipped 'requires subprocess support'TracebackErrorCaretTests.test_multiline_method_call_b) ... okTracebackCases.test_recursion_error_during_traceback) ... skipped 'requires subprocess support'TracebackErrorCaretTests.test_decorator_application_lineno_correct) ... okTracebackErrorCaretTests.test_caret_in_type_annotation) ... okTracebackException.test_no_refs_to_exception_and_traceback_objects) ... okTracebackFormatTests.test_recursive_traceback_cpython_internal) ... okTracebackFormatTests.test_stack_format) ... okTracebackErrorCaretTests.test_wide_characters_unicode_with_problematic_byte_offset) ... okTracebackCases.test_caret) ... okTracebackCases.test_format_exception_exc) ... okTracebackErrorCaretTests.test_secondary_caret_not_elided) ... okTracebackException.test_from_exception) ... okTracebackCases.test_print_exception) ... okTracebackException.test_print) ... okTracebackException.test_no_locals) ... okTracebackCases.test_clear) ... okTracebackCases.test_format_exception_only_bad__str__) ... okTracebackCases.test_exception_is_None) ... okTracebackException.test_lookup_lines) ... okTracebackException_ExceptionGroups.test_max_group_width) ... okTracebackCases.test_bad_indentation) ... okTracebackException.test_traceback_header) ... okTracebackCases.test_signatures) ... okTracebackException_ExceptionGroups.test_exception_group_format) ... okTracebackFormatTests.test_print_stack) ... okTracebackErrorCaretTests.test_caret_for_binary_operators_with_unicode) ... okTracebackErrorCaretTests.test_line_with_unicode) ... okTracebackFormatTests.test_exception_group_deep_recursion_capi) ... okTracebackException.test_limit) ... okTracebackErrorCaretTests.test_caret_for_binary_operators) ... okTracebackException.test_comparison_basic) ... okTracebackErrorCaretTests.test_byte_offset_with_wide_characters_middle) ... okTracebackErrorCaretTests.test_caret_for_subscript) ... okTracebackException_ExceptionGroups.test_comparison) ... okTracebackErrorCaretTests.test_byte_offset_multiline) ... okTracebackException.test_smoke) ... okTracebackErrorCaretTests.test_caret_multiline_expression_bin_op) ... okTracebackCases.test_encoded_file) ... skipped 'requires subprocess support'TracebackErrorCaretTests.test_caret_for_binary_operators_two_char) ... okTracebackFormatTests.test_traceback_format_with_cleared_frames) ... okTracebackFormatTests.test_unhashable) ... okTracebackException_ExceptionGroups.test_max_group_depth) ... okTracebackException.test_cause) ... okTracebackFormatTests.test_traceback_format) ... okTracebackException.test_comparison_params_variations) ... okTracebackException.test_context) ... okTracebackException_ExceptionGroups.test_exception_group_construction) ... okTracebackErrorCaretTests.test_caret_multiline_expression_syntax_error) ... okTracebackException.test_unhashable) ... okTracebackCases.test_print_exception_exc) ... ok

kumaraditya303 added a commit to kumaraditya303/cpython that referenced this pull requestNov 24, 2022
@brettcannon
Copy link
Member

Looks like the failure was random as subsequent builds succeeded.

https://buildbot.python.org/all/#/builders/1046

@vstinner
Copy link
Member

Yeah, I saw the test_traceback failure, but it only occurred once, so I ignored it.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gvanrossumgvanrossumgvanrossum approved these changes

@1st11st1Awaiting requested review from 1st11st1 is a code owner

@asvetlovasvetlovAwaiting requested review from asvetlovasvetlov is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

asyncio signal handler receives signals from child processes asyncio: support multiprocessing (support fork)
5 participants
@kumaraditya303@bedevere-bot@gvanrossum@brettcannon@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp