Skip to content

Skip flaky test: test_referrer_validate_base_enum_values #93982

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

devinfra-flakiness[bot]
Copy link
Contributor

@devinfra-flakiness devinfra-flakiness bot commented Jun 20, 2025

@devinfra-flakiness devinfra-flakiness bot added Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests system:flakiness labels Jun 20, 2025
@github-actions github-actions bot removed the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Jun 20, 2025
@joshuarli joshuarli requested a review from a team June 24, 2025 22:49
@joshuarli
Copy link
Member

@getsentry/sns please approve

@untitaker
Copy link
Member

this does not seem to be a flake within the test but rather a neigboring test breaking this one.

_____________ ReferrerTest.test_referrer_validate_base_enum_values _____________
src/sentry/db/postgres/decorators.py:91: in inner
    return func(self, sql, *args, **kwargs)
src/sentry/db/postgres/base.py:85: in execute
    return self.cursor.execute(sql)
E   psycopg2.errors.ObjectInUse: database "test_region" is being accessed by other users
E   DETAIL:  There is 1 other session using the database.

During handling of the above exception, another exception occurred:
.venv/lib/python3.13/site-packages/django/db/backends/utils.py:103: in _execute
    return self.cursor.execute(sql)
src/sentry/db/postgres/decorators.py:77: in inner
    raise_the_exception(self.db, e)
src/sentry/db/postgres/decorators.py:75: in inner
    return func(self, *args, **kwargs)
src/sentry/db/postgres/decorators.py:18: in inner
    return func(self, *args, **kwargs)
src/sentry/db/postgres/decorators.py:93: in inner
    raise type(e)(f"{e!r}\nSQL: {sql}").with_traceback(e.__traceback__)
src/sentry/db/postgres/decorators.py:91: in inner
    return func(self, sql, *args, **kwargs)
src/sentry/db/postgres/base.py:85: in execute
    return self.cursor.execute(sql)
E   psycopg2.errors.ObjectInUse: ObjectInUse('database "test_region" is being accessed by other users\nDETAIL:  There is 1 other session using the database.\n')
E   SQL: DROP DATABASE "test_region"

i have seen this randomly appear in other tests too.

@joshuarli
Copy link
Member

this does not seem to be a flake within the test but rather a neigboring test breaking this one.

_____________ ReferrerTest.test_referrer_validate_base_enum_values _____________
src/sentry/db/postgres/decorators.py:91: in inner
    return func(self, sql, *args, **kwargs)
src/sentry/db/postgres/base.py:85: in execute
    return self.cursor.execute(sql)
E   psycopg2.errors.ObjectInUse: database "test_region" is being accessed by other users
E   DETAIL:  There is 1 other session using the database.

During handling of the above exception, another exception occurred:
.venv/lib/python3.13/site-packages/django/db/backends/utils.py:103: in _execute
    return self.cursor.execute(sql)
src/sentry/db/postgres/decorators.py:77: in inner
    raise_the_exception(self.db, e)
src/sentry/db/postgres/decorators.py:75: in inner
    return func(self, *args, **kwargs)
src/sentry/db/postgres/decorators.py:18: in inner
    return func(self, *args, **kwargs)
src/sentry/db/postgres/decorators.py:93: in inner
    raise type(e)(f"{e!r}\nSQL: {sql}").with_traceback(e.__traceback__)
src/sentry/db/postgres/decorators.py:91: in inner
    return func(self, sql, *args, **kwargs)
src/sentry/db/postgres/base.py:85: in execute
    return self.cursor.execute(sql)
E   psycopg2.errors.ObjectInUse: ObjectInUse('database "test_region" is being accessed by other users\nDETAIL:  There is 1 other session using the database.\n')
E   SQL: DROP DATABASE "test_region"

i have seen this randomly appear in other tests too.

Ah we're already tracking this here: https://linear.app/getsentry/issue/DI-1008/flakiness-database-test-region-is-being-accessed-by-other-users

Thanks, don't worry about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants