Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testsuite compatibility with python 3.13 #143

Closed
wants to merge 5 commits into from

Conversation

adrien-n
Copy link

@adrien-n adrien-n commented Jan 8, 2025

Breezy FTBFS in Ubuntu plucky due to tests, following the switch to python 3.13. This is a set of changes to solve that, plus a couple misc improvements.

The FTBFS was caused by two changes in python 3.13:

Python 3.13 has started requiring the authorityKeyIdentifier field as per
python/cpython#107361 . After iterating a bit,
it appears that we only need to pass "-addext keyUsage=keyCertSign" to
openssl during CA certificate creation and the server certificate will have
the proper field.

It's also possible to use something like `trustme` to generate the
certificates but that would have been a much larger change and more work
(maybe leading to most of the script being dropped however).
While this is not a security concern since this is for a test CA, this is
future-proofing: DES3 is outdated and it is not impossible that it this
usage does not become possible anymore in the future.
@adrien-n adrien-n changed the title Compatibility with python 3.13 Testsuite compatibility with python 3.13 Jan 8, 2025
@jelmer
Copy link
Member

jelmer commented Jan 8, 2025

Hi, please submit this on Launchpad (https://launchpad.net/brz) - breezy doesn't use GitHub for merging changes.

@adrien-n
Copy link
Author

adrien-n commented Jan 8, 2025

Done: https://code.launchpad.net/~adrien/brz/brz/+merge/479089 .

(my first PR/MR using bzr/brz)

@adrien-n adrien-n closed this Jan 8, 2025
@jelmer
Copy link
Member

jelmer commented Jan 9, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants