-
Notifications
You must be signed in to change notification settings - Fork 657
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
Test failure in opentelemetry-sdk on Python 3.12 #3370
Comments
I have confirmed a similar error with 93992ce, except that the failing test is |
I have followed the above steps exactly on Py3.11.4 on a Windows machine and cannot reproduce the issue. @musicinmybrain are you still getting the same errors? |
I just repeated the steps (still on Fedora 38, Note that this issue is specific to Python 3.12, so failure to reproduce on 3.11.4 is consistent with what I see. (I used 3.11.4 as a “control” to confirm that this appeared to be a 3.12 regression rather than a pre-existing problem.) |
Interesting, we don't officially support Python 3.12 yet but am curious as to what sort of behavior is causing this error. |
This still reproduces with unbounded recursion using https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.20.0 and Python 3.12.0rc2. In addition, |
@lzchen is there a target version for Python 3.12 support? |
Not as of today no. We will discuss adding support in the next SIG meeting. |
@musicinmybrain we'll be dropping support for 3.7 in 5 weeks when 3.7 is out of support. When that happens we'll begin working on supporting 3.12. |
The reason for the failing test is the newly added Adding |
Fixes open-telemetry#3370. This fix was suggested by @mariojonke in open-telemetry#3370 (comment).
Thank you for this excellent analysis. I’ve used your suggestion to open a PR, #3557, to fix the immediate issue. I didn’t try to add any kind of attribute validity check. |
It seems this new attribute can completely break logging: #3560 |
Fixes open-telemetry#3370. This fix was suggested by @mariojonke in open-telemetry#3370 (comment).
Describe your environment
Running in a fresh checkout of
main
, 3f459d3, on Fedora Linux 38, x86_64, withpython3.11 -VV
=Python 3.11.4 (main, Jun 7 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)]
python3.12 -VV
=Python 3.12.0b3 (main, Jun 21 2023, 00:00:00) [GCC 13.1.1 20230614 (Red Hat 13.1.1-4)]
This should be platform-independent.
Steps to reproduce
The version pins in
dev-requirements.txt
cause a lot of problems when trying to test with Python 3.12. We will bypass them all and test withouttox
.What is the expected behavior?
If you repeat the above with
python3.11
instead ofpython3.12
, or runtox -e py311-opentelemetry-sdk
:(lots of output,
DeprecationWarnings
, so on)What is the actual behavior?
Additional context
We first encountered this in the Python 3.12 mass rebuild in Fedora Linux in preparation for the release of Fedora 39 this fall. Downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=2220378
I plan to skip this test in the Fedora Linux package for now; I don’t expect to spend more time looking for the root cause.
The text was updated successfully, but these errors were encountered: