-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Update release pipeline post PyTorch 2.8.0 update #24073
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
Changes from all commits
7db334d
f106b84
646428f
87a4a5c
7b7f903
8988fc1
b72ebd5
a067974
f3bd441
22864ff
43a6f63
db3dcc8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -58,14 +58,15 @@ python3 .buildkite/generate_index.py --wheel "$normal_wheel" | |||||||||||||||||||||||||||||||||||||||||||||||||||||
aws s3 cp "$wheel" "s3://vllm-wheels/$BUILDKITE_COMMIT/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
aws s3 cp "$normal_wheel" "s3://vllm-wheels/$BUILDKITE_COMMIT/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
if [[ $normal_wheel == *"cu118"* ]]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# if $normal_wheel matches cu118, do not upload the index.html | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
echo "Skipping index files for cu118 wheels" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
elif [[ $normal_wheel == *"cu126"* ]]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
if [[ $normal_wheel == *"cu126"* ]]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# if $normal_wheel matches cu126, do not upload the index.html | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
echo "Skipping index files for cu126 wheels" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
elif [[ $normal_wheel == *"cu128"* ]]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# if $normal_wheel matches cu128, do not upload the index.html | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
echo "Skipping index files for cu128 wheels" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# only upload index.html for cu128 wheels (default wheels) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# only upload index.html for cu129 wheels (default wheels) as it | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# is available on both x86 and arm64 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
aws s3 cp index.html "s3://vllm-wheels/$BUILDKITE_COMMIT/vllm/index.html" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
aws s3 cp "s3://vllm-wheels/nightly/index.html" "s3://vllm-wheels/$BUILDKITE_COMMIT/index.html" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
fi | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -74,14 +75,15 @@ fi | |||||||||||||||||||||||||||||||||||||||||||||||||||||
aws s3 cp "$wheel" "s3://vllm-wheels/nightly/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
aws s3 cp "$normal_wheel" "s3://vllm-wheels/nightly/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
if [[ $normal_wheel == *"cu118"* ]]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# if $normal_wheel matches cu118, do not upload the index.html | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
echo "Skipping index files for cu118 wheels" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
elif [[ $normal_wheel == *"cu126"* ]]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
if [[ $normal_wheel == *"cu126"* ]]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# if $normal_wheel matches cu126, do not upload the index.html | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
echo "Skipping index files for cu126 wheels" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
elif [[ $normal_wheel == *"cu128"* ]]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# if $normal_wheel matches cu128, do not upload the index.html | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
echo "Skipping index files for cu128 wheels" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# only upload index.html for cu128 wheels (default wheels) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# only upload index.html for cu129 wheels (default wheels) as it | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
# is available on both x86 and arm64 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
aws s3 cp index.html "s3://vllm-wheels/nightly/vllm/index.html" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
fi | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+78
to
88
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the block above, this Refactoring to a
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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.
The current
if/elif/else
structure for determining whether to upload index files is fragile. It assumes that any wheel not matchingcu126
orcu128
is the defaultcu129
. This could lead to incorrect behavior if other wheel versions are added to the build pipeline in the future.Using a
case
statement would make this logic more explicit and robust. It clearly defines the action for each known wheel type and can provide a warning for unexpected versions, preventing silent failures in the release process.