You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tests for #6844 failed due to client leakage between tests. Close the client so that background threads and batchers are cleaned up in tests relying on sentry_init().
Issues
Reminders
Please add tests to validate your changes, and lint your code using uv run ruff.
File:tests.tracing.test_misc Suite:py3.10-gevent Error: assert 3 == 0
+ where 3 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:336: in test_circular_references
assert gc.collect() == 0
E assert 3 == 0
E + where 3 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references_span_streaming
File:tests.tracing.test_misc Suite:py3.10-gevent Error: assert 3 == 0
+ where 3 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:379: in test_circular_references_span_streaming
assert gc.collect() == 0
E assert 3 == 0
E + where 3 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references
File:tests.tracing.test_misc Suite:py3.11-common Error: assert 2 == 0
+ where 2 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:336: in test_circular_references
assert gc.collect() == 0
E assert 2 == 0
E + where 2 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references_span_streaming
File:tests.tracing.test_misc Suite:py3.11-common Error: assert 4 == 0
+ where 4 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:379: in test_circular_references_span_streaming
assert gc.collect() == 0
E assert 4 == 0
E + where 4 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references
File:tests.tracing.test_misc Suite:py3.11-gevent Error: assert 4 == 0
+ where 4 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:336: in test_circular_references
assert gc.collect() == 0
E assert 4 == 0
E + where 4 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references_span_streaming
File:tests.tracing.test_misc Suite:py3.11-gevent Error: assert 4 == 0
+ where 4 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:379: in test_circular_references_span_streaming
assert gc.collect() == 0
E assert 4 == 0
E + where 4 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references
File:tests.tracing.test_misc Suite:py3.12-common Error: assert 2 == 0
+ where 2 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:336: in test_circular_references
assert gc.collect() == 0
E assert 2 == 0
E + where 2 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references_span_streaming
File:tests.tracing.test_misc Suite:py3.12-common Error: assert 2 == 0
+ where 2 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:379: in test_circular_references_span_streaming
assert gc.collect() == 0
E assert 2 == 0
E + where 2 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references_span_streaming
File:tests.tracing.test_misc Suite:py3.12-gevent Error: assert 4 == 0
+ where 4 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:379: in test_circular_references_span_streaming
assert gc.collect() == 0
E assert 4 == 0
E + where 4 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references_span_streaming
File:tests.tracing.test_misc Suite:py3.13-common Error: assert 2 == 0
+ where 2 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:379: in test_circular_references_span_streaming
assert gc.collect() == 0
E assert 2 == 0
E + where 2 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references
File:tests.tracing.test_misc Suite:py3.14t-common Error: assert 4 == 0
+ where 4 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:336: in test_circular_references
assert gc.collect() == 0
E assert 4 == 0
E + where 4 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references_span_streaming
File:tests.tracing.test_misc Suite:py3.14t-common Error: assert 2 == 0
+ where 2 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:379: in test_circular_references_span_streaming
assert gc.collect() == 0
E assert 2 == 0
E + where 2 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
tests/tracing/test_misc.py:379: in test_circular_references_span_streaming
assert gc.collect() == 0
E assert 3 == 0
E +3
E -0
test_circular_references
File:tests.tracing.test_misc Suite:py3.8-common Error: assert 3 == 0
+ where 3 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:336: in test_circular_references
assert gc.collect() == 0
E assert 3 == 0
E + where 3 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
test_circular_references
File:tests.tracing.test_misc Suite:py3.9-common Error: assert 3 == 0
+ where 3 = ()
+ where = gc.collect
Stack Trace
tests/tracing/test_misc.py:336: in test_circular_references
assert gc.collect() == 0
E assert 3 == 0
E + where 3 = <built-in function collect>()
E + where <built-in function collect> = gc.collect
✅ Patch coverage is 100.00%. Project has 2475 uncovered lines.
✅ Project coverage is 89.69%. Comparing base (base) to head (head).
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
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.
Description
The tests for #6844 failed due to client leakage between tests. Close the client so that background threads and batchers are cleaned up in tests relying on
sentry_init().Issues
Reminders
uv run ruff.feat:,fix:,ref:,meta:)