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

[Feature] Optimize the wait functions in E2E tests #609

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

kevin85421
Copy link
Member

@kevin85421 kevin85421 commented Sep 30, 2022

Why are these changes needed?

Currently, we use time.sleep() to wait for the system convergence in E2E tests. However, time.sleep() will block the process for fixed units of time. Hence, we need to use new wait functions that block the process only when the system is not ready.

  • kind create cluster --wait ... (Link)
  • kubectl wait (Link)

Result

  • Without this PR
    Screen Shot 2022-09-30 at 3 18 03 PM

  • With this PR
    Screen Shot 2022-09-30 at 3 17 45 PM

Related issue number

Closes #611

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@kevin85421 kevin85421 changed the title (Draft) Optimize E2E tests [Feature] Optimize the wait functions in E2E tests Sep 30, 2022
@kevin85421 kevin85421 marked this pull request as ready for review September 30, 2022 22:11
Copy link
Collaborator

@wilsonwang371 wilsonwang371 left a comment

Choose a reason for hiding this comment

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

LGTM

@DmitriGekhtman DmitriGekhtman merged commit 159d57f into ray-project:master Oct 4, 2022
lowang-bh pushed a commit to lowang-bh/kuberay that referenced this pull request Sep 24, 2023
Currently, we use time.sleep() to wait for the system convergence in E2E tests. However, time.sleep() will block the process for fixed units of time. Hence, we need to use new wait functions that block the process only when the system is not ready.

kind create cluster --wait ...
kubectl wait
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.

[Feature] Optimize the wait functions in E2E tests
3 participants