-
Type:
Build Failure
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Name of Failure:
test-ocsp-ecdsa-delegate-invalid-cert-server-does-not-staple-v5.0-python3.10-min-deps on variant ocsp-rhel8 fails two tests: test_mlkem768_fails_closed and test_mlkem1024_fails_closed in test/test_ocsp_support.py.
Link to task:
Context of when and why the failure occurred:
Both tests call MLKEM768PrivateKey.generate() / MLKEM1024PrivateKey.generate() to build a real key. The min-deps job resolves cryptography==47.0.0 through --resolution=lowest-direct, and that build's OpenSSL does not support ML-KEM, so generate() raises before the test reaches _verify_signature's fail-closed branch.
This is a new regression, not a flake. Task history for this task and variant shows the last passing revision was 5a49944cf9 and the first failing revision was 8ce629a5af, both on 2026-08-17. 8ce629a5af is the merge of PR #2996 (PYTHON-6032), which added these two tests. Every run since has failed on every min-deps OCSP staple/does-not-staple task; 28-day reliability for this task is 2 successes out of 35 runs.
PYTHON-6032 (Closed, Fixed) added these tests to prove _verify_signature returns 0 for ML-KEM keys instead of raising AttributeError. It did not account for the min-deps cryptography build lacking ML-KEM support entirely, so the regression tests it added cannot run there.
Stack trace:
E cryptography.exceptions.UnsupportedAlgorithm: ML-KEM-768 is not supported by this backend. FAILED test/test_ocsp_support.py::TestVerifySignature::test_mlkem1024_fails_closed - cryptography.exceptions.UnsupportedAlgorithm: ML-KEM-1024 is not supported by this backend. FAILED test/test_ocsp_support.py::TestVerifySignature::test_mlkem768_fails_closed - cryptography.exceptions.UnsupportedAlgorithm: ML-KEM-768 is not supported by this backend. ================ 2 failed, 60 passed, 9097 deselected in 26.89s ================
- causes
-
PYTHON-6032 OCSP signature verification raises AttributeError on ML-KEM public keys
-
- Closed
-