Skip to content

Commit da40380

Browse files
[Build] Annotate wheel and container path for release workflow (vllm-project#19162)
Signed-off-by: simon-mo <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 8fc5750 commit da40380

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.buildkite/release-pipeline.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
steps:
22
- label: "Build wheel - CUDA 12.8"
3+
id: build-wheel-cuda-12-8
34
agents:
45
queue: cpu_queue_postmerge
56
commands:
@@ -11,6 +12,7 @@ steps:
1112
DOCKER_BUILDKIT: "1"
1213

1314
- label: "Build wheel - CUDA 12.6"
15+
id: build-wheel-cuda-12-6
1416
agents:
1517
queue: cpu_queue_postmerge
1618
commands:
@@ -28,6 +30,7 @@ steps:
2830

2931
- label: "Build wheel - CUDA 11.8"
3032
# depends_on: block-build-cu118-wheel
33+
id: build-wheel-cuda-11-8
3134
agents:
3235
queue: cpu_queue_postmerge
3336
commands:
@@ -44,13 +47,26 @@ steps:
4447

4548
- label: "Build release image"
4649
depends_on: block-release-image-build
50+
id: build-release-image
4751
agents:
4852
queue: cpu_queue_postmerge
4953
commands:
5054
- "aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7"
5155
- "DOCKER_BUILDKIT=1 docker build --build-arg max_jobs=16 --build-arg USE_SCCACHE=1 --build-arg GIT_REPO_CHECK=1 --build-arg CUDA_VERSION=12.8.1 --tag public.ecr.aws/q9t5s3a7/vllm-release-repo:$BUILDKITE_COMMIT --target vllm-openai --progress plain -f docker/Dockerfile ."
5256
- "docker push public.ecr.aws/q9t5s3a7/vllm-release-repo:$BUILDKITE_COMMIT"
5357

58+
- label: "Annotate release workflow"
59+
depends_on:
60+
- build-release-image
61+
- build-wheel-cuda-12-8
62+
- build-wheel-cuda-12-6
63+
- build-wheel-cuda-11-8
64+
id: annotate-release-workflow
65+
agents:
66+
queue: cpu_queue_postmerge
67+
commands:
68+
- "bash .buildkite/scripts/annotate-release.sh"
69+
5470
- label: "Build and publish TPU release image"
5571
depends_on: ~
5672
if: build.env("NIGHTLY") == "1"
@@ -70,9 +86,10 @@ steps:
7086
DOCKER_BUILDKIT: "1"
7187

7288
- input: "Provide Release version here"
89+
id: input-release-version
7390
fields:
7491
- text: "What is the release version?"
75-
key: "release-version"
92+
key: release-version
7693

7794
- block: "Build CPU release image"
7895
key: block-cpu-release-image-build
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
# Get release version and strip leading 'v' if present
6+
RELEASE_VERSION=$(buildkite-agent meta-data get release-version | sed 's/^v//')
7+
8+
if [ -z "$RELEASE_VERSION" ]; then
9+
echo "Error: RELEASE_VERSION is empty. 'release-version' metadata might not be set or is invalid."
10+
exit 1
11+
fi
12+
13+
buildkite-agent annotate --style 'info' --context 'release-workflow' << EOF
14+
To download the wheel:
15+
\`\`\`
16+
aws s3 cp s3://vllm-wheels/${RELEASE_VERSION}/vllm-${RELEASE_VERSION}-cp38-abi3-manylinux1_x86_64.whl .
17+
aws s3 cp s3://vllm-wheels/${RELEASE_VERSION}+cu126/vllm-${RELEASE_VERSION}+cu126-cp38-abi3-manylinux1_x86_64.whl .
18+
aws s3 cp s3://vllm-wheels/${RELEASE_VERSION}+cu118/vllm-${RELEASE_VERSION}+cu118-cp38-abi3-manylinux1_x86_64.whl .
19+
\`\`\`
20+
21+
To download and upload the image:
22+
23+
\`\`\`
24+
docker pull public.ecr.aws/q9t5s3a7/vllm-release-repo:${BUILDKITE_COMMIT}
25+
docker tag public.ecr.aws/q9t5s3a7/vllm-release-repo:${BUILDKITE_COMMIT} vllm/vllm-openai
26+
docker tag vllm/vllm-openai vllm/vllm-openai:latest
27+
docker tag vllm/vllm-openai vllm/vllm-openai:v${RELEASE_VERSION}
28+
docker push vllm/vllm-openai:latest
29+
docker push vllm/vllm-openai:v${RELEASE_VERSION}
30+
\`\`\`
31+
EOF

0 commit comments

Comments
 (0)