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 1f6b9c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mnist/testing/tfjob_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ 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: Try to upgrade kubectl to 1.14.0 to resolve CI/CD problem.
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
1 change: 1 addition & 0 deletions mnist/training/base/definition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# The script is to define the number of Ps and Workers for TFJOB.
# Usage: definition.sh --numPs number_of_PS --numWorkers number_of_worker
# @jinchihe: Add here to trigger ci/cd testing for debugging, will remove later.

while (($#)); do
case $1 in
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

0 comments on commit 1f6b9c2

Please sign in to comment.