-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[reefd] Script to launch instance and verify wheels #248
base: main
Are you sure you want to change the base?
Conversation
khluu
commented
Nov 19, 2024
- Launch an EC2 instance with Ubuntu AMI with a bootstrap script that can install conda, clone Ray, and perform wheel verification on Linux x86_64 wheels.
- Store the sanity check results in log then send the log over to the HTTP endpoint to report result.
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice little script!
reefd/launch.go
Outdated
) | ||
|
||
func main() { | ||
RAY_VERSION := flag.String("ray_version", "", "The version of Ray to install") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: don't use app caps, use camel cases.
reefd/launch.go
Outdated
mkdir -p ~/miniconda3 | ||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh | ||
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 | ||
rm ~/miniconda3/miniconda.sh | ||
source ~/miniconda3/bin/activate | ||
git clone https://github.com/ray-project/ray.git | ||
cd ray | ||
export RAY_VERSION="%s" | ||
export RAY_COMMIT="%s" | ||
export PYTHON_VERSION="%s" | ||
conda create -n ray python=${PYTHON_VERSION} -y | ||
conda activate ray | ||
pip install \ | ||
--index-url https://test.pypi.org/simple/ \ | ||
--extra-index-url https://pypi.org/simple \ | ||
"ray[cpp]==$RAY_VERSION" | ||
|
||
cd release/util | ||
python sanity_check.py --ray_version="${RAY_VERSION}" --ray_commit="${RAY_COMMIT}" > sanity_check.log | ||
|
||
curl -X POST -d @sanity_check.log "%s" | ||
`, *RAY_VERSION, *RAY_COMMIT, *PYTHON_VERSION, *ENDPOINT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract this script out to global scope. in its current form, it is a literal multi-line string, and it is capturing all the \t
tab chars.
Signed-off-by: kevin <[email protected]>