sentry icon indicating copy to clipboard operation
sentry copied to clipboard

chore(issues): Backfill IGNORED groups with missing substatuses

Open snigdhas opened this issue 1 year ago • 2 comments

snigdhas avatar Aug 09 '24 23:08 snigdhas

This PR has a migration; here is the generated SQL for src/sentry/migrations/0748_fix_substatus_for_ignored_groups.py ()

--
-- Raw Python operation
--
-- THIS OPERATION CANNOT BE WRITTEN AS SQL

github-actions[bot] avatar Aug 09 '24 23:08 github-actions[bot]

Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time.

:x: Failed Test Results:

Completed 3898 tests with 1 failed, 3814 passed and 83 skipped.

View the full list of failed tests

pytest

  • Class name: tests.sentry.migrations.test_0748_fix_substatus_for_ignored_groups.FixSubstatusForIgnoreedGroupsTest
    Test name: test Flags:
    • backend

    #x1B[1m#x1B[.../sentry/migrations/test_0748_fix_substatus_for_ignored_groups.py#x1B[0m:14: in setup_before_migration
    self.organization = self.create_organization()
    #x1B[1m#x1B[.../sentry/testutils/fixtures.py#x1B[0m:138: in create_organization
    return Factories.create_organization(*args, **kwargs)
    #x1B[1m#x1B[.../hostedtoolcache/Python/3.11.8.../x64/lib/python3.11/contextlib.py#x1B[0m:81: in inner
    return func(*args, **kwds)
    #x1B[1m#x1B[.../sentry/testutils/factories.py#x1B[0m:359: in create_organization
    org.handle_async_replication(org.id)
    #x1B[1m#x1B[.../sentry/models/organization.py#x1B[0m:275: in handle_async_replication
    organization_mapping_service.upsert(organization_id=self.id, update=update)
    #x1B[1m#x1B[.../hybridcloud/rpc/service.py#x1B[0m:354: in remote_method
    return dispatch_remote_call(
    #x1B[1m#x1B[.../hybridcloud/rpc/service.py#x1B[0m:476: in dispatch_remote_call
    return remote_silo_call.dispatch(use_test_client)
    #x1B[1m#x1B[.../hybridcloud/rpc/service.py#x1B[0m:511: in dispatch
    serial_response = self._send_to_remote_silo(use_test_client)
    #x1B[1m#x1B[.../hybridcloud/rpc/service.py#x1B[0m:582: in _send_to_remote_silo
    self._raise_from_response_status_error(response)
    #x1B[1m#x1B[.../hybridcloud/rpc/service.py#x1B[0m:605: in _raise_from_response_status_error
    raise self._remote_exception(
    #x1B[1m#x1B[31mE sentry.hybridcloud.rpc.service.RpcRemoteException: organization_mapping.upsert: Error invoking rpc at '.../rpc/organization_mapping/upsert/': check error logs for more details#x1B[0m

codecov[bot] avatar Aug 09 '24 23:08 codecov[bot]