Skip to content

Commit

Permalink
test(sdk): add time.sleep(5).
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 1, 2024
1 parent 92a3bea commit e61bc6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ if [ -z "$EXPERIMENT_FILES" ]; then
exit 0
fi

# 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)
# done
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)
done

python run-e2e-tune-api.py --namespace default \
--verbose || (kubectl get pods -n kubeflow && exit 1)
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/v1beta1/scripts/gh-actions/run-e2e-tune-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def run_e2e_experiment_create_by_tune(
# https://www.kubeflow.org/docs/components/katib/getting-started/#getting-started-with-katib-python-sdk
# [1] Create an objective function.
def objective(parameters):
import time
time.sleep(5)
result = 4 * int(parameters["a"]) - float(parameters["b"]) ** 2
print(f"result={result}")

Expand Down

0 comments on commit e61bc6d

Please sign in to comment.