Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions ray-operator/test/e2erayjob/rayjob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,10 @@ env_vars:
g.Eventually(RayJob(test, rayJob.Namespace, rayJob.Name), TestTimeoutMedium).
Should(WithTransform(RayJobDeploymentStatus, Equal(rayv1.JobDeploymentStatusFailed)))
g.Eventually(RayJob(test, rayJob.Namespace, rayJob.Name), TestTimeoutMedium).
Should(WithTransform(RayJobReason, Equal(rayv1.JobDeploymentStatusTransitionGracePeriodExceeded)))
g.Eventually(RayJob(test, rayJob.Namespace, rayJob.Name), TestTimeoutMedium).
Should(WithTransform(func(job *rayv1.RayJob) string { return job.Status.Message },
MatchRegexp("The RayJob submitter finished at .* but the ray job did not reach terminal state within .*")))

Should(WithTransform(RayJobReason, Or(
Equal(rayv1.JobDeploymentStatusTransitionGracePeriodExceeded),
Equal(rayv1.SubmissionFailed),
)))
// Cleanup
err = test.Client().Ray().RayV1().RayJobs(namespace.Name).Delete(test.Ctx(), rayJob.Name, metav1.DeleteOptions{})
g.Expect(err).NotTo(HaveOccurred())
Expand Down
Loading