Skip to content

Commit

Permalink
test(sdk): reorder params and delete logs.
Browse files Browse the repository at this point in the history
Signed-off-by: Electronic-Waste <[email protected]>
  • Loading branch information
Electronic-Waste committed Aug 6, 2024
1 parent dde4402 commit c962aa5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/template-e2e-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:
steps:
- name: Setup Minikube Cluster
shell: bash
run: ./test/e2e/v1beta1/scripts/gh-actions/setup-minikube.sh ${{ inputs.katib-ui }} ${{ inputs.trial-images }} ${{ inputs.experiments }} ${{ inputs.tune-api }}
run: ./test/e2e/v1beta1/scripts/gh-actions/setup-minikube.sh ${{ inputs.katib-ui }} ${{ inputs.tune-api }} ${{ inputs.trial-images }} ${{ inputs.experiments }}

- name: Setup Katib
shell: bash
Expand Down
9 changes: 4 additions & 5 deletions test/e2e/v1beta1/scripts/gh-actions/build-load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ pushd .
cd "$(dirname "$0")/../../../../.."
trap popd EXIT

TRIAL_IMAGES=${1:-""}
EXPERIMENTS=${2:-""}
DEPLOY_KATIB_UI=${3:-false}
TUNE_API=${4:-false}
DEPLOY_KATIB_UI=${1:-false}
TUNE_API=${2:-false}
TRIAL_IMAGES=${3:-""}
EXPERIMENTS=${4:-""}

REGISTRY="docker.io/kubeflowkatib"
TAG="e2e-test"
Expand Down Expand Up @@ -164,7 +164,6 @@ for name in "${TRIAL_IMAGE_ARRAY[@]}"; do
done

# Testing image for tune function
echo $TUNE_API
if "$TUNE_API"; then
echo -e "\nPulling and building testing image for tune function..."
_build_containers "suggestion-hyperopt" "$CMD_PREFIX/suggestion/hyperopt/$VERSION/Dockerfile"
Expand Down
9 changes: 4 additions & 5 deletions test/e2e/v1beta1/scripts/gh-actions/setup-minikube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ set -o nounset
cd "$(dirname "$0")"

DEPLOY_KATIB_UI=${1:-false}
TRIAL_IMAGES=${2:-""}
EXPERIMENTS=${3:-""}
TUNE_API=${4:-false}
TUNE_API=${2:-false}
TRIAL_IMAGES=${3:-""}
EXPERIMENTS=${4:-""}

echo "Start to setup Minikube Kubernetes Cluster"
kubectl version
kubectl cluster-info
kubectl get nodes

echo "Build and Load container images"
echo "$TUNE_API"
./build-load.sh "$TRIAL_IMAGES" "$EXPERIMENTS" "$DEPLOY_KATIB_UI" "$TUNE_API"
./build-load.sh "$DEPLOY_KATIB_UI" "$TUNE_API" "$TRIAL_IMAGES" "$EXPERIMENTS"

0 comments on commit c962aa5

Please sign in to comment.