Skip to content

Commit

Permalink
Fix e2e tests (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyvelich authored Apr 3, 2020
1 parent bccc281 commit 688636e
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 54 deletions.
7 changes: 2 additions & 5 deletions test/scripts/v1alpha3/run-custom-metricscollector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ set -o pipefail
CLUSTER_NAME="${CLUSTER_NAME}"
ZONE="${GCP_ZONE}"
PROJECT="${GCP_PROJECT}"
NAMESPACE="${DEPLOY_NAMESPACE}"
REGISTRY="${GCP_REGISTRY}"
GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
Expand Down Expand Up @@ -57,8 +55,7 @@ cd ${GO_DIR}/test/e2e/v1alpha3
echo "Running e2e custom metricscollector experiment"
export KUBECONFIG=$HOME/.kube/config
./run-e2e-experiment ../../../examples/v1alpha3/custom-metricscollector-example.yaml
kubectl -n kubeflow describe suggestion
kubectl -n kubeflow describe experiment custom-metricscollector-example
kubectl delete -f ../../../examples/v1alpha3/custom-metricscollector-example.yaml
kubectl describe pods
kubectl describe deploy

exit 0
7 changes: 2 additions & 5 deletions test/scripts/v1alpha3/run-file-metricscollector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ set -o pipefail
CLUSTER_NAME="${CLUSTER_NAME}"
ZONE="${GCP_ZONE}"
PROJECT="${GCP_PROJECT}"
NAMESPACE="${DEPLOY_NAMESPACE}"
REGISTRY="${GCP_REGISTRY}"
GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
Expand Down Expand Up @@ -57,8 +55,7 @@ cd ${GO_DIR}/test/e2e/v1alpha3
echo "Running e2e file metricscollector experiment"
export KUBECONFIG=$HOME/.kube/config
./run-e2e-experiment ../../../examples/v1alpha3/file-metricscollector-example.yaml
kubectl -n kubeflow describe suggestion
kubectl -n kubeflow describe experiment file-metricscollector-example
kubectl delete -f ../../../examples/v1alpha3/file-metricscollector-example.yaml
kubectl describe pods
kubectl describe deploy

exit 0
7 changes: 2 additions & 5 deletions test/scripts/v1alpha3/run-pytorchjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ set -o pipefail
CLUSTER_NAME="${CLUSTER_NAME}"
ZONE="${GCP_ZONE}"
PROJECT="${GCP_PROJECT}"
NAMESPACE="${DEPLOY_NAMESPACE}"
REGISTRY="${GCP_REGISTRY}"
GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
Expand Down Expand Up @@ -57,8 +55,7 @@ cd ${GO_DIR}/test/e2e/v1alpha3
echo "Running e2e pytorchjob random experiment"
export KUBECONFIG=$HOME/.kube/config
./run-e2e-experiment ../../../examples/v1alpha3/pytorchjob-example.yaml
kubectl -n kubeflow describe suggestion
kubectl -n kubeflow describe experiment pytorchjob-example
kubectl -n kubeflow delete experiment pytorchjob-example
kubectl describe pods
kubectl describe deploy

exit 0
8 changes: 2 additions & 6 deletions test/scripts/v1alpha3/run-suggestion-bayesian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ set -o pipefail
CLUSTER_NAME="${CLUSTER_NAME}"
ZONE="${GCP_ZONE}"
PROJECT="${GCP_PROJECT}"
NAMESPACE="${DEPLOY_NAMESPACE}"
REGISTRY="${GCP_REGISTRY}"
GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
Expand Down Expand Up @@ -57,9 +55,7 @@ cd ${GO_DIR}/test/e2e/v1alpha3
echo "Running e2e skopt bayesian optimization experiment"
export KUBECONFIG=$HOME/.kube/config
./run-e2e-experiment ../../../examples/v1alpha3/bayesianoptimization-example.yaml
kubectl -n kubeflow describe suggestion
kubectl -n kubeflow describe pods
kubectl -n kubeflow describe experiment bayesianoptimization-example
kubectl -n kubeflow delete experiment bayesianoptimization-example
kubectl describe pods
kubectl describe deploy

exit 0
7 changes: 2 additions & 5 deletions test/scripts/v1alpha3/run-suggestion-grid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ set -o pipefail
CLUSTER_NAME="${CLUSTER_NAME}"
ZONE="${GCP_ZONE}"
PROJECT="${GCP_PROJECT}"
NAMESPACE="${DEPLOY_NAMESPACE}"
REGISTRY="${GCP_REGISTRY}"
GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
Expand Down Expand Up @@ -57,8 +55,7 @@ cd ${GO_DIR}/test/e2e/v1alpha3
echo "Running e2e chocolate grid experiment"
export KUBECONFIG=$HOME/.kube/config
./run-e2e-experiment ../../../examples/v1alpha3/grid-example.yaml
kubectl -n kubeflow describe suggestion
kubectl -n kubeflow describe experiment grid-example
kubectl -n kubeflow delete experiment grid-example
kubectl describe pods
kubectl describe deploy

exit 0
9 changes: 2 additions & 7 deletions test/scripts/v1alpha3/run-suggestion-hyperband.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ set -o pipefail
CLUSTER_NAME="${CLUSTER_NAME}"
ZONE="${GCP_ZONE}"
PROJECT="${GCP_PROJECT}"
NAMESPACE="${DEPLOY_NAMESPACE}"
GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
Expand All @@ -51,16 +50,12 @@ kubectl -n kubeflow get svc
echo "Katib pods"
kubectl -n kubeflow get pod

mkdir -p ${GO_DIR}
cp -r . ${GO_DIR}/
cp -r pkg/apis/manager/v1alpha3/python/* ${GO_DIR}/test/e2e/v1alpha3
cd ${GO_DIR}/test/e2e/v1alpha3

echo "Running e2e hyperband experiment"
export KUBECONFIG=$HOME/.kube/config
./run-e2e-experiment ../../../examples/v1alpha3/hyperband-example.yaml
kubectl -n kubeflow describe suggestion
kubectl -n kubeflow describe experiment hyperband-example
kubectl -n kubeflow delete experiment hyperband-example
kubectl describe pods
kubectl describe deploy

exit 0
8 changes: 2 additions & 6 deletions test/scripts/v1alpha3/run-suggestion-nasrl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ set -o pipefail
CLUSTER_NAME="${CLUSTER_NAME}"
ZONE="${GCP_ZONE}"
PROJECT="${GCP_PROJECT}"
NAMESPACE="${DEPLOY_NAMESPACE}"
REGISTRY="${GCP_REGISTRY}"
GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
Expand All @@ -52,14 +50,12 @@ kubectl -n kubeflow get svc
echo "Katib pods"
kubectl -n kubeflow get pod

mkdir -p ${GO_DIR}
cp -r . ${GO_DIR}/
cp -r pkg/apis/manager/v1alpha3/python/* ${GO_DIR}/test/e2e/v1alpha3
cd ${GO_DIR}/test/e2e/v1alpha3

echo "Running e2e NASRL experiment"
export KUBECONFIG=$HOME/.kube/config
./run-e2e-experiment ../../../examples/v1alpha3/nasjob-example-RL-cpu.yaml
kubectl -n kubeflow describe suggestion
kubectl -n kubeflow describe experiment nas-rl-example-cpu
kubectl -n kubeflow delete experiment nas-rl-example-cpu

exit 0
8 changes: 3 additions & 5 deletions test/scripts/v1alpha3/run-suggestion-random.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ set -o pipefail
CLUSTER_NAME="${CLUSTER_NAME}"
ZONE="${GCP_ZONE}"
PROJECT="${GCP_PROJECT}"
NAMESPACE="${DEPLOY_NAMESPACE}"
REGISTRY="${GCP_REGISTRY}"
GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
Expand Down Expand Up @@ -57,10 +55,10 @@ cd ${GO_DIR}/test/e2e/v1alpha3
echo "Running e2e hyperopt random experiment"
export KUBECONFIG=$HOME/.kube/config
./run-e2e-experiment ../../../examples/v1alpha3/random-example.yaml
kubectl -n kubeflow describe experiment random-example
echo "Resuming the completed random experiment"
./resume-e2e-experiment ../../../examples/v1alpha3/random-example.yaml
kubectl -n kubeflow describe suggestion
kubectl -n kubeflow describe experiment random-example
kubectl -n kubeflow delete experiment random-example
kubectl describe pods
kubectl describe deploy

exit 0
7 changes: 2 additions & 5 deletions test/scripts/v1alpha3/run-suggestion-tpe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ set -o pipefail
CLUSTER_NAME="${CLUSTER_NAME}"
ZONE="${GCP_ZONE}"
PROJECT="${GCP_PROJECT}"
NAMESPACE="${DEPLOY_NAMESPACE}"
REGISTRY="${GCP_REGISTRY}"
GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
Expand Down Expand Up @@ -57,8 +55,7 @@ cd ${GO_DIR}/test/e2e/v1alpha3
echo "Running e2e hyperopt tpe experiment"
export KUBECONFIG=$HOME/.kube/config
./run-e2e-experiment ../../../examples/v1alpha3/tpe-example.yaml
kubectl -n kubeflow describe suggestion
kubectl -n kubeflow describe experiment tpe-example
kubectl -n kubeflow delete experiment tpe-example
kubectl describe pods
kubectl describe deploy

exit 0
7 changes: 2 additions & 5 deletions test/scripts/v1alpha3/run-tfjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ set -o pipefail
CLUSTER_NAME="${CLUSTER_NAME}"
ZONE="${GCP_ZONE}"
PROJECT="${GCP_PROJECT}"
NAMESPACE="${DEPLOY_NAMESPACE}"
REGISTRY="${GCP_REGISTRY}"
GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
Expand Down Expand Up @@ -57,8 +55,7 @@ cd ${GO_DIR}/test/e2e/v1alpha3
echo "Running e2e tfjob random experiment"
export KUBECONFIG=$HOME/.kube/config
./run-e2e-experiment ../../../examples/v1alpha3/tfjob-example.yaml
kubectl -n kubeflow describe suggestion
kubectl -n kubeflow describe experiment tfjob-example
kubectl -n kubeflow delete experiment tfjob-example
kubectl describe pods
kubectl describe deploy

exit 0

0 comments on commit 688636e

Please sign in to comment.