Skip to content

Commit 232750d

Browse files
Update the test raycluster configuration parameters with the latest SDK options and reduced polling logic time interval to 1 sec
1 parent 965640f commit 232750d

File tree

4 files changed

+474
-474
lines changed

4 files changed

+474
-474
lines changed

tests/odh/mnist_ray_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func mnistRay(t *testing.T, numGpus int) {
146146
rayJobs, err := rayClient.GetJobs()
147147
test.Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("Failed to fetch ray-jobs : %s", err))
148148
return *rayJobs
149-
}, TestTimeoutMedium, 2*time.Second).Should(HaveLen(1), "Ray job not found")
149+
}, TestTimeoutMedium, 1*time.Second).Should(HaveLen(1), "Ray job not found")
150150

151151
// Get test job-id
152152
jobID := GetTestJobId(test, rayClient, dashboardUrl.Host)
@@ -169,7 +169,7 @@ func mnistRay(t *testing.T, numGpus int) {
169169
rayJobStatus = rayJobStatusVal
170170
}
171171
return rayJobStatus
172-
}, TestTimeoutDouble, 3*time.Second).Should(Or(Equal("SUCCEEDED"), Equal("FAILED")), "Job did not complete within the expected time")
172+
}, TestTimeoutDouble, 1*time.Second).Should(Or(Equal("SUCCEEDED"), Equal("FAILED")), "Job did not complete within the expected time")
173173
// Store job logs in output directory
174174
WriteRayJobAPILogs(test, rayClient, jobID)
175175

tests/odh/mnist_raytune_hpo_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func mnistRayTuneHpo(t *testing.T, numGpus int) {
147147
rayJobs, err := rayClient.GetJobs()
148148
test.Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("Failed to fetch ray-jobs : %s", err))
149149
return *rayJobs
150-
}, TestTimeoutMedium, 2*time.Second).Should(HaveLen(1), "Ray job not found")
150+
}, TestTimeoutMedium, 1*time.Second).Should(HaveLen(1), "Ray job not found")
151151

152152
// Get rayjob-ID
153153
jobID := GetTestJobId(test, rayClient, dashboardUrl.Host)
@@ -170,7 +170,7 @@ func mnistRayTuneHpo(t *testing.T, numGpus int) {
170170
rayJobStatus = rayJobStatusVal
171171
}
172172
return rayJobStatus
173-
}, TestTimeoutDouble, 3*time.Second).Should(Or(Equal("SUCCEEDED"), Equal("FAILED")), "Job did not complete within the expected time")
173+
}, TestTimeoutDouble, 1*time.Second).Should(Or(Equal("SUCCEEDED"), Equal("FAILED")), "Job did not complete within the expected time")
174174
// Store job logs in output directory
175175
WriteRayJobAPILogs(test, rayClient, jobID)
176176

0 commit comments

Comments
 (0)