Skip to content

Commit ed8edc4

Browse files
authored
Merge branch 'main' into python_required
2 parents b25491f + a5317cf commit ed8edc4

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/model_serving/model_server/serverless/test_concurrency_auto_scale.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def test_auto_scale_using_concurrency(
5353
for pods in inference_service_pods_sampler(
5454
client=admin_client,
5555
isvc=s3_models_inference_service,
56-
timeout=Timeout.TIMEOUT_1MIN,
56+
timeout=Timeout.TIMEOUT_2MIN,
57+
sleep=10,
5758
):
5859
if pods:
5960
if len(pods) > 1 and all([pod.status == pod.Status.RUNNING for pod in pods]):
@@ -66,6 +67,7 @@ def test_pods_scaled_down_when_no_requests(self, admin_client, s3_models_inferen
6667
client=admin_client,
6768
isvc=s3_models_inference_service,
6869
timeout=Timeout.TIMEOUT_4MIN,
70+
sleep=10,
6971
):
7072
if pods and len(pods) == 1:
7173
return

tests/model_serving/model_server/serverless/utils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,22 +137,25 @@ def verify_canary_traffic(
137137
)
138138

139139

140-
def inference_service_pods_sampler(client: DynamicClient, isvc: InferenceService, timeout: int) -> TimeoutSampler:
140+
def inference_service_pods_sampler(
141+
client: DynamicClient, isvc: InferenceService, timeout: int, sleep: int = 1
142+
) -> TimeoutSampler:
141143
"""
142144
Returns TimeoutSampler for inference service.
143145
144146
Args:
145147
client (DynamicClient): DynamicClient object
146148
isvc (InferenceService): InferenceService object
147149
timeout (int): Timeout in seconds
150+
sleep (int): Sleep time in seconds
148151
149152
Returns:
150153
TimeoutSampler: TimeoutSampler object
151154
152155
"""
153156
return TimeoutSampler(
154157
wait_timeout=timeout,
155-
sleep=1,
158+
sleep=sleep,
156159
func=get_pods_by_isvc_label,
157160
client=client,
158161
isvc=isvc,

0 commit comments

Comments
 (0)