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

[Test][Autoscaler][1/n] Add Ray Autoscaler e2e tests #2168

Merged
merged 3 commits into from
May 29, 2024

Conversation

kevin85421
Copy link
Member

@kevin85421 kevin85421 commented May 27, 2024

Why are these changes needed?

See #2173 for more details.

Related issue number

Checks

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

Signed-off-by: kaihsun <kaihsun@anyscale.com>
@kevin85421 kevin85421 marked this pull request as ready for review May 27, 2024 07:19
@kevin85421
Copy link
Member Author

cc @rueian @MortalHappiness would you mind reviewing this PR? Thanks!

@kevin85421
Copy link
Member Author

cc @ryanaoleary would you mind reviewing this PR? Thanks!

Copy link
Contributor

@ryanaoleary ryanaoleary left a comment

Choose a reason for hiding this comment

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

LGTM

kevin85421 and others added 2 commits May 29, 2024 09:14
Co-authored-by: Rueian <rueiancsie@gmail.com>
Signed-off-by: Kai-Hsun Chen <kaihsun@apache.org>
Signed-off-by: kaihsun <kaihsun@anyscale.com>
. "github.com/ray-project/kuberay/ray-operator/test/support"
)

func TestRayClusterAutoscaler(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

A high level question: should we have all the testing logic inside python? like you can have a python script:

ray.init()
actor1 = Actor.remote()
assert ray.nodes() == 2
actor2 = Actor.remote()
assert ray.nodes() == 3

instead of doing the assertion in go?

Copy link
Member Author

Choose a reason for hiding this comment

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

ray.init()
actor1 = Actor.remote()
assert ray.nodes() == 2
actor2 = Actor.remote()
assert ray.nodes() == 3

This is something that the Ray Autoscaler needs to test. For the KubeRay node provider, we care more about whether the Pod is actually created. For Pods, Golang is much better than Python.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it makes sense.

@kevin85421 kevin85421 merged commit 351610f into ray-project:master May 29, 2024
24 checks passed
rueian added a commit to rueian/kuberay that referenced this pull request Jun 6, 2024
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