Skip to content

Commit

Permalink
debug mnist ci/cd testing problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchihe committed Oct 23, 2019
1 parent 6b37a40 commit c8d29dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions mnist/testing/tfjob_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ def test_train(self):
util.run(['wget', '-O', '/usr/local/bin/kustomize', kusUrl], cwd=self.app_dir)
util.run(['chmod', 'a+x', '/usr/local/bin/kustomize'], cwd=self.app_dir)

# TODO @jinchihe: The kubectl has been upgraded to 1.14.0 in kubeflow/testing/pull/500.
# But the test-worker image is not refreshed, see issue kubeflow/testing/issues/501.
# The below code can be removed once test-worker released.
kusUrl = 'https://storage.googleapis.com/kubernetes-release/' \
'release/v1.14.0/bin/linux/amd64/kubectl'
util.run(['wget', '-O', '/usr/local/bin/kubectl', kusUrl], cwd=self.app_dir)
util.run(['chmod', 'a+x', '/usr/local/bin/kubectl'], cwd=self.app_dir)

# Setup parameters for kustomize
configmap = 'mnist-map-training'
for pair in self.params.split(","):
Expand Down
2 changes: 1 addition & 1 deletion test/workflows/components/mnist.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ local defaultParams = {
// Which Kubeflow cluster to use for running TFJobs on.
kfProject: "kubeflow-ci-deployment",
kfZone: "us-east1-b",
kfCluster: "kf-vmaster-n01",
kfCluster: "kf-v0-6-n00",

// The bucket where the model should be written
// This needs to be writable by the GCP service account in the Kubeflow cluster (not the test cluster)
Expand Down
2 changes: 1 addition & 1 deletion test/workflows/components/xgboost_synthetic.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ local defaultParams = {
// Which Kubeflow cluster to use for running PytorchJobs on.
kfProject: "kubeflow-ci-deployment",
kfZone: "us-east1-b",
kfCluster: "kf-vmaster-n00",
kfCluster: "kf-v0-6-n00",

// The bucket where the model should be written
// This needs to be writable by the GCP service account in the Kubeflow cluster (not the test cluster)
Expand Down

0 comments on commit c8d29dc

Please sign in to comment.