Skip to content

Commit 9a1837f

Browse files
authored
[core][autoscaler] bump autoscaler_state_version in a fake request to deflay the test (#52207)
Signed-off-by: Rueian <rueiancsie@gmail.com>
1 parent c25809f commit 9a1837f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/ray/autoscaler/v2/tests/test_sdk.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,9 @@ def verify_nodes_busy():
753753
stub = _autoscaler_state_service_stub()
754754
state = autoscaler_pb2.AutoscalingState(
755755
last_seen_cluster_resource_state_version=0,
756-
autoscaler_state_version=1,
756+
# since the autoscaler will also update the autoscaler_state_version periodically,
757+
# we need to use a large number here, such as 10, to override it to avoid flaky test.
758+
autoscaler_state_version=10,
757759
pending_instance_requests=[
758760
autoscaler_pb2.PendingInstanceRequest(
759761
instance_type_name="m5.large",

0 commit comments

Comments
 (0)