From e663ea7a1cfb44316e1d3dcfcf4961907ab05f56 Mon Sep 17 00:00:00 2001 From: Amir Mujacic Date: Thu, 27 Nov 2025 15:20:20 +0100 Subject: [PATCH 1/2] fix(playstation): Show warning when connection is good, but no errors --- src/sentry/tempest/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sentry/tempest/tasks.py b/src/sentry/tempest/tasks.py index e2c4bcb07b31d6..3fce38c2d69f7b 100644 --- a/src/sentry/tempest/tasks.py +++ b/src/sentry/tempest/tasks.py @@ -71,8 +71,8 @@ def fetch_latest_item_id(credentials_id: int, **kwargs) -> None: if result["latest_id"] is None: # If there are no crashes in the CRS we want to communicate that back to the # customer so that they are not surprised about no crashes arriving. - credentials.message = "No crashes found" - credentials.message_type = MessageType.ERROR + credentials.message = "Connection successful. No crashes found in the crash report system yet. New crashes will appear here automatically when they occur." + credentials.message_type = MessageType.WARNING credentials.save(update_fields=["message", "message_type"]) return else: From f46b580d8f17c32e78f18b73f972eb749e166f12 Mon Sep 17 00:00:00 2001 From: Amir Mujacic Date: Thu, 27 Nov 2025 15:32:01 +0100 Subject: [PATCH 2/2] Fix tests --- tests/sentry/tempest/test_tempest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/sentry/tempest/test_tempest.py b/tests/sentry/tempest/test_tempest.py index 76bfd0daf34a12..3e4309dc132563 100644 --- a/tests/sentry/tempest/test_tempest.py +++ b/tests/sentry/tempest/test_tempest.py @@ -33,8 +33,11 @@ def test_fetch_latest_item_id_task_no_id(self, mock_fetch: MagicMock) -> None: fetch_latest_item_id(self.credentials.id) self.credentials.refresh_from_db() - assert self.credentials.message == "No crashes found" - assert self.credentials.message_type == MessageType.ERROR + assert ( + self.credentials.message + == "Connection successful. No crashes found in the crash report system yet. New crashes will appear here automatically when they occur." + ) + assert self.credentials.message_type == MessageType.WARNING assert self.credentials.latest_fetched_item_id is None @patch("sentry.tempest.tasks.fetch_latest_id_from_tempest")