ray-project / kuberay

A toolkit to run Ray applications on Kubernetes
Apache License 2.0
990 stars 330 forks source link

[RayJob] Add Tests for Atomic Suspend Operation #2050

Closed Yicheng-Lu-llll closed 2 months ago

Yicheng-Lu-llll commented 3 months ago

Why are these changes needed?

This PR adds tests for the atomic suspend operation. See #1799 and #1798 for more details.

Besides the new test, this PR also refactors the normal suspending test in rayjob_controller_suspended_test.go to make it more compact and compatible with the latest RayJob.

Related issue number

Closes #1799

Checks