getsentry / sentry-python

The official Python SDK for Sentry.io
https://sentry.io/for/python/
MIT License
1.93k stars 509 forks source link

Fix asyncio tests #3811

Closed sl0thentr0py closed 21 hours ago

codecov[bot] commented 21 hours ago

:x: 615 Tests Failed:

Tests completed Failed Passed Skipped
19684 615 19069 4424
View the top 2 failed tests by shortest run time > > ```python > tests.integrations.opentelemetry.test_span_processor test_on_start_transaction > ``` > >
Stack Traces | 0.001s run time > > > > > ```python > > .../integrations/opentelemetry/test_span_processor.py:289: in test_on_start_transaction > > fake_start_transaction, > > .../hostedtoolcache/Python/3.7.17....../x64/lib/python3.7/unittest/mock.py:1307: in __enter__ > > original, local = self.get_original() > > .../hostedtoolcache/Python/3.7.17....../x64/lib/python3.7/unittest/mock.py:1281: in get_original > > "%s does not have the attribute %r" % (target, name) > > E AttributeError: does not have the attribute 'start_transaction' > > ``` > >
tests.integrations.opentelemetry.test_span_processor test_on_start_transaction
Stack Traces | 0.002s run time > > ```python > .../integrations/opentelemetry/test_span_processor.py:287: in test_on_start_transaction > with mock.patch( > .../hostedtoolcache/Python/3.12.7....../x64/lib/python3.12/unittest/mock.py:1463: in __enter__ > original, local = self.get_original() > .../hostedtoolcache/Python/3.12.7....../x64/lib/python3.12/unittest/mock.py:1436: in get_original > raise AttributeError( > E AttributeError: does not have the attribute 'start_transaction' > ```

View the full list of 1 :snowflake: flaky tests > > ```python > tests.integrations.opentelemetry.test_span_processor test_on_start_transaction > ``` > > **Flake rate in main:** 78.95% (Passed 4 times, Failed 15 times) >
Stack Traces | 0.001s run time > > > > > ```python > > .../integrations/opentelemetry/test_span_processor.py:289: in test_on_start_transaction > > fake_start_transaction, > > .../hostedtoolcache/Python/3.7.17....../x64/lib/python3.7/unittest/mock.py:1307: in __enter__ > > original, local = self.get_original() > > .../hostedtoolcache/Python/3.7.17....../x64/lib/python3.7/unittest/mock.py:1281: in get_original > > "%s does not have the attribute %r" % (target, name) > > E AttributeError: does not have the attribute 'start_transaction' > > ``` > >

To view more test analytics, go to the Test Analytics Dashboard Got feedback? Let us know on Github