feat: Add Python 3.15 to test matrix - #7326
Merged
Merged
Conversation
Contributor
Author
|
While testing manually, I encountered the issue first pointed out here. Opened an httpcore discussion for it. Looking into a workaround or at least a way to fail gracefully if httpcore is installed for now. |
Contributor
Codecov Results 📊✅ 130404 passed | ⏭️ 7110 skipped | Total: 137514 | Pass Rate: 94.83% | Execution Time: 471m 19s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2498 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
- Coverage 90.27% 90.26% -0.01%
==========================================
Files 193 193 —
Lines 25649 25649 —
Branches 9454 9454 —
==========================================
+ Hits 23153 23151 -2
- Misses 2496 2498 +2
- Partials 1443 1445 +2Generated by Codecov Action |
sentrivana
marked this pull request as ready for review
September 2, 2026 09:11
alexander-alderman-webb
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Lazy imports
Tried manually testing with a lazy import of
sentry_sdk, looked ok.PYTHON_LAZY_IMPORTS=allGuarding the optional
httpcoreimport with an additionalAttributeErrornow, sincehttpcoredoesn't work withPYTHON_LAZY_IMPORTS=all.Notified other frameworks/libraries:
Other libraries/frameworks that are problematic under
PYTHON_LAZY_IMPORTS=allbut already have a tracking issue for 3.15 support:Caveat: It's not 100% clear to me whether this forcing of
PYTHON_LAZY_IMPORTS=allis something libraries are supposed to support, see also https://peps.python.org/pep-0810/#global-lazy-imports-control. Probably fine to wait for the ecosystem to stabilize a bit here, rather than patching everything to be ready on day one.2. CI
Marked some test suites as not python 3.15 ready yet:
langgraph,cohere: fail to install on 3.15statsig: hangs on 3.15otlp/otel: hangs on 3.15integration_deactivation: fails to install on 3.153. Misc
Ran the common test suite with
PYTHON_LAZY_IMPORTS=all. Everything looked fine.Issues
Closes https://linear.app/getsentry/issue/PY-2649/test-with-python-315
Closes https://linear.app/getsentry/issue/PY-2651/declare-support-for-315