File tree Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ DUMP_LOGS="true"
2727# Pull and kind load to avoid long delays during testing
2828export IMAGE_ECHOSERVER=" quay.io/project-codeflare/echo-server:1.0"
2929export IMAGE_BUSY_BOX_LATEST=" quay.io/project-codeflare/busybox:latest"
30- export IMAGE_PYTORCH_SAMPLE=" docker.io/kubeflowkatib/pytorch-mnist:v1beta1-45c5727"
3130
3231function update_test_host {
3332
@@ -115,7 +114,7 @@ function check_prerequisites {
115114}
116115
117116function pull_images {
118- for image in ${IMAGE_ECHOSERVER} ${IMAGE_BUSY_BOX_LATEST} ${IMAGE_PYTORCH_SAMPLE}
117+ for image in ${IMAGE_ECHOSERVER} ${IMAGE_BUSY_BOX_LATEST}
119118 do
120119 docker pull $image
121120 if [ $? -ne 0 ]
@@ -138,7 +137,7 @@ function kind_up_cluster {
138137 fi
139138 CLUSTER_STARTED=" true"
140139
141- for image in ${IMAGE_ECHOSERVER} ${IMAGE_BUSY_BOX_LATEST} ${IMAGE_PYTORCH_SAMPLE}
140+ for image in ${IMAGE_ECHOSERVER} ${IMAGE_BUSY_BOX_LATEST}
142141 do
143142 kind load docker-image ${image} ${CLUSTER_CONTEXT}
144143 if [ $? -ne 0 ]
Original file line number Diff line number Diff line change @@ -209,6 +209,8 @@ func batchjob(milliCPU int64) workloadv1beta2.AppWrapperComponent {
209209 }
210210}
211211
212+ // Using busybox is a hack to avoid pulling a massive pytorch image onto kind cluster in the GitHub runner.
213+ // To test the AppWrapper side of things, we don't actually care what the containers are doing
212214const pytorchYAML = `
213215apiVersion: "kubeflow.org/v1"
214216kind: PyTorchJob
@@ -223,12 +225,9 @@ spec:
223225 spec:
224226 terminationGracePeriodSeconds: 0
225227 containers:
226- - name: pytorch
227- image: docker.io/kubeflowkatib/pytorch-mnist:v1beta1-45c5727
228- command:
229- - "python3"
230- - "/opt/pytorch-mnist/mnist.py"
231- - "--epochs=1"
228+ - name: busybox
229+ image: quay.io/project-codeflare/busybox:1.36
230+ command: ["sh", "-c", "sleep 120"]
232231 resources:
233232 requests:
234233 cpu: %v
@@ -239,12 +238,9 @@ spec:
239238 spec:
240239 terminationGracePeriodSeconds: 0
241240 containers:
242- - name: pytorch
243- image: docker.io/kubeflowkatib/pytorch-mnist:v1beta1-45c5727
244- command:
245- - "python3"
246- - "/opt/pytorch-mnist/mnist.py"
247- - "--epochs=1"
241+ - name: busybox
242+ image: quay.io/project-codeflare/busybox:1.36
243+ command: ["sh", "-c", "sleep 120"]
248244 resources:
249245 requests:
250246 cpu: %v
You can’t perform that action at this time.
0 commit comments