- Notifications
You must be signed in to change notification settings - Fork830
starlette: Remove maximum version constraint#3456
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
… unit tests. Fixed some warnings in unit tests.
linux-foundation-easyclabot commentedApr 29, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
MattiasDC commentedApr 29, 2025
MattiasDC commentedApr 29, 2025
@aabmass could you review as well and are you able to upgrade the requirements? I'm not comfortable enough to update the lockfiles. |
instrumentation/opentelemetry-instrumentation-starlette/tests/test_starlette_instrumentation.py OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...entelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette/package.pyShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
…trap/test-requirements. Use setUp/tearDown iso decorator on test class
Kludex commentedMay 2, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
We should test the min version. |
MattiasDC commentedMay 2, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hi@Kludex thanks for joining, Do you mean something else than this test: |
MattiasDC commentedMay 2, 2025
@Kludex those oldest tests were indeed failing. I've increased the minimal version to 0.37.2. This one is a year old and didn't cause any problems with me. Is this acceptable? Older versions were causing this issue for meKludex/starlette#2770 |
This reverts commit08df2be.
MattiasDC commentedMay 4, 2025
PR is ready to be reviewed again@emdneto, if anything needs a change, feel free to put me to work again ;) |
Uh oh!
There was an error while loading.Please reload this page.
instrumentation/opentelemetry-instrumentation-starlette/test-requirements.oldest.txt OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
instrumentation/opentelemetry-instrumentation-starlette/test-requirements.oldest.txt OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
xrmx commentedMay 5, 2025
That maybe be fixed by using an older httpx in the requirements. |
MattiasDC commentedMay 6, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Conditional dependencies are not supported in |
…-contrib into issue/3317
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
xrmx left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
With the changelog fixed
instrumentation/opentelemetry-instrumentation-starlette/tests/test_starlette_instrumentation.pyShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
e2ba6d4 intoopen-telemetry:mainUh oh!
There was an error while loading.Please reload this page.
Kludex commentedMay 23, 2025
I know this is not the right place, so please don't ask me to create an issue... But can't we somehow modify the starlette instrumentation to work with FastAPI and just have one instead of 2? It's a subclass anyway, and it seems it covers the same points. Happy to talk or hack this at PyCon IT (cc@xrmx) |
xrmx commentedMay 23, 2025
Sure, we can discuss it at PyCon IT. |
…58b0 (#524)This PR updates the upstream OpenTelemetry Python dependency to itsSeptember 2025 release; Upgrading from version 1.33.1/0.54b1 to1.37.0/0.58b0.It also resolves several conflicts between the following OTel PRs andexisting ADOT patches:starlette: Remove maximum version constraintopen-telemetry/opentelemetry-python-contrib#3456Make a BatchProcessor class which both BatchSpanRecordProcessor andBatchLogRecordProcessor can useopen-telemetry/opentelemetry-python#4562Make exporter timeout encompass retries/backoffs, add jitter tobackoffs, cleanup code a bitopen-telemetry/opentelemetry-python#4564Update BatchSpanProcessor to use new BatchProcessor classopen-telemetry/opentelemetry-python#4580Fix issue where deadlock can occur over logging._lockopen-telemetry/opentelemetry-python#4636Tests Performedtox -e linttox -e spellchecktox -e 3.9-test-aws-opentelemetry-distrotox -e 3.10-test-aws-opentelemetry-distrotox -e 3.11-test-aws-opentelemetry-distrotox -e 3.12-test-aws-opentelemetry-distrotox -e 3.13-test-aws-opentelemetry-distroSmoke/contract tests: ./gradlewappsignals-tests:contract-tests:contractTestsBy submitting this pull request, I confirm that you can use, modify,copy, and redistribute this contribution, under the terms of yourchoice.
Uh oh!
There was an error while loading.Please reload this page.
Description
Remove maximum version constraint on starlette, by fixing unit tests. Fixed some warnings in unit tests.
Problem was that the environment was patched only during the
setUpexecution, and not during the tests themselves. By putting the patch decorator on the class itself, the environment variables are patched during the test class, as is done in another place in the same file.This PR also includes some small changes to reduce the amount of warnings encountered in the unit tests.
routeandroute_websocketdecoratorsStarletteInstrumentor._uninstrumentcan clear all instrumented apps, use adiscardi.s.o.removein the deletor of_InstrumentedStarletteto prevent aKeyErrorbeing raisedFixes#3317
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
All existing unit tests pass with the newest version of starlette (0.46.2)
Does This PR Require a Core Repo Change?
Checklist:
Seecontributing.md for styleguide, changelog guidelines, and more.