GH-66285: fix forking in asyncio#99539
Conversation
2b6fc1a to
5bd9cdd
Compare
November 16, 2022 18:15
|
🤖 New build scheduled with the buildbot fleet by @kumaraditya303 for commit d6ef1a6 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
@gvanrossum: I have added more tests and also added a subprocess test. |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 RHEL8 FIPS Only Blake2 Builtin Hash 3.x has failed when building commit 0c1fbc1. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/469/builds/3768 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 416 tests OK. 10 slowest tests:
1 test failed: 16 tests skipped: 1 re-run test: Total duration: 10 min 8 sec Click to see traceback logsTraceback (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", line 90, in _callTestMethod
if self._callMaybeAsync(method) is not None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/unittest/async_case.py", line 117, in _callMaybeAsync
return self._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", line 1953, in test_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", line 726, in temp
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", line 606, 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", line 507, in Client
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", line 822, in answer_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", line 184, in new
return HMAC(key, msg, digestmod)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line 60, 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", line 67, in _init_hmac
self._hmac = _hashopenssl.hmac_new(key, msg, digestmod=digestmod)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: no reason supplied
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", line 90, in _callTestMethod
if self._callMaybeAsync(method) is not None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/unittest/async_case.py", line 117, in _callMaybeAsync
return self._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", line 1902, in test_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", line 726, in temp
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", line 606, 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", line 507, in Client
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", line 822, in answer_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", line 184, in new
return HMAC(key, msg, digestmod)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line 60, 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", line 67, in _init_hmac
self._hmac = _hashopenssl.hmac_new(key, msg, digestmod=digestmod)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: no reason supplied
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", line 90, in _callTestMethod
if self._callMaybeAsync(method) is not None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/unittest/async_case.py", line 117, in _callMaybeAsync
return self._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", line 1937, in test_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", line 726, in temp
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", line 606, 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", line 507, in Client
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", line 822, in answer_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", line 184, in new
return HMAC(key, msg, digestmod)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line 60, 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", line 67, in _init_hmac
self._hmac = _hashopenssl.hmac_new(key, msg, digestmod=digestmod)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: no reason supplied
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot wasm32-wasi 3.x has failed when building commit 0c1fbc1. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/1046/builds/954 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE == 325 tests OK. 10 slowest tests:
1 test failed: 107 tests skipped: Total duration: 4 min 47 sec Click to see traceback logsTracebackFormatTests.test_format_stack) ... ok
TracebackFormatTests.test_exception_group_deep_recursion_traceback) ... ok
TracebackCases.test_format_exception_only_exc) ... ok
TracebackException.test_compact_no_cause) ... ok
TracebackCases.test_base_exception) ... ok
TracebackErrorCaretTests.test_specialization_variations) ... ok
TracebackException.test_locals) ... ok
TracebackFormatTests.test_print_exception_bad_type_python) ... ok
TracebackErrorCaretTests.test_caret_multiline_expression) ... ok
TracebackCases.test_print_traceback_at_exit) ... skipped 'requires subprocess support'
TracebackErrorCaretTests.test_traceback_specialization_with_syntax_error) ... ok
TracebackException.test_compact_with_cause) ... ok
TracebackFormatTests.test_recursive_traceback_python) ... ok
TracebackException.test_long_context_chain) ... ok
TracebackException_ExceptionGroups.test_exception_group_format_exception_only) ... ok
TracebackFormatTests.test_print_exception_bad_type_capi) ... ok
TracebackCases.test_extract_stack) ... ok
TracebackCases.test_nocaret) ... ok
TracebackErrorCaretTests.test_multiline_method_call_a) ... ok
TracebackCases.test_no_caret_with_no_debug_ranges_flag) ... skipped 'requires subprocess support'
TracebackErrorCaretTests.test_traceback_very_long_line) ... ok
TracebackErrorCaretTests.test_caret_exception_group) ... ok
TracebackErrorCaretTests.test_basic_caret) ... ok
Traceback (most recent call last):
File "/Lib/test/test_traceback.py", line 3173, in test_import_from_error_bad_suggestions_do_not_trigger_for_small_names
self.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) ... ok
TracebackErrorCaretTests.test_multiline_method_call_c) ... ok
TracebackErrorCaretTests.test_caret_for_subscript_unicode) ... ok
TracebackCases.test_no_caret_with_no_debug_ranges_flag_python_traceback) ... skipped 'requires subprocess support'
TracebackErrorCaretTests.test_multiline_method_call_b) ... ok
TracebackCases.test_recursion_error_during_traceback) ... skipped 'requires subprocess support'
TracebackErrorCaretTests.test_decorator_application_lineno_correct) ... ok
TracebackErrorCaretTests.test_caret_in_type_annotation) ... ok
TracebackException.test_no_refs_to_exception_and_traceback_objects) ... ok
TracebackFormatTests.test_recursive_traceback_cpython_internal) ... ok
TracebackFormatTests.test_stack_format) ... ok
TracebackErrorCaretTests.test_wide_characters_unicode_with_problematic_byte_offset) ... ok
TracebackCases.test_caret) ... ok
TracebackCases.test_format_exception_exc) ... ok
TracebackErrorCaretTests.test_secondary_caret_not_elided) ... ok
TracebackException.test_from_exception) ... ok
TracebackCases.test_print_exception) ... ok
TracebackException.test_print) ... ok
TracebackException.test_no_locals) ... ok
TracebackCases.test_clear) ... ok
TracebackCases.test_format_exception_only_bad__str__) ... ok
TracebackCases.test_exception_is_None) ... ok
TracebackException.test_lookup_lines) ... ok
TracebackException_ExceptionGroups.test_max_group_width) ... ok
TracebackCases.test_bad_indentation) ... ok
TracebackException.test_traceback_header) ... ok
TracebackCases.test_signatures) ... ok
TracebackException_ExceptionGroups.test_exception_group_format) ... ok
TracebackFormatTests.test_print_stack) ... ok
TracebackErrorCaretTests.test_caret_for_binary_operators_with_unicode) ... ok
TracebackErrorCaretTests.test_line_with_unicode) ... ok
TracebackFormatTests.test_exception_group_deep_recursion_capi) ... ok
TracebackException.test_limit) ... ok
TracebackErrorCaretTests.test_caret_for_binary_operators) ... ok
TracebackException.test_comparison_basic) ... ok
TracebackErrorCaretTests.test_byte_offset_with_wide_characters_middle) ... ok
TracebackErrorCaretTests.test_caret_for_subscript) ... ok
TracebackException_ExceptionGroups.test_comparison) ... ok
TracebackErrorCaretTests.test_byte_offset_multiline) ... ok
TracebackException.test_smoke) ... ok
TracebackErrorCaretTests.test_caret_multiline_expression_bin_op) ... ok
TracebackCases.test_encoded_file) ... skipped 'requires subprocess support'
TracebackErrorCaretTests.test_caret_for_binary_operators_two_char) ... ok
TracebackFormatTests.test_traceback_format_with_cleared_frames) ... ok
TracebackFormatTests.test_unhashable) ... ok
TracebackException_ExceptionGroups.test_max_group_depth) ... ok
TracebackException.test_cause) ... ok
TracebackFormatTests.test_traceback_format) ... ok
TracebackException.test_comparison_params_variations) ... ok
TracebackException.test_context) ... ok
TracebackException_ExceptionGroups.test_exception_group_construction) ... ok
TracebackErrorCaretTests.test_caret_multiline_expression_syntax_error) ... ok
TracebackException.test_unhashable) ... ok
TracebackCases.test_print_exception_exc) ... ok
|
Sorry, something went wrong.
This reverts commit 0c1fbc1.
|
Looks like the failure was random as subsequent builds succeeded. |
Sorry, something went wrong.
|
Yeah, I saw the test_traceback failure, but it only occurred once, so I ignored it. |
Sorry, something went wrong.
Closes #66285
Closes #94454