Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Iwai <[email protected]>
  • Loading branch information
tenzen-y committed Jul 30, 2023
1 parent 0128589 commit bc037e8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/template-setup-e2e-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ runs:
echo "Disk usage after cleanup:"
df -h
- name: Setup Minikube Cluster
uses: medyagh/[email protected]
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:
Expand All @@ -52,6 +44,16 @@ runs:
with:
python-version: ${{ inputs.python-version }}

- name: Setup Minikube Cluster
uses: medyagh/[email protected]
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
3 changes: 2 additions & 1 deletion test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bc037e8

Please sign in to comment.