Repository navigation
Align SSL APIs and transport behavior with Python 3.15 - #9167
Conversation
Refresh ssl.py and test_ssl.py through update_lib from CPython d220409a13b77de7a6c30abe16ea90db01528edc without local test changes. Implement rustls cipher-suite, group and signature policy, negotiated-group reporting, EOF and session-policy behavior. Keep OpenSSL and wasm API imports compatible, with genuine version-gated queries and honest unsupported capabilities. Repair OpenSSL callback ownership and traversal, callback exceptions, EOF and shutdown, PHA, session destruction, and system-error decoding exposed by canonical coverage. Preserve existing I/O locking; the inherited optional-backend full-duplex hang remains a separate driver prerequisite. Assisted-by: OpenAI Codex:model version unavailable
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
⛔ Files ignored due to path filters: 2
📒 Files selected for processing: 12
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: :4: SyntaxWarning: invalid decimal literal dependencies:
dependent tests: (55 tests)
Legend:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
Lib/ssl.pyandLib/test/test_ssl.pythrough the actual updater from CPythond220409a13b77de7a6c30abe16ea90db01528edc. Outputs are byte-identical to canonical source; no test assertions, test bodies, capability guards or certificate fixtures were changed locally.No Cargo/dependency/vendor/parser/test-support migration is included.
Reference behavior and coverage
Known optional-backend limit
The complete OpenSSL suite still cannot finish because the inherited
ThreadedTests.test_thread_recv_while_main_thread_sendsblocks when a read holds the connection lock and a same-connection writer cannot progress. The test is unchanged. Its initial failed full-suite receipt is retained, and subsequent validation uses the standard runner selector to exclude exactly this known hanging test.A partial concurrency refactor was investigated but rejected before integration or execution. Correct OpenSSL retry ownership and readiness wakeups require a separate connection-driver change. This PR does not claim full OpenSSL concurrency parity.
Compatibility details
NotImplementedErrorbecause its API does not expose the negotiated value.HAS_PSKandHAS_PSK_TLS13are now false and those setters raiseNotImplementedError; full external-PSK implementation is outside this batch.Validation
Local checks use base 872030680. Upstream main advanced only by a sha2 lockfile patch while validation ran; hosted merge CI will check that integration.
AI assistance
OpenAI Codex assisted with extracting the migration, implementing the native compatibility and prerequisite fixes, source review, validation, and this description.