Skip to content

Conversation

@kevin85421
Copy link
Member

Why are these changes needed?

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 changed the title [RayService] Add a envtest for autoscaler [RayService] Add an envtest for autoscaler Feb 1, 2025
Comment on lines 237 to 244
// (1) Create a RayService custom resource
// (2) The RayService controller creates a pending RayCluster
// (3) Ray Autoscaler scales up the RayCluster
// (4) The RayService controller should not trigger zero downtime upgrade
// (5) The serve application becomes ready on the pending RayCluster
// (6) The pending RayCluster transitions to become the active RayCluster
// (7) Ray Autoscaler scales up the RayCluster again
// (8) The RayService controller should not trigger zero downtime upgrade
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need these comments? Maybe they can be merged into the description of It. And then in the future if we want to add more It in the middle, we don't need to change a lot of numbers in the comment here.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

Copy link
Member Author

Choose a reason for hiding this comment

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

I made the comment more generic.

Signed-off-by: Kai-Hsun Chen <kaihsun@anyscale.com>
Signed-off-by: kaihsun <kaihsun@anyscale.com>
@kevin85421 kevin85421 marked this pull request as ready for review February 1, 2025 05:08
Signed-off-by: kaihsun <kaihsun@anyscale.com>
Signed-off-by: kaihsun <kaihsun@anyscale.com>
Eventually(
getResourceFunc(ctx, client.ObjectKey{Name: rayService.Name, Namespace: "default"}, rayService),
time.Second*3, time.Millisecond*500).Should(BeNil(), "My myRayService = %v", rayService.Name)
*rayService.Spec.RayClusterSpec.WorkerGroupSpecs[0].Replicas++
Copy link
Member Author

Choose a reason for hiding this comment

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

This is also used to simulate Ray Autoscaler.

@kevin85421 kevin85421 merged commit c807790 into ray-project:master Feb 1, 2025
24 checks passed
@kevin85421 kevin85421 mentioned this pull request Feb 2, 2025
48 tasks
Ygnas pushed a commit to Ygnas/kuberay that referenced this pull request Mar 20, 2025
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.

2 participants