sentry icon indicating copy to clipboard operation
sentry copied to clipboard

fix(flaky-trace-view-acceptance-test): Adding teardown disconnecting django.db connections

Open Abdkhan14 opened this issue 1 month ago • 1 comments

From the logs in these CI failures: https://github.com/getsentry/sentry/actions/runs/19441373608/job/55625251336 The db connections from the tests are leaking to the next tests in the queue

Added a teardown that closes all connections. Couldn't reproduce a failure though

Abdkhan14 avatar Nov 18 '25 18:11 Abdkhan14

:x: 1 Tests Failed:

Tests completed Failed Passed Skipped
29772 1 29771 242
View the top 1 failed test(s) by shortest run time
tests.sentry.api.test_api_owners.APIOwnersTestCase::test_api_owner_is_a_valid_code_owner
Stack Traces | 0.048s run time
#x1B[1m#x1B[.../sentry/api/test_api_owners.py#x1B[0m:22: in test_api_owner_is_a_valid_code_owner
    assert owner.value in self.teams
#x1B[1m#x1B[31mE   AssertionError: assert 'visibility' in {'alerts-create-issues', 'alerts-notifications', 'codecov', 'crons', 'dashboards', 'data', ...}#x1B[0m
#x1B[1m#x1B[31mE    +  where 'visibility' = <ApiOwner.VISIBILITY: 'visibility'>.value#x1B[0m
#x1B[1m#x1B[31mE    +  and   {'alerts-create-issues', 'alerts-notifications', 'codecov', 'crons', 'dashboards', 'data', ...} = <tests.sentry.api.test_api_owners.APIOwnersTestCase testMethod=test_api_owner_is_a_valid_code_owner>.teams#x1B[0m

To view more test analytics, go to the Test Analytics Dashboard 📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

codecov[bot] avatar Nov 18 '25 19:11 codecov[bot]