-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
twisted tests failing on main on github actions with Python 3.12.1 #12052
Comments
@adiroiban ICYMI I am not going to have time to look at this until next week at the earliest, and probably more like early January, so just wanted to poke someone else, as it seems annoyingly serious |
Thanks Alex for the report. I can see that this job run was first succesull, and after a retry it's now failing https://github.com/twisted/twisted/actions/runs/7073299930/job/19658904212 This looks Python 3.12 only... at least for Linux. We don't run Python 3.12 tests on macOS and Windows. I will try to trigger a Python 3.12 run for macOS and Windows to see where we stand. |
Same error is present on Windows on Python 3.12.1 on Windows. I can see the test pass on CPython 3.12.0 and fails on CPython 3.12.1 |
With 3.12.0 all tests pass, even Windows and MacOS. I got 3.12.1 installed on my laptop and I will try to reproduce this and see if there is an easy fix So far not much progress
|
This issue is not resolved, see: pyca/cryptography#10007 |
Thanks, we'll continue to investigate |
Twisted The ugly part is that I got 3.12.1 on my laptop from I will try to get txmate enabled on our CI and try to run with GitHub Actions software |
On 3.12.1 I was able to reproduce an error for this test that works on 3.11 ... so I got something
and a quick fix is diff --git a/src/twisted/plugins/cred_sshkeys.py b/src/twisted/plugins/cred_sshkeys.py
index 8b7326b258..77dff769e5 100644
--- a/src/twisted/plugins/cred_sshkeys.py
+++ b/src/twisted/plugins/cred_sshkeys.py
@@ -18,6 +18,7 @@ This allows SSH public key authentication, based on public keys listed in
authorized_keys and authorized_keys2 files in user .ssh/ directories.
"""
+theSSHKeyCheckerFactory = None
try:
from twisted.conch.checkers import SSHPublicKeyChecker, UNIXAuthorizedKeysFiles
Might be some kind of optimization |
Somehow
|
I found the source of this error. New PR waiting for review This is caused by python/cpython@8fc0713#diff-c6fe1ffe930def48a6adf1fa99b974737bac586fdacccacd1474e7b2f11370ebL609 In 3.12.0 start test was called even for tests that are skipped. Now in 3.12.0, start test is only called for tests that are not skipped. |
This seems like quite an unfortunate change for CPython to make in a point release. It's grossly incompatible with long-established behavior when the release should only be delivering bug fixes. |
Thanks @adiroiban for doing the investigation. Re: @exarkun's comment:
Yes, this seems like a fairly overt violation of semver. Not sure if we can get a fix rolled out in a time frame sufficient to mean we don't need to start adding workarounds, though :-|. |
In the past few days, pyca/cryptography's downstream running on twisted's tests have begun failing with:
Example CI run: https://github.com/pyca/cryptography/actions/runs/7194931288/job/19596527447
This appears to be correlated with a github actions CI image update: actions/runner-images@e6f1047
The text was updated successfully, but these errors were encountered: