Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Serve][Release Test][HA] Wait for locust pod ready #30010

Merged
merged 2 commits into from
Nov 4, 2022

Conversation

sihanwang41
Copy link
Contributor

@sihanwang41 sihanwang41 commented Nov 4, 2022

Signed-off-by: Sihan Wang [email protected]

Why are these changes needed?

Port forwarding sometimes failed since the locust pod is not ready

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@sihanwang41 sihanwang41 changed the title [Serve][Release Test] Wait for locust pod ready [Serve][Release Test][HA] Wait for locust pod ready Nov 4, 2022
release/k8s_tests/run_gcs_ft_on_k8s.py Outdated Show resolved Hide resolved
print("Wait for locust pod is ready...")
time.sleep(30)
timeout_wait_for_locust_s -= 30
else:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make sense to explicitly check for success/errored states?

Copy link
Contributor Author

@sihanwang41 sihanwang41 Nov 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When other state, it will fail under the port forwarding eventually.
In the port forwarding step, it will complain something like
error: unable to forward port because pod is not running. Current status=Pending
So i don't bother to check other status. (easy to debug)

Signed-off-by: Sihan Wang <[email protected]>
@simon-mo simon-mo merged commit 670adef into ray-project:master Nov 4, 2022
WeichenXu123 pushed a commit to WeichenXu123/ray that referenced this pull request Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants