Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

khluu
Copy link
Contributor

@khluu 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.

p
Signed-off-by: kevin <[email protected]>
@khluu khluu requested a review from aslonnie November 19, 2024 21:34
Signed-off-by: kevin <[email protected]>
Copy link
Collaborator

@aslonnie aslonnie left a 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")
Copy link
Collaborator

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
Comment on lines 31 to 52
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)
Copy link
Collaborator

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.

p
Signed-off-by: kevin <[email protected]>
@khluu khluu requested a review from aslonnie December 5, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants