Skip to content

Commit 0794511

Browse files
committed
run real pytorch job
1 parent 55229d6 commit 0794511

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

test/e2e/fixtures_test.go

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ 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
214212
const pytorchYAML = `
215213
apiVersion: "kubeflow.org/v1"
216214
kind: PyTorchJob
@@ -225,9 +223,11 @@ spec:
225223
spec:
226224
terminationGracePeriodSeconds: 0
227225
containers:
228-
- name: busybox
229-
image: quay.io/project-codeflare/busybox:1.36
230-
command: ["sh", "-c", "sleep 120"]
226+
image: docker.io/kubeflowkatib/pytorch-mnist-cpu:v1beta1-fc858d1
227+
command:
228+
- "python3"
229+
- "/opt/pytorch-mnist/mnist.py"
230+
- "--epochs=1"
231231
resources:
232232
requests:
233233
cpu: %v
@@ -239,8 +239,12 @@ spec:
239239
terminationGracePeriodSeconds: 0
240240
containers:
241241
- name: busybox
242-
image: quay.io/project-codeflare/busybox:1.36
243-
command: ["sh", "-c", "sleep 120"]
242+
- name: pytorch
243+
image: docker.io/kubeflowkatib/pytorch-mnist-cpu:v1beta1-fc858d1
244+
command:
245+
- "python3"
246+
- "/opt/pytorch-mnist/mnist.py"
247+
- "--epochs=1"
244248
resources:
245249
requests:
246250
cpu: %v

0 commit comments

Comments
 (0)