2021-01-12 18:52:47 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-02-10 17:16:31 +01:00
|
|
|
nodes=""
|
|
|
|
ray_version=""
|
2021-01-12 18:52:47 +01:00
|
|
|
commit=""
|
|
|
|
ray_branch=""
|
|
|
|
|
|
|
|
for i in "$@"
|
|
|
|
do
|
|
|
|
echo "$i"
|
|
|
|
case "$i" in
|
2021-02-10 17:16:31 +01:00
|
|
|
--nodes=*)
|
|
|
|
nodes="${i#*=}"
|
|
|
|
;;
|
2021-01-12 18:52:47 +01:00
|
|
|
--ray-version=*)
|
|
|
|
ray_version="${i#*=}"
|
|
|
|
;;
|
|
|
|
--commit=*)
|
|
|
|
commit="${i#*=}"
|
|
|
|
;;
|
|
|
|
--ray-branch=*)
|
|
|
|
ray_branch="${i#*=}"
|
|
|
|
;;
|
|
|
|
--workload=*)
|
|
|
|
workload="${i#*=}"
|
|
|
|
;;
|
|
|
|
--help)
|
|
|
|
usage
|
|
|
|
exit
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "unknown arg, $i"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2021-02-10 17:16:31 +01:00
|
|
|
if [[ $nodes == "" || $ray_version == "" || $commit == "" || $ray_branch == "" ]]
|
2021-01-12 18:52:47 +01:00
|
|
|
then
|
2021-02-10 17:16:31 +01:00
|
|
|
echo "Provide --nodes --ray-version, --commit, and --ray-branch"
|
2021-01-12 18:52:47 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2021-02-10 17:16:31 +01:00
|
|
|
echo "nodes: $nodes"
|
2021-01-12 18:52:47 +01:00
|
|
|
echo "version: $ray_version"
|
|
|
|
echo "commit: $commit"
|
|
|
|
echo "branch: $ray_branch"
|
|
|
|
echo "workload: ignored"
|
|
|
|
|
2021-02-10 17:16:31 +01:00
|
|
|
# wheel="https://s3-us-west-2.amazonaws.com/ray-wheels/$ray_branch/$commit/ray-$ray_version-cp37-cp37m-manylinux2014_x86_64.whl"
|
|
|
|
# pip install -U "$wheel"
|
2021-01-12 18:52:47 +01:00
|
|
|
|
2021-02-10 17:16:31 +01:00
|
|
|
if ! python "wait_cluster.py" "$nodes" 600; then
|
2021-01-12 18:52:47 +01:00
|
|
|
echo "Cluster did not come up in time. Aborting test."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
python "workloads/$workload.py"
|