|
84 | 84 |
|
85 | 85 | INTEG_TEST_MONITORING_OUTPUT_BUCKET = "integ-test-monitoring-output-bucket" |
86 | 86 |
|
87 | | -TWO_HOUR_CRON_EXPRESSION = "cron(0 0/2 ? * * *)" |
| 87 | +FIVE_MIN_CRON_EXPRESSION = "cron(0/5 * ? * * *)" |
88 | 88 |
|
89 | 89 |
|
90 | 90 | @pytest.fixture(scope="module") |
@@ -150,7 +150,7 @@ def default_monitoring_schedule_name(sagemaker_session, output_kms_key, volume_k |
150 | 150 | output_s3_uri=output_s3_uri, |
151 | 151 | statistics=statistics, |
152 | 152 | constraints=constraints, |
153 | | - schedule_cron_expression=TWO_HOUR_CRON_EXPRESSION, |
| 153 | + schedule_cron_expression=FIVE_MIN_CRON_EXPRESSION, |
154 | 154 | enable_cloudwatch_metrics=ENABLE_CLOUDWATCH_METRICS, |
155 | 155 | ) |
156 | 156 |
|
@@ -210,7 +210,7 @@ def byoc_monitoring_schedule_name(sagemaker_session, output_kms_key, volume_kms_ |
210 | 210 | output=MonitoringOutput(source="/opt/ml/processing/output", destination=output_s3_uri), |
211 | 211 | statistics=statistics, |
212 | 212 | constraints=constraints, |
213 | | - schedule_cron_expression=TWO_HOUR_CRON_EXPRESSION, |
| 213 | + schedule_cron_expression=FIVE_MIN_CRON_EXPRESSION, |
214 | 214 | ) |
215 | 215 |
|
216 | 216 | _wait_for_schedule_changes_to_apply(monitor=my_byoc_monitor) |
@@ -1330,6 +1330,7 @@ def test_default_monitor_create_and_update_schedule_config_without_customization |
1330 | 1330 | tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS, |
1331 | 1331 | reason="ModelMonitoring is not yet supported in this region.", |
1332 | 1332 | ) |
| 1333 | +@pytest.mark.cron |
1333 | 1334 | def test_default_monitor_attach_followed_by_baseline_and_update_monitoring_schedule( |
1334 | 1335 | sagemaker_session, |
1335 | 1336 | default_monitoring_schedule_name, |
@@ -1486,6 +1487,7 @@ def test_default_monitor_attach_followed_by_baseline_and_update_monitoring_sched |
1486 | 1487 | tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS, |
1487 | 1488 | reason="ModelMonitoring is not yet supported in this region.", |
1488 | 1489 | ) |
| 1490 | +@pytest.mark.cron |
1489 | 1491 | def test_default_monitor_monitoring_execution_interactions( |
1490 | 1492 | sagemaker_session, default_monitoring_schedule_name |
1491 | 1493 | ): |
@@ -2226,6 +2228,7 @@ def test_byoc_monitor_create_and_update_schedule_config_with_customizations( |
2226 | 2228 | tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS, |
2227 | 2229 | reason="ModelMonitoring is not yet supported in this region.", |
2228 | 2230 | ) |
| 2231 | +@pytest.mark.cron |
2229 | 2232 | def test_byoc_monitor_attach_followed_by_baseline_and_update_monitoring_schedule( |
2230 | 2233 | sagemaker_session, |
2231 | 2234 | predictor, |
@@ -2448,6 +2451,7 @@ def test_byoc_monitor_attach_followed_by_baseline_and_update_monitoring_schedule |
2448 | 2451 | tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS, |
2449 | 2452 | reason="ModelMonitoring is not yet supported in this region.", |
2450 | 2453 | ) |
| 2454 | +@pytest.mark.cron |
2451 | 2455 | def test_byoc_monitor_monitoring_execution_interactions( |
2452 | 2456 | sagemaker_session, byoc_monitoring_schedule_name |
2453 | 2457 | ): |
|
0 commit comments