Skip to content

Commit 2045c7a

Browse files
committed
test: Add description to e2e tests
1 parent 7394965 commit 2045c7a

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

test/e2e/mnist_pytorch_mcad_job_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
mcadv1beta1 "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/apis/controller/v1beta1"
3131
)
3232

33+
// Trains the MNIST dataset as a batch Job managed by MCAD, and asserts successful completion of the training job.
3334
func TestMNISTPyTorchMCAD(t *testing.T) {
3435
test := With(t)
3536
test.T().Parallel()

test/e2e/mnist_raycluster_sdk_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ import (
3232
mcadv1beta1 "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/apis/controller/v1beta1"
3333
)
3434

35+
// Creates a Ray cluster, and trains the MNIST dataset using the CodeFlare SDK.
36+
// Asserts successful completion of the training job.
37+
//
38+
// This covers the installation of the CodeFlare SDK, as well as the RBAC required
39+
// for the SDK to successfully perform requests to the cluster, on behalf of the
40+
// impersonated user.
3541
func TestMNISTRayClusterSDK(t *testing.T) {
3642
test := With(t)
3743
test.T().Parallel()

test/e2e/mnist_rayjob_mcad_raycluster_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import (
3131
rayv1alpha1 "github.com/ray-project/kuberay/ray-operator/apis/ray/v1alpha1"
3232
)
3333

34+
// Trains the MNIST dataset as a RayJob, executed by a Ray cluster managed by MCAD,
35+
// and asserts successful completion of the training job.
3436
func TestMNISTRayJobMCADRayCluster(t *testing.T) {
3537
test := With(t)
3638
test.T().Parallel()

0 commit comments

Comments
 (0)