python / python/cpython

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

Đang mở
#150,388 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

OS-mac tests topic-SSL type-bug
Ngôn ngữ chính
Python
Star
77.2k
Fork
35.9k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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:

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với Lib/test/test_ssl.py tại BasicSocketTests.test_connect_ex và lần theo lệnh gọi được báo cáo đến _real_connect và connect_ex trong Lib/ssl.py. Tái hiện bài kiểm thử trong ngữ cảnh buildbot ARM64 macOS 3.x, so sánh các bản build thành công và thất bại, đồng thời xác minh rằng test_connect_ex_error không còn bị treo và lượt chạy test_ssl hoàn tất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
macos, python
Lĩnh vực
networking, security, testing-qa
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.