Skip to content

ref(cells): Update region_name to cell_name in process_control_outbox signature#111571

Merged
lynnagara merged 6 commits into
masterfrom
update-receiver-signature
Mar 27, 2026
Merged

ref(cells): Update region_name to cell_name in process_control_outbox signature#111571
lynnagara merged 6 commits into
masterfrom
update-receiver-signature

Conversation

@lynnagara
Copy link
Copy Markdown
Member

No description provided.

@lynnagara lynnagara requested a review from a team March 25, 2026 21:29
@lynnagara lynnagara requested review from a team as code owners March 25, 2026 21:29
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 25, 2026
Comment thread src/sentry/hybridcloud/models/outbox.py
payload=self.payload,
region_name=self.cell_name,
cell_name=self.cell_name,
object_identifier=self.object_identifier,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Signal receivers process_provision_organization_outbox and update_organization_slug_reservation were not updated to accept cell_name instead of region_name, which will cause a TypeError.
Severity: CRITICAL

Suggested Fix

Update the function signatures for process_provision_organization_outbox and update_organization_slug_reservation in src/sentry/services/organization/provisioning.py. The region_name: str parameter should be changed to cell_name: str to match the updated signal.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: src/sentry/hybridcloud/models/outbox.py#L478

Potential issue: The `process_control_outbox` signal was updated to send a `cell_name`
keyword argument instead of `region_name`. However, two signal receivers,
`process_provision_organization_outbox` and `update_organization_slug_reservation`, were
not updated to reflect this change. These functions still expect a `region_name`
argument. When an outbox message of type `PROVISION_ORGANIZATION` or
`ORGANIZATION_SLUG_RESERVATION_UPDATE` is processed, the signal dispatcher will call
these receivers without the required `region_name` argument, causing a `TypeError` and a
runtime crash.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bots are right. There are two receivers in services/organziation/provisioning.py that needs to be updated as well.

@github-actions
Copy link
Copy Markdown
Contributor

Backend Test Failures

Failures on 7cb36cb in this run:

tests/sentry/explore/migrations/test_0007_update_numeric_attrs_to_bools.py::UpdateNumericToBooleanTest::test_migrationlog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: OutboxCategory.connect_control_model_updates.<locals>.receiver() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/explore/migrations/test_0007_update_numeric_attrs_to_bools.py:16: in setup_before_migration
    span1 = self.create_span(start_ts=before_now(days=0, minutes=10))
src/sentry/testutils/cases.py:3315: in create_span
    organization = self.organization
.venv/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
    res = instance.__dict__[self.name] = self.func(instance)
src/sentry/testutils/fixtures.py:105: in organization
    return self.create_organization(name="baz", slug="baz", owner=self.user)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 25, 2026

Backend Test Failures

Failures on 3fbbd53 in this run:

tests/sentry/explore/migrations/test_0007_update_numeric_attrs_to_bools.py::UpdateNumericToBooleanTest::test_migrationlog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/explore/migrations/test_0007_update_numeric_attrs_to_bools.py:16: in setup_before_migration
    span1 = self.create_span(start_ts=before_now(days=0, minutes=10))
src/sentry/testutils/cases.py:3315: in create_span
    organization = self.organization
.venv/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
    res = instance.__dict__[self.name] = self.func(instance)
src/sentry/testutils/fixtures.py:105: in organization
    return self.create_organization(name="baz", slug="baz", owner=self.user)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_exhaustive.py::ExhaustiveTests::test_exhaustive_dirty_pkslog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_exhaustive.py:37: in test_exhaustive_dirty_pks
    self.create_exhaustive_instance(is_superadmin=True)
src/sentry/testutils/helpers/backups.py:947: in create_exhaustive_instance
    org = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_exhaustive.py::ExhaustiveTests::test_uniquenesslog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_exhaustive.py:43: in test_uniqueness
    self.create_exhaustive_instance(is_superadmin=True)
src/sentry/testutils/helpers/backups.py:947: in create_exhaustive_instance
    org = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_exports.py::ScopingTests::test_config_export_scopinglog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_exports.py:318: in test_config_export_scoping
    self.create_exhaustive_instance(is_superadmin=True)
src/sentry/testutils/helpers/backups.py:947: in create_exhaustive_instance
    org = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_exports.py::ScopingTests::test_global_export_scopinglog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_exports.py:388: in test_global_export_scoping
    self.create_exhaustive_instance(is_superadmin=True)
src/sentry/testutils/helpers/backups.py:947: in create_exhaustive_instance
    org = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_exports.py::ScopingTests::test_organization_export_scopinglog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_exports.py:252: in test_organization_export_scoping
    self.create_exhaustive_instance(is_superadmin=True)
src/sentry/testutils/helpers/backups.py:947: in create_exhaustive_instance
    org = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_exports.py::ScopingTests::test_user_export_scopinglog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_exports.py:188: in test_user_export_scoping
    self.create_exhaustive_instance(is_superadmin=True)
src/sentry/testutils/helpers/backups.py:947: in create_exhaustive_instance
    org = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_exports.py::FilteringTests::test_export_filter_orgs_emptylog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_exports.py:722: in test_export_filter_orgs_empty
    org_a = self.create_exhaustive_organization("org-a", a, a_b, [a_b_c])
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
    return old_run_and_clear_commit_hooks(*args, **kwargs)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:769: in run_and_clear_commit_hooks
... (14 more lines)
tests/sentry/backup/test_exports.py::FilteringTests::test_export_filter_orgs_multiplelog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_exports.py:630: in test_export_filter_orgs_multiple
    org_a = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
    return old_run_and_clear_commit_hooks(*args, **kwargs)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:769: in run_and_clear_commit_hooks
... (14 more lines)
tests/sentry/backup/test_exports.py::FilteringTests::test_export_filter_orgs_singlelog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_exports.py:544: in test_export_filter_orgs_single
    org_a = self.create_exhaustive_organization("org-a", a, a_b, [a_b_c])
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
    return old_run_and_clear_commit_hooks(*args, **kwargs)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:769: in run_and_clear_commit_hooks
... (14 more lines)
tests/sentry/backup/test_imports.py::SanitizationTests::test_generate_suffix_for_already_taken_organizationlog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:287: in test_generate_suffix_for_already_taken_organization
    self.create_organization(name="some-org", owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
    return old_run_and_clear_commit_hooks(*args, **kwargs)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:769: in run_and_clear_commit_hooks
    func()
src/sentry/hybridcloud/models/outbox.py:203: in <lambda>
    transaction.on_commit(lambda: self.drain_shard(), using=router.db_for_write(type(self)))
src/sentry/hybridcloud/models/outbox.py:367: in drain_shard
... (10 more lines)
tests/sentry/backup/test_imports.py::SanitizationTests::test_generate_suffix_for_already_taken_organization_with_control_optionlog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:343: in test_generate_suffix_for_already_taken_organization_with_control_option
    self.test_generate_suffix_for_already_taken_organization()
tests/sentry/backup/test_imports.py:287: in test_generate_suffix_for_already_taken_organization
    self.create_organization(name="some-org", owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
    return old_run_and_clear_commit_hooks(*args, **kwargs)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:769: in run_and_clear_commit_hooks
    func()
src/sentry/hybridcloud/models/outbox.py:203: in <lambda>
... (12 more lines)
tests/sentry/backup/test_imports.py::SanitizationTests::test_org_and_project_option_type_preservelog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:690: in test_org_and_project_option_type_preserve
    import_in_organization_scope(tmp_file, printer=NOOP_PRINTER)
src/sentry/backup/imports.py:609: in import_in_organization_scope
    return _import(
src/sentry/backup/imports.py:546: in _import
    resolve_org_slugs_from_pk_map(pk_map)
src/sentry/backup/imports.py:529: in resolve_org_slugs_from_pk_map
    organization_provisioning_service.bulk_create_organization_slugs(
src/sentry/services/organization/provisioning.py:152: in bulk_create_organization_slugs
    control_organization_provisioning_rpc_service.bulk_create_organization_slug_reservations(
src/sentry/hybridcloud/services/control_organization_provisioning/impl.py:294: in bulk_create_organization_slug_reservations
    with outbox_context(transaction.atomic(router.db_for_write(OrganizationSlugReservation))):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
    return old_run_and_clear_commit_hooks(*args, **kwargs)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:769: in run_and_clear_commit_hooks
    func()
src/sentry/hybridcloud/models/outbox.py:203: in <lambda>
    transaction.on_commit(lambda: self.drain_shard(), using=router.db_for_write(type(self)))
src/sentry/hybridcloud/models/outbox.py:367: in drain_shard
    processed = shard_row.process(is_synchronous_flush=not flush_all)
src/sentry/hybridcloud/models/outbox.py:331: in process
    raise OutboxFlushError(error_message, coalesced) from e
E   sentry.hybridcloud.models.outbox.OutboxFlushError: Could not flush shard category=27 (ORGANIZATION_SLUG_RESERVATION_UPDATE)
E   
E   NOTE: This error is the last in a chain. If you are seeing this while running tests, your real problem is likely the error causing this flush error:
... (4 more lines)
tests/sentry/backup/test_imports.py::SignalingTests::test_import_signaling_organizationlog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:731: in test_import_signaling_organization
    self.create_exhaustive_organization("some-org", owner, invited, [member])
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
    return old_run_and_clear_commit_hooks(*args, **kwargs)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:769: in run_and_clear_commit_hooks
... (14 more lines)
tests/sentry/backup/test_imports.py::SignalingTests::test_import_signaling_organization_with_control_provisioning_optionlog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:768: in test_import_signaling_organization_with_control_provisioning_option
    self.test_import_signaling_organization()
tests/sentry/backup/test_imports.py:731: in test_import_signaling_organization
    self.create_exhaustive_organization("some-org", owner, invited, [member])
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_imports.py::ScopingTests::test_config_import_scopinglog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:859: in test_config_import_scoping
    self.create_exhaustive_instance(is_superadmin=True)
src/sentry/testutils/helpers/backups.py:947: in create_exhaustive_instance
    org = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_imports.py::ScopingTests::test_global_import_scopinglog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:879: in test_global_import_scoping
    self.create_exhaustive_instance(is_superadmin=True)
src/sentry/testutils/helpers/backups.py:947: in create_exhaustive_instance
    org = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_imports.py::ScopingTests::test_organization_import_scopinglog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:839: in test_organization_import_scoping
    self.create_exhaustive_instance(is_superadmin=True)
src/sentry/testutils/helpers/backups.py:947: in create_exhaustive_instance
    org = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_imports.py::ScopingTests::test_user_import_scopinglog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:824: in test_user_import_scoping
    self.create_exhaustive_instance(is_superadmin=True)
src/sentry/testutils/helpers/backups.py:947: in create_exhaustive_instance
    org = self.create_exhaustive_organization(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
... (16 more lines)
tests/sentry/backup/test_imports.py::DatabaseResetTests::test_clears_existing_models_in_global_scopelog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:917: in test_clears_existing_models_in_global_scope
    create_default_projects()
src/sentry/receivers/core.py:45: in create_default_projects
    create_default_project(
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/receivers/core.py:101: in create_default_project
    organization_provisioning_service.change_organization_slug(
src/sentry/services/organization/provisioning.py:128: in change_organization_slug
    self._control_based_slug_change(organization_id=organization_id, slug=slug)
src/sentry/services/organization/provisioning.py:98: in _control_based_slug_change
    control_organization_provisioning_rpc_service.update_organization_slug(
src/sentry/hybridcloud/services/control_organization_provisioning/impl.py:213: in update_organization_slug
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.py:115: in enforce_constraints
    with transaction:
src/sentry/testutils/hybrid_cloud.py:225: in new_atomic_exit
    _old_atomic_exit(self, exc_type, *args, **kwds)
src/sentry/utils/db.py:67: in _exit
    rv = original_exit(self, exc_type, exc_value, traceback)
.venv/lib/python3.13/site-packages/django/db/transaction.py:307: in __exit__
    connection.set_autocommit(True)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:491: in set_autocommit
    self.run_and_clear_commit_hooks()
src/sentry/testutils/pytest/stale_database_reads.py:130: in run_and_clear_commit_hooks
    return old_run_and_clear_commit_hooks(*args, **kwargs)
.venv/lib/python3.13/site-packages/django/db/backends/base/base.py:769: in run_and_clear_commit_hooks
    func()
src/sentry/hybridcloud/models/outbox.py:203: in <lambda>
    transaction.on_commit(lambda: self.drain_shard(), using=router.db_for_write(type(self)))
src/sentry/hybridcloud/models/outbox.py:367: in drain_shard
    processed = shard_row.process(is_synchronous_flush=not flush_all)
src/sentry/hybridcloud/models/outbox.py:331: in process
    raise OutboxFlushError(error_message, coalesced) from e
E   sentry.hybridcloud.models.outbox.OutboxFlushError: Could not flush shard category=27 (ORGANIZATION_SLUG_RESERVATION_UPDATE)
... (6 more lines)
tests/sentry/backup/test_imports.py::DatabaseResetTests::test_persist_existing_models_in_config_scopelog
src/sentry/hybridcloud/models/outbox.py:313: in process
    coalesced.send_signal()
src/sentry/hybridcloud/models/outbox.py:474: in send_signal
    process_control_outbox.send(
.venv/lib/python3.13/site-packages/django/dispatch/dispatcher.py:189: in send
    response = receiver(signal=self, sender=sender, **named)
E   TypeError: update_organization_slug_reservation() missing 1 required positional argument: 'region_name'

The above exception was the direct cause of the following exception:
tests/sentry/backup/test_imports.py:960: in test_persist_existing_models_in_config_scope
    self.create_exhaustive_organization("neworg", owner, user, None)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/helpers/backups.py:445: in create_exhaustive_organization
    org = self.create_organization(name=slug, owner=owner)
src/sentry/testutils/fixtures.py:176: in create_organization
    return Factories.create_organization(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
src/sentry/testutils/factories.py:409: in create_organization
    ).save(unsafe_write=True)
src/sentry/silo/base.py:158: in override
    return original_method(*args, **kwargs)
src/sentry/models/organizationslugreservation.py:59: in save
    return super().save(*args, **kwds)
src/sentry/hybridcloud/outbox/base.py:258: in save
    with self._maybe_prepare_outboxes(outbox_before_super=False):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/outbox/base.py:238: in _maybe_prepare_outboxes
    with outbox_context(
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/hybridcloud/models/outbox.py:552: in outbox_context
    with unguarded_write(using=inner.using), enforce_constraints(inner):
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
src/sentry/db/postgres/transactions.

... (truncated due to GitHub comment size limit)

Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread src/sentry/services/organization/provisioning.py
payload=self.payload,
region_name=self.cell_name,
cell_name=self.cell_name,
object_identifier=self.object_identifier,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The update_organization_slug_reservation function was not updated to use cell_name after the process_control_outbox signal signature changed, causing a runtime TypeError.
Severity: CRITICAL

Suggested Fix

In src/sentry/services/organization/provisioning.py, update the signature of the update_organization_slug_reservation function to accept cell_name: str instead of region_name: str.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: src/sentry/hybridcloud/models/outbox.py#L478

Potential issue: The `process_control_outbox` signal was updated to rename the
`region_name` parameter to `cell_name`. While most signal receivers were updated
accordingly, the `update_organization_slug_reservation` function in
`src/sentry/services/organization/provisioning.py` was not. Its signature still expects
a `region_name` argument. When this signal is dispatched for an
`ORGANIZATION_SLUG_RESERVATION_UPDATE`, it will send `cell_name`, leading to a
`TypeError` because the required `region_name` argument is missing. This will cause the
outbox processing for organization slug reservation updates to fail at runtime.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 26, 2026

Backend Test Failures

Failures on ef3a866 in this run:

tests/sentry/receivers/outbox/test_control.py::ProcessControlOutboxTest::test_process_identity_updateslog
tests/sentry/receivers/outbox/test_control.py:32: in test_process_identity_updates
    process_identity_updates(object_identifier=self.identifier, region_name=_TEST_CELL.name)
E   TypeError: process_identity_updates() missing 1 required positional argument: 'cell_name'
tests/sentry/receivers/outbox/test_control.py::ProcessControlOutboxTest::test_process_integration_updateslog
tests/sentry/receivers/outbox/test_control.py:25: in test_process_integration_updates
    process_integration_updates(object_identifier=self.identifier, region_name=_TEST_CELL.name)
E   TypeError: process_integration_updates() missing 1 required positional argument: 'cell_name'
tests/sentry/receivers/outbox/test_control.py::ProcessControlOutboxTest::test_process_api_application_updateslog
tests/sentry/receivers/outbox/test_control.py:37: in test_process_api_application_updates
    process_api_application_updates(
E   TypeError: process_api_application_updates() missing 1 required positional argument: 'cell_name'
tests/sentry/receivers/outbox/test_control.py::ProcessControlOutboxTest::test_process_sentry_app_updateslog
tests/sentry/receivers/outbox/test_control.py:57: in test_process_sentry_app_updates
    process_sentry_app_updates(object_identifier=sentry_app.id, region_name=_TEST_CELL.name)
E   TypeError: process_sentry_app_updates() missing 1 required positional argument: 'cell_name'

@lynnagara lynnagara merged commit 6504972 into master Mar 27, 2026
105 of 106 checks passed
@lynnagara lynnagara deleted the update-receiver-signature branch March 27, 2026 19:09
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants