Skip to content

Commit

Permalink
revert timeout limit
Browse files Browse the repository at this point in the history
Signed-off-by: helenxie-bit <[email protected]>
  • Loading branch information
helenxie-bit committed Sep 5, 2024
1 parent 1df7df9 commit d1e1311
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 31 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/template-e2e-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,4 @@ runs:
else
./test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.sh ${{ inputs.experiments }}
fi
- name: Check disk space
shell: bash
run: |
df -hT
- name: Check the status of Experiment and Trials
shell: bash
run: |
kubectl get pods -n default
# describe pod
pod_name=$(kubectl get pods -n default -o jsonpath='{.items[?(@.metadata.labels.trial-name)].metadata.name}')
kubectl describe pod $pod_name -n default
# check the logs of pod
kubectl logs $pod_name -n default -c metrics-logger-and-collector
27 changes: 13 additions & 14 deletions test/e2e/v1beta1/scripts/gh-actions/run-e2e-tune-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from verify import verify_experiment_results

# Experiment timeout is 40 min.
EXPERIMENT_TIMEOUT = 60 * 10
EXPERIMENT_TIMEOUT = 60 * 40

# The default logging config.
logging.basicConfig(level=logging.INFO)
Expand Down Expand Up @@ -152,33 +152,32 @@ def run_e2e_experiment_create_by_tune_with_external_model(
client.CoreV1Api().patch_namespace(args.namespace, {'metadata': {'labels': namespace_labels}})

# Test with run_e2e_experiment_create_by_tune
exp_name = "tune-example-1"
exp_name = "tune-example"
exp_namespace = args.namespace
try:
run_e2e_experiment_create_by_tune_with_custom_objective(katib_client, exp_name, exp_namespace)
run_e2e_experiment_create_by_tune_with_custom_objective(katib_client, f"{exp_name}-1", exp_namespace)
logging.info("---------------------------------------------------------------")
logging.info(f"E2E is succeeded for Experiment created by tune: {exp_namespace}/{exp_name}")
logging.info(f"E2E is succeeded for Experiment created by tune: {exp_namespace}/{f"{exp_name}-1"}")
except Exception as e:
logging.info("---------------------------------------------------------------")
logging.info(f"E2E is failed for Experiment created by tune: {exp_namespace}/{exp_name}")
logging.info(f"E2E is failed for Experiment created by tune: {exp_namespace}/{f"{exp_name}-1"}")
raise e
finally:
# Delete the Experiment.
logging.info("---------------------------------------------------------------")
logging.info("---------------------------------------------------------------")
katib_client.delete_experiment(exp_name, exp_namespace)
katib_client.delete_experiment(f"{exp_name}-1", exp_namespace)

exp_name_2 = "tune-example-2"
try:
run_e2e_experiment_create_by_tune_with_external_model(katib_client, exp_name_2, exp_namespace)
run_e2e_experiment_create_by_tune_with_external_model(katib_client, f"{exp_name}-2", exp_namespace)
logging.info("---------------------------------------------------------------")
logging.info(f"E2E is succeeded for Experiment created by tune: {exp_namespace}/{exp_name_2}")
logging.info(f"E2E is succeeded for Experiment created by tune: {exp_namespace}/{f"{exp_name}-2"}")
except Exception as e:
logging.info("---------------------------------------------------------------")
logging.info(f"E2E is failed for Experiment created by tune: {exp_namespace}/{exp_name_2}")
logging.info(f"E2E is failed for Experiment created by tune: {exp_namespace}/{f"{exp_name}-2"}")
raise e
#finally:
finally:
# Delete the Experiment.
#logging.info("---------------------------------------------------------------")
#logging.info("---------------------------------------------------------------")
#katib_client.delete_experiment(exp_name_2, exp_namespace)
logging.info("---------------------------------------------------------------")
logging.info("---------------------------------------------------------------")
katib_client.delete_experiment(f"{exp_name}-2", exp_namespace)

0 comments on commit d1e1311

Please sign in to comment.