Skip to content

Commit

Permalink
Enable mcad_ray_test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianZaccaria committed Oct 23, 2023
1 parent 8b8563e commit 496502b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 1 addition & 3 deletions tests/integration/mcad_ray_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ import (
func TestMCADRay(t *testing.T) {
test := cfosupport.With(t)

test.T().Skip("Requires https://github.com/project-codeflare/codeflare-sdk/issues/190")

// Create a namespace
namespace := test.NewTestNamespace()

Expand Down Expand Up @@ -89,7 +87,7 @@ func TestMCADRay(t *testing.T) {
Should(
And(
HaveLen(1),
ContainElement(WithTransform(cfosupport.AppWrapperName, HavePrefix("mnistjob"))),
ContainElement(WithTransform(cfosupport.AppWrapperName, HavePrefix("mnisttest"))),
ContainElement(WithTransform(cfosupport.AppWrapperState, Equal(mcadv1beta1.AppWrapperStateActive))),
),
)
Expand Down
10 changes: 6 additions & 4 deletions tests/integration/resources/mnist_ray_mini.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"outputs": [],
"source": [
"# Create our cluster and submit appwrapper\n",
"cluster = Cluster(ClusterConfiguration(namespace=namespace, name='mnisttest', num_workers=1, min_cpus=1, max_cpus=1, min_memory=4, max_memory=4, num_gpus=0, instascale=False))"
"cluster = Cluster(ClusterConfiguration(namespace=namespace, name='mnisttest', num_workers=2, min_cpus=2, max_cpus=2, min_memory=4, max_memory=4, num_gpus=0, instascale=False))"
]
},
{
Expand All @@ -53,7 +53,8 @@
"outputs": [],
"source": [
"# Bring up the cluster\n",
"cluster.up()"
"cluster.up()\n",
"sleep(10)"
]
},
{
Expand All @@ -65,7 +66,8 @@
},
"outputs": [],
"source": [
"cluster.wait_ready()"
"cluster.wait_ready()\n",
"sleep(30)"
]
},
{
Expand Down Expand Up @@ -99,7 +101,7 @@
"metadata": {},
"outputs": [],
"source": [
"job = DDPJobDefinition(name=\"mnisttest\", script=\"mnist.py\", workspace=\"file:///opt/app-root/notebooks/..data\", scheduler_args={\"requirements\": \"/opt/app-root/notebooks/requirements.txt\"}).submit(cluster)"
"job = DDPJobDefinition(name=\"mnisttest\", script=\"mnist.py\", workspace=\"file:///opt/app-root/notebooks-ray/..data\", scheduler_args={\"requirements\": \"/opt/app-root/notebooks-ray/requirements.txt\"}).submit(cluster)"
]
},
{
Expand Down

0 comments on commit 496502b

Please sign in to comment.