python / python/cpython

test_ssl: test_connect_ex_error() hangs on "ARM64 macOS 3.x" buildbot

未關閉
#150,388 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

OS-mac tests topic-SSL type-bug
主要語言
Python
星號
77.2k
分支
35.9k
PR 合併指標
PR 指標待擷取

描述

ARM64 macOS 3.x: https://buildbot.python.org/#/builders/725/builds/13430

0:49:10 load avg: 1.78 [4/4/1] test_ssl worker non-zero exit code (Exit code 1)
Re-running test_ssl in verbose mode
test_DER_to_PEM (test.test_ssl.BasicSocketTests.test_DER_to_PEM) ... ok
test_asn1object (test.test_ssl.BasicSocketTests.test_asn1object) ... ok
test_cert_time_to_seconds (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds) ... ok
test_cert_time_to_seconds_locale (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds_locale) ... skipped 'locale-specific month name needs to be different from C locale'
test_cert_time_to_seconds_timezone (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds_timezone) ... ok
test_connect_ex_error (test.test_ssl.BasicSocketTests.test_connect_ex_error) ... Timeout (0:20:00)!
Thread 0x0000000206e4ec40 (most recent call first):
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/ssl.py", line 1440 in _real_connect
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/ssl.py", line 1461 in connect_ex
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/test/test_ssl.py", line 973 in test_connect_ex_error
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/unittest/case.py", line 637 in _callTestMethod
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/unittest/case.py", line 691 in run
...

test.pythoninfo: OpenSSL 3.6.1

platform.platform: macOS-26.2-arm64-arm-64bit-Mach-O

ssl.HAS_SNI: True
ssl.OPENSSL_VERSION: OpenSSL 3.6.1 27 Jan 2026
ssl.OPENSSL_VERSION_INFO: (3, 6, 0, 1, 0)
ssl.OP_ALL: 0x80000050
ssl.OP_NO_TLSv1_1: 0x10000000
ssl.SSLContext.maximum_version: -1
ssl.SSLContext.minimum_version: 771
ssl.SSLContext.options: 2186412112
ssl.SSLContext.protocol: 16
ssl.SSLContext.verify_mode: 2
ssl.default_https_context.maximum_version: -1
ssl.default_https_context.minimum_version: 771
ssl.default_https_context.options: 2186412112
ssl.default_https_context.protocol: 16
ssl.default_https_context.verify_mode: 2
ssl.stdlib_context.maximum_version: -1
ssl.stdlib_context.minimum_version: 771
ssl.stdlib_context.options: 2186412112
ssl.stdlib_context.protocol: 16
ssl.stdlib_context.verify_mode: 0

ARM64 macOS 3.x:

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 Lib/test/test_ssl.py 中的 BasicSocketTests.test_connect_ex 開始,追蹤回報的呼叫,直到 Lib/ssl.py 中的 _real_connect 和 connect_ex。在 ARM64 macOS 3.x buildbot 環境中重現該測試,比較成功和失敗的建置,並確認 test_connect_ex_error 不再掛起且 test_ssl 的執行能夠完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
macos, python
領域
networking, security, testing-qa
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
需要釐清
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。