Skip to content

Commit

Permalink
fix: add delays in ray application to mitigate flakiness
Browse files Browse the repository at this point in the history
Change-Id: Ibd5f789d29dd91ecd140389b367f040bde8eb99b
  • Loading branch information
Gen Lu committed Aug 28, 2024
1 parent ce087aa commit 9208cdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ steps:
# Make sure pods are running
kubectl wait --all pods -n ml-$SHORT_SHA-$_BUILD_ID-ray --for=condition=Ready --timeout=1200s
# Wait for pods to be stable
sleep 5s
kubectl port-forward -n ml-$SHORT_SHA-$_BUILD_ID-ray service/ray-cluster-kuberay-head-svc 8265:8265 &
# Wait port-forwarding to take its place
sleep 5s
sleep 10s
ray job submit \
--address=http://127.0.0.1:8265 -- python -c "import ray; ray.init(); print(ray.cluster_resources())"
Expand Down

0 comments on commit 9208cdf

Please sign in to comment.