Skip to content

Conversation

@aiven-sal
Copy link
Member

Description of change

Add support for Python 3.13

@aiven-sal aiven-sal marked this pull request as draft October 30, 2024 09:04
mkmkme
mkmkme previously approved these changes Oct 30, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.29%. Comparing base (65d717a) to head (aefed4a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #116      +/-   ##
==========================================
- Coverage   75.29%   75.29%   -0.01%     
==========================================
  Files         132      132              
  Lines       34496    34497       +1     
==========================================
  Hits        25974    25974              
- Misses       8522     8523       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mkmkme
Copy link
Collaborator

mkmkme commented Nov 25, 2024

I stand corrected, my latest change did not fix 3.13. Looking further. Quite interesting that the async version raises an exception as expected and the sync one doesn't...

@mkmkme mkmkme force-pushed the aiven-sal/support3.13 branch from 1e10250 to 398d091 Compare November 26, 2024 14:59
@mkmkme mkmkme marked this pull request as ready for review November 26, 2024 14:59
aiven-sal and others added 4 commits November 26, 2024 17:01
Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Mikhail Koviazin <[email protected]>
In Python 3.13, `ssl.create_default_context()` added
`VERIFY_X509_STRICT` to the flags by default which caused the tests to
fail due to missing key usage. This commit adds it to the certificate
configuration and replaces the certificates with reconfigured ones.

Signed-off-by: Mikhail Koviazin <[email protected]>
This commit adds support for minimum_ssl_version and maximum_ssl_version
to `_ValkeyTCPServer` in tests. Previously it was written with
`ssl.wrap_socket` in mind which only supported `ssl_version`.
`SSLContext` OTOH supports passing both minimum and maximum supported TLS
versions. This commit utilizes that.

Additionally, TLS version in test_tcp_ssl_version_mismatch was fixed.
It was broken since 7783e0b. This change was added there by mistake and
in fact didn't change anything for Python 3.12. Instead, it seems to
have hidden a bug that revealed itself with Python 3.13.

Signed-off-by: Mikhail Koviazin <[email protected]>
Signed-off-by: Salvatore Mesoraca <[email protected]>
@aiven-sal aiven-sal force-pushed the aiven-sal/support3.13 branch from 398d091 to aefed4a Compare November 26, 2024 16:01
@aiven-sal aiven-sal enabled auto-merge November 26, 2024 16:57
@aiven-sal aiven-sal merged commit 55408ff into main Nov 27, 2024
93 checks passed
@aiven-sal aiven-sal deleted the aiven-sal/support3.13 branch November 27, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants