@@ -3418,7 +3418,7 @@ def test_crash_rate_alert_for_sessions_with_triggers_lower_than_resolve_threshol
3418
3418
)
3419
3419
self .assert_active_incident (rule )
3420
3420
3421
- @patch ("sentry.workflow_engine .process_update_helpers.metrics" )
3421
+ @patch ("sentry.incidents.utils .process_update_helpers.metrics" )
3422
3422
def test_crash_rate_alert_for_sessions_with_no_sessions_data (self , helper_metrics ):
3423
3423
"""
3424
3424
Test that ensures we skip the Crash Rate Alert processing if we have no sessions data
@@ -3441,8 +3441,8 @@ def test_crash_rate_alert_for_sessions_with_no_sessions_data(self, helper_metric
3441
3441
]
3442
3442
)
3443
3443
3444
- @patch ("sentry.workflow_engine .process_update_helpers.CRASH_RATE_ALERT_MINIMUM_THRESHOLD" , 30 )
3445
- @patch ("sentry.workflow_engine .process_update_helpers.metrics" )
3444
+ @patch ("sentry.incidents.utils .process_update_helpers.CRASH_RATE_ALERT_MINIMUM_THRESHOLD" , 30 )
3445
+ @patch ("sentry.incidents.utils .process_update_helpers.metrics" )
3446
3446
def test_crash_rate_alert_when_session_count_is_lower_than_minimum_threshold (
3447
3447
self , helper_metrics
3448
3448
):
@@ -3470,7 +3470,7 @@ def test_crash_rate_alert_when_session_count_is_lower_than_minimum_threshold(
3470
3470
]
3471
3471
)
3472
3472
3473
- @patch ("sentry.workflow_engine .process_update_helpers.CRASH_RATE_ALERT_MINIMUM_THRESHOLD" , 30 )
3473
+ @patch ("sentry.incidents.utils .process_update_helpers.CRASH_RATE_ALERT_MINIMUM_THRESHOLD" , 30 )
3474
3474
def test_crash_rate_alert_when_session_count_is_higher_than_minimum_threshold (self ):
3475
3475
rule = self .crash_rate_alert_rule
3476
3476
trigger = self .crash_rate_alert_critical_trigger
@@ -3489,7 +3489,7 @@ def test_crash_rate_alert_when_session_count_is_higher_than_minimum_threshold(se
3489
3489
self .assert_actions_fired_for_incident (incident , [action_critical ], None )
3490
3490
self .assert_trigger_exists_with_status (incident , trigger , TriggerStatus .ACTIVE )
3491
3491
3492
- @patch ("sentry.workflow_engine .process_update_helpers.metrics" )
3492
+ @patch ("sentry.incidents.utils .process_update_helpers.metrics" )
3493
3493
def test_multiple_threshold_trigger_is_reset_when_no_sessions_data (self , helper_metrics ):
3494
3494
rule = self .crash_rate_alert_rule
3495
3495
rule .update (threshold_period = 2 )
@@ -3528,8 +3528,8 @@ def test_multiple_threshold_trigger_is_reset_when_no_sessions_data(self, helper_
3528
3528
)
3529
3529
self .assert_trigger_counts (processor , trigger , 0 , 0 )
3530
3530
3531
- @patch ("sentry.workflow_engine .process_update_helpers.CRASH_RATE_ALERT_MINIMUM_THRESHOLD" , 30 )
3532
- @patch ("sentry.workflow_engine .process_update_helpers.metrics" )
3531
+ @patch ("sentry.incidents.utils .process_update_helpers.CRASH_RATE_ALERT_MINIMUM_THRESHOLD" , 30 )
3532
+ @patch ("sentry.incidents.utils .process_update_helpers.metrics" )
3533
3533
def test_multiple_threshold_trigger_is_reset_when_count_is_lower_than_min_threshold (
3534
3534
self , helper_metrics
3535
3535
):
@@ -3571,7 +3571,7 @@ def test_multiple_threshold_trigger_is_reset_when_count_is_lower_than_min_thresh
3571
3571
)
3572
3572
self .assert_trigger_counts (processor , trigger , 0 , 0 )
3573
3573
3574
- @patch ("sentry.workflow_engine .process_update_helpers.metrics" )
3574
+ @patch ("sentry.incidents.utils .process_update_helpers.metrics" )
3575
3575
def test_multiple_threshold_resolve_is_reset_when_no_sessions_data (self , helper_metrics ):
3576
3576
rule = self .crash_rate_alert_rule
3577
3577
trigger = self .crash_rate_alert_critical_trigger
@@ -3630,8 +3630,8 @@ def test_multiple_threshold_resolve_is_reset_when_no_sessions_data(self, helper_
3630
3630
self .assert_trigger_exists_with_status (incident , trigger , TriggerStatus .ACTIVE )
3631
3631
self .assert_action_handler_called_with_actions (incident , [])
3632
3632
3633
- @patch ("sentry.workflow_engine .process_update_helpers.CRASH_RATE_ALERT_MINIMUM_THRESHOLD" , 30 )
3634
- @patch ("sentry.workflow_engine .process_update_helpers.metrics" )
3633
+ @patch ("sentry.incidents.utils .process_update_helpers.CRASH_RATE_ALERT_MINIMUM_THRESHOLD" , 30 )
3634
+ @patch ("sentry.incidents.utils .process_update_helpers.metrics" )
3635
3635
def test_multiple_threshold_resolve_is_reset_when_count_is_lower_than_min_threshold (
3636
3636
self , helper_metrics
3637
3637
):
@@ -3690,7 +3690,7 @@ def test_multiple_threshold_resolve_is_reset_when_count_is_lower_than_min_thresh
3690
3690
self .assert_trigger_exists_with_status (incident , trigger , TriggerStatus .ACTIVE )
3691
3691
self .assert_action_handler_called_with_actions (incident , [])
3692
3692
3693
- @patch ("sentry.workflow_engine .process_update_helpers.metrics" )
3693
+ @patch ("sentry.incidents.utils .process_update_helpers.metrics" )
3694
3694
def test_ensure_case_when_no_metrics_index_not_found_is_handled_gracefully (
3695
3695
self , helper_metrics
3696
3696
):
0 commit comments