From bc037e8d86b50e8ab8e90ed1d284f1287f8978ec Mon Sep 17 00:00:00 2001 From: Yuki Iwai Date: Mon, 31 Jul 2023 04:11:12 +0900 Subject: [PATCH] WIP Signed-off-by: Yuki Iwai --- .../template-setup-e2e-test/action.yaml | 18 ++++++++++-------- .../scripts/gh-actions/run-e2e-experiment.py | 3 ++- .../scripts/gh-actions/run-e2e-experiment.sh | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/template-setup-e2e-test/action.yaml b/.github/workflows/template-setup-e2e-test/action.yaml index e8f22ba4d11..e83475b4333 100644 --- a/.github/workflows/template-setup-e2e-test/action.yaml +++ b/.github/workflows/template-setup-e2e-test/action.yaml @@ -31,14 +31,6 @@ runs: echo "Disk usage after cleanup:" df -h - - name: Setup Minikube Cluster - uses: medyagh/setup-minikube@v0.0.13 - with: - driver: none - kubernetes-version: ${{ inputs.kubernetes-version }} - minikube-version: 1.31.1 - start-args: --wait-timeout=120s - - name: Setup kubectl uses: azure/setup-kubectl@v3 with: @@ -52,6 +44,16 @@ runs: with: python-version: ${{ inputs.python-version }} + - name: Setup Minikube Cluster + uses: medyagh/setup-minikube@v0.0.14 + with: + network-plugin: cni + cni: flannel + driver: none + kubernetes-version: ${{ inputs.kubernetes-version }} + minikube-version: 1.31.1 + start-args: --wait-timeout=120s + - name: Install Katib SDK shell: bash run: pip install --prefer-binary -e sdk/python/v1beta1 diff --git a/test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.py b/test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.py index abd08ccec00..b9eb2444ae2 100644 --- a/test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.py +++ b/test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.py @@ -8,7 +8,8 @@ from kubeflow.katib.constants import constants # Experiment timeout is 40 min. -EXPERIMENT_TIMEOUT = 60 * 40 +# EXPERIMENT_TIMEOUT = 60 * 40 +EXPERIMENT_TIMEOUT = 60 * 5 # The default logging config. logging.basicConfig(level=logging.INFO) diff --git a/test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.sh b/test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.sh index 5a20faa6934..d61cd3eceb3 100755 --- a/test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.sh +++ b/test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.sh @@ -45,7 +45,7 @@ for exp_name in "${EXPERIMENT_FILE_ARRAY[@]}"; do echo "Running Experiment from $exp_name file" exp_path=$(find ../../../../../examples/v1beta1 -name "${exp_name}.yaml") python run-e2e-experiment.py --experiment-path "${exp_path}" --namespace default \ - --verbose || (kubectl get pods -n kubeflow && exit 1) + --verbose || (kubectl get pods -n kubeflow && kubectl describe pods -n kubeflow && kubectl logs deployments/katib-db-manager -n kubeflow && exit 1) done exit 0