-
Notifications
You must be signed in to change notification settings - Fork 603
[RayJob] add Failing RayJob in HTTPMode e2e test for rayjob with retry #2242
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Should(WithTransform(RayJobFailed, Equal(int32(3)))) // 2 retries + 1 initial attempt = 3 failures | ||
test.Expect(GetRayJob(test, rayJob.Namespace, rayJob.Name)). | ||
Should(WithTransform(RayJobSucceeded, Equal(int32(0)))) | ||
test.Expect(GetRayJob(test, rayJob.Namespace, rayJob.Name)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be redundant. L161 has already checked the reason.
@tinaxfwu can you fix the lint error? It's helpful to install pre-commit https://github.com/ray-project/kuberay/blob/master/ray-operator/DEVELOPMENT.md#pre-commit-hooks. |
@kevin85421 I fixed the lint error, but the |
@tinaxfwu the failure is not relevant. It is just a flaky test. |
Why are these changes needed?
Add the "The RayJob in HTTPMode fails and retries" test.
kuberay/ray-operator/test/e2e/rayjob_retry_test.go
Lines 89 to 93 in ea314d7
Related issue number
Checks
Testing was conducted on my Apply M2 Mac, with the RayImage changed to
rayproject/ray:2.9.0-aarch64
in theray-operator/test/support/defaults.go
file.Below are the commands I used for the test and the resulting test logs.