[ROCm] [Release] [Per-commit] Reenable per commit rocm wheel (#49044)

Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
This commit is contained in:
TJian
2026-07-19 13:38:04 -05:00
committed by GitHub
parent e6d1310b2a
commit ef0aa7ca2f
+312 -315
View File
@@ -590,373 +590,370 @@ steps:
# #
# ============================================================================= # =============================================================================
- block: "Unblock ROCm wheel/image prerequisites" - group: "Build ROCm Wheel / Image "
key: "build-rocm-wheel-image"
depends_on: ~ depends_on: ~
key: block-build-rocm steps:
if: build.env("NIGHTLY") != "1" # ROCm Job 1: Build ROCm Base Wheels (with S3 caching)
- label: ":rocm: Build ROCm Base Image & Wheels"
id: build-rocm-base-wheels
depends_on: ~
agents:
queue: cpu_queue_release
commands:
- |
set -euo pipefail
# ROCm Job 1: Build ROCm Base Wheels (with S3 caching) # Generate cache key
- label: ":rocm: Build ROCm Base Image & Wheels" CACHE_KEY=$$(.buildkite/scripts/cache-rocm-base-wheels.sh key)
id: build-rocm-base-wheels ECR_CACHE_TAG="public.ecr.aws/q9t5s3a7/vllm-release-repo:$${CACHE_KEY}-rocm-base"
depends_on:
- step: block-build-rocm
allow_failure: true
agents:
queue: cpu_queue_release
commands:
- |
set -euo pipefail
# Generate cache key echo "========================================"
CACHE_KEY=$$(.buildkite/scripts/cache-rocm-base-wheels.sh key) echo "ROCm Base Build Configuration"
ECR_CACHE_TAG="public.ecr.aws/q9t5s3a7/vllm-release-repo:$${CACHE_KEY}-rocm-base" echo "========================================"
echo " CACHE_KEY: $${CACHE_KEY}"
echo " ECR_CACHE_TAG: $${ECR_CACHE_TAG}"
echo "========================================"
echo "========================================" # Login to ECR
echo "ROCm Base Build Configuration" aws ecr-public get-login-password --region us-east-1 | \
echo "========================================" docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7
echo " CACHE_KEY: $${CACHE_KEY}"
echo " ECR_CACHE_TAG: $${ECR_CACHE_TAG}"
echo "========================================"
# Login to ECR IMAGE_EXISTS=false
aws ecr-public get-login-password --region us-east-1 | \ WHEELS_EXIST=false
docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7
IMAGE_EXISTS=false # Check ECR for Docker image
WHEELS_EXIST=false
# Check ECR for Docker image if docker manifest inspect "$${ECR_CACHE_TAG}" > /dev/null 2>&1; then
IMAGE_EXISTS=true
echo "ECR image cache HIT"
fi
if docker manifest inspect "$${ECR_CACHE_TAG}" > /dev/null 2>&1; then # Check S3 for wheels
IMAGE_EXISTS=true WHEEL_CACHE_STATUS=$(.buildkite/scripts/cache-rocm-base-wheels.sh check)
echo "ECR image cache HIT" if [ "$${WHEEL_CACHE_STATUS}" = "hit" ]; then
fi WHEELS_EXIST=true
echo "S3 wheels cache HIT"
# Check S3 for wheels fi
WHEEL_CACHE_STATUS=$(.buildkite/scripts/cache-rocm-base-wheels.sh check)
if [ "$${WHEEL_CACHE_STATUS}" = "hit" ]; then
WHEELS_EXIST=true
echo "S3 wheels cache HIT"
fi
# Scenario 1: Both cached (best case) # Scenario 1: Both cached (best case)
if [ "$${IMAGE_EXISTS}" = "true" ] && [ "$${WHEELS_EXIST}" = "true" ]; then if [ "$${IMAGE_EXISTS}" = "true" ] && [ "$${WHEELS_EXIST}" = "true" ]; then
echo "" echo ""
echo "FULL CACHE HIT - Reusing both image and wheels" echo "FULL CACHE HIT - Reusing both image and wheels"
echo "" echo ""
# Download wheels # Download wheels
.buildkite/scripts/cache-rocm-base-wheels.sh download .buildkite/scripts/cache-rocm-base-wheels.sh download
# Save ECR tag for downstream jobs # Save ECR tag for downstream jobs
buildkite-agent meta-data set "rocm-base-image-tag" "$${ECR_CACHE_TAG}" buildkite-agent meta-data set "rocm-base-image-tag" "$${ECR_CACHE_TAG}"
# Scenario 2: Full rebuild needed # Scenario 2: Full rebuild needed
else else
echo "" echo ""
echo " CACHE MISS - Building from scratch..." echo " CACHE MISS - Building from scratch..."
echo "" echo ""
# Build full base image and push to ECR # Build full base image and push to ECR
DOCKER_BUILDKIT=1 docker buildx build \ DOCKER_BUILDKIT=1 docker buildx build \
--file docker/Dockerfile.rocm_base \ --file docker/Dockerfile.rocm_base \
--tag "$${ECR_CACHE_TAG}" \ --tag "$${ECR_CACHE_TAG}" \
--build-arg USE_SCCACHE=1 \ --build-arg USE_SCCACHE=1 \
--build-arg SCCACHE_BUCKET_NAME=vllm-build-sccache \ --build-arg SCCACHE_BUCKET_NAME=vllm-build-sccache \
--build-arg SCCACHE_REGION_NAME=us-west-2 \ --build-arg SCCACHE_REGION_NAME=us-west-2 \
--build-arg SCCACHE_S3_NO_CREDENTIALS=0 \ --build-arg SCCACHE_S3_NO_CREDENTIALS=0 \
--push \ --push \
. .
# Build wheel extraction stage # Build wheel extraction stage
DOCKER_BUILDKIT=1 docker buildx build \ DOCKER_BUILDKIT=1 docker buildx build \
--file docker/Dockerfile.rocm_base \ --file docker/Dockerfile.rocm_base \
--tag rocm-base-debs:$${BUILDKITE_BUILD_NUMBER} \ --tag rocm-base-debs:$${BUILDKITE_BUILD_NUMBER} \
--target debs_wheel_release \ --target debs_wheel_release \
--build-arg USE_SCCACHE=1 \ --build-arg USE_SCCACHE=1 \
--build-arg SCCACHE_BUCKET_NAME=vllm-build-sccache \ --build-arg SCCACHE_BUCKET_NAME=vllm-build-sccache \
--build-arg SCCACHE_REGION_NAME=us-west-2 \ --build-arg SCCACHE_REGION_NAME=us-west-2 \
--build-arg SCCACHE_S3_NO_CREDENTIALS=0 \ --build-arg SCCACHE_S3_NO_CREDENTIALS=0 \
--load \ --load \
. .
# Extract and upload wheels # Extract and upload wheels
mkdir -p artifacts/rocm-base-wheels mkdir -p artifacts/rocm-base-wheels
cid=$(docker create rocm-base-debs:$${BUILDKITE_BUILD_NUMBER}) cid=$(docker create rocm-base-debs:$${BUILDKITE_BUILD_NUMBER})
docker cp $${cid}:/app/debs/. artifacts/rocm-base-wheels/ docker cp $${cid}:/app/debs/. artifacts/rocm-base-wheels/
docker rm $${cid} docker rm $${cid}
.buildkite/scripts/cache-rocm-base-wheels.sh upload .buildkite/scripts/cache-rocm-base-wheels.sh upload
# Cache base docker image to ECR # Cache base docker image to ECR
docker push "$${ECR_CACHE_TAG}" docker push "$${ECR_CACHE_TAG}"
buildkite-agent meta-data set "rocm-base-image-tag" "$${ECR_CACHE_TAG}" buildkite-agent meta-data set "rocm-base-image-tag" "$${ECR_CACHE_TAG}"
echo "" echo ""
echo " Build complete - Image and wheels cached" echo " Build complete - Image and wheels cached"
fi fi
artifact_paths: artifact_paths:
- "artifacts/rocm-base-wheels/*.whl" - "artifacts/rocm-base-wheels/*.whl"
env: env:
DOCKER_BUILDKIT: "1" DOCKER_BUILDKIT: "1"
S3_BUCKET: "vllm-wheels" S3_BUCKET: "vllm-wheels"
# ROCm Job 2: Build vLLM ROCm Wheel # ROCm Job 2: Build vLLM ROCm Wheel
- label: ":python: Build vLLM ROCm Wheel - x86_64" - label: ":python: Build vLLM ROCm Wheel - x86_64"
id: build-rocm-vllm-wheel id: build-rocm-vllm-wheel
depends_on: depends_on:
- step: build-rocm-base-wheels - step: build-rocm-base-wheels
allow_failure: false allow_failure: false
agents: agents:
queue: cpu_queue_release queue: cpu_queue_release
timeout_in_minutes: 180 timeout_in_minutes: 180
commands: commands:
# Download artifacts and prepare Docker image # Download artifacts and prepare Docker image
- | - |
set -euo pipefail set -euo pipefail
# Ensure git tags are up-to-date (Buildkite's default fetch doesn't update tags) # Ensure git tags are up-to-date (Buildkite's default fetch doesn't update tags)
# This fixes version detection when tags are moved/force-pushed # This fixes version detection when tags are moved/force-pushed
echo "Fetching latest tags from origin..." echo "Fetching latest tags from origin..."
git fetch --tags --force origin git fetch --tags --force origin
# Log tag information for debugging version detection # Log tag information for debugging version detection
echo "========================================" echo "========================================"
echo "Git Tag Verification" echo "Git Tag Verification"
echo "========================================" echo "========================================"
echo "Current HEAD: $(git rev-parse HEAD)" echo "Current HEAD: $(git rev-parse HEAD)"
echo "git describe --tags: $(git describe --tags 2>/dev/null || echo 'No tags found')" echo "git describe --tags: $(git describe --tags 2>/dev/null || echo 'No tags found')"
echo "" echo ""
echo "Recent tags (pointing to commits near HEAD):" echo "Recent tags (pointing to commits near HEAD):"
git tag -l --sort=-creatordate | head -5 git tag -l --sort=-creatordate | head -5
echo "setuptools_scm version detection:" echo "setuptools_scm version detection:"
pip install -q setuptools_scm 2>/dev/null || true pip install -q setuptools_scm 2>/dev/null || true
python3 -c "import setuptools_scm; print(' Detected version:', setuptools_scm.get_version())" 2>/dev/null || echo " (setuptools_scm not available in this environment)" python3 -c "import setuptools_scm; print(' Detected version:', setuptools_scm.get_version())" 2>/dev/null || echo " (setuptools_scm not available in this environment)"
echo "========================================" echo "========================================"
# Download wheel artifacts from current build # Download wheel artifacts from current build
echo "Downloading wheel artifacts from current build" echo "Downloading wheel artifacts from current build"
buildkite-agent artifact download "artifacts/rocm-base-wheels/*.whl" . buildkite-agent artifact download "artifacts/rocm-base-wheels/*.whl" .
# Get ECR image tag from metadata (set by build-rocm-base-wheels) # Get ECR image tag from metadata (set by build-rocm-base-wheels)
ECR_IMAGE_TAG="$$(buildkite-agent meta-data get rocm-base-image-tag 2>/dev/null || echo '')" ECR_IMAGE_TAG="$$(buildkite-agent meta-data get rocm-base-image-tag 2>/dev/null || echo '')"
if [ -z "$${ECR_IMAGE_TAG}" ]; then if [ -z "$${ECR_IMAGE_TAG}" ]; then
echo "ERROR: rocm-base-image-tag metadata not found" echo "ERROR: rocm-base-image-tag metadata not found"
echo "This should have been set by the build-rocm-base-wheels job" echo "This should have been set by the build-rocm-base-wheels job"
exit 1 exit 1
fi fi
echo "Pulling base Docker image from ECR: $${ECR_IMAGE_TAG}" echo "Pulling base Docker image from ECR: $${ECR_IMAGE_TAG}"
# Login to ECR # Login to ECR
aws ecr-public get-login-password --region us-east-1 | \ aws ecr-public get-login-password --region us-east-1 | \
docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7 docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7
# Pull base Docker image from ECR # Pull base Docker image from ECR
docker pull "$${ECR_IMAGE_TAG}" docker pull "$${ECR_IMAGE_TAG}"
echo "Loaded base image: $${ECR_IMAGE_TAG}" echo "Loaded base image: $${ECR_IMAGE_TAG}"
# Prepare base wheels for Docker build context # Prepare base wheels for Docker build context
mkdir -p docker/context/base-wheels mkdir -p docker/context/base-wheels
touch docker/context/base-wheels/.keep touch docker/context/base-wheels/.keep
cp artifacts/rocm-base-wheels/*.whl docker/context/base-wheels/ cp artifacts/rocm-base-wheels/*.whl docker/context/base-wheels/
echo "Base wheels for vLLM build:" echo "Base wheels for vLLM build:"
ls -lh docker/context/base-wheels/ ls -lh docker/context/base-wheels/
echo "========================================" echo "========================================"
echo "Building vLLM wheel with:" echo "Building vLLM wheel with:"
echo " BUILDKITE_COMMIT: $${BUILDKITE_COMMIT}" echo " BUILDKITE_COMMIT: $${BUILDKITE_COMMIT}"
echo " BUILDKITE_BRANCH: $${BUILDKITE_BRANCH}" echo " BUILDKITE_BRANCH: $${BUILDKITE_BRANCH}"
echo " BASE_IMAGE: $${ECR_IMAGE_TAG}" echo " BASE_IMAGE: $${ECR_IMAGE_TAG}"
echo "========================================" echo "========================================"
# Build vLLM wheel using local checkout (REMOTE_VLLM=0) # Build vLLM wheel using local checkout (REMOTE_VLLM=0)
DOCKER_BUILDKIT=1 docker build \ DOCKER_BUILDKIT=1 docker build \
--file docker/Dockerfile.rocm \ --file docker/Dockerfile.rocm \
--target export_vllm_wheel_release \ --target export_vllm_wheel_release \
--output type=local,dest=rocm-dist \ --output type=local,dest=rocm-dist \
--build-arg BASE_IMAGE="$${ECR_IMAGE_TAG}" \ --build-arg BASE_IMAGE="$${ECR_IMAGE_TAG}" \
--build-arg REMOTE_VLLM=0 \ --build-arg REMOTE_VLLM=0 \
--build-arg GIT_REPO_CHECK=1 \ --build-arg GIT_REPO_CHECK=1 \
--build-arg USE_SCCACHE=1 \ --build-arg USE_SCCACHE=1 \
--build-arg SCCACHE_BUCKET_NAME=vllm-build-sccache \ --build-arg SCCACHE_BUCKET_NAME=vllm-build-sccache \
--build-arg SCCACHE_REGION_NAME=us-west-2 \ --build-arg SCCACHE_REGION_NAME=us-west-2 \
--build-arg SCCACHE_S3_NO_CREDENTIALS=0 \ --build-arg SCCACHE_S3_NO_CREDENTIALS=0 \
. .
echo "Built vLLM wheel:" echo "Built vLLM wheel:"
ls -lh rocm-dist/*.whl ls -lh rocm-dist/*.whl
# Copy wheel to artifacts directory # Copy wheel to artifacts directory
mkdir -p artifacts/rocm-vllm-wheel mkdir -p artifacts/rocm-vllm-wheel
cp rocm-dist/*.whl artifacts/rocm-vllm-wheel/ cp rocm-dist/*.whl artifacts/rocm-vllm-wheel/
echo "Final vLLM wheel:" echo "Final vLLM wheel:"
ls -lh artifacts/rocm-vllm-wheel/ ls -lh artifacts/rocm-vllm-wheel/
artifact_paths: artifact_paths:
- "artifacts/rocm-vllm-wheel/*.whl" - "artifacts/rocm-vllm-wheel/*.whl"
env: env:
DOCKER_BUILDKIT: "1" DOCKER_BUILDKIT: "1"
S3_BUCKET: "vllm-wheels" S3_BUCKET: "vllm-wheels"
# ROCm Job 3: Upload Wheels to S3 # ROCm Job 3: Upload Wheels to S3
- label: ":s3: Upload ROCm Wheels to S3" - label: ":s3: Upload ROCm Wheels to S3"
id: upload-rocm-wheels id: upload-rocm-wheels
depends_on: depends_on:
- step: build-rocm-vllm-wheel - step: build-rocm-vllm-wheel
allow_failure: false allow_failure: false
agents: agents:
queue: cpu_queue_release queue: cpu_queue_release
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
# Download all wheel artifacts and run upload # Download all wheel artifacts and run upload
- | - |
set -euo pipefail set -euo pipefail
# Download artifacts from current build # Download artifacts from current build
echo "Downloading artifacts from current build" echo "Downloading artifacts from current build"
buildkite-agent artifact download "artifacts/rocm-base-wheels/*.whl" . # buildkite-agent artifact download "artifacts/rocm-base-wheels/*.whl" .
buildkite-agent artifact download "artifacts/rocm-vllm-wheel/*.whl" . # buildkite-agent artifact download "artifacts/rocm-vllm-wheel/*.whl" .
# Run upload script # # Run upload script
bash .buildkite/scripts/upload-rocm-wheels.sh bash .buildkite/scripts/upload-rocm-wheels.sh
env: env:
DOCKER_BUILDKIT: "1" DOCKER_BUILDKIT: "1"
S3_BUCKET: "vllm-wheels" S3_BUCKET: "vllm-wheels"
# ROCm Job 4: Annotate ROCm Wheel Release # ROCm Job 4: Annotate ROCm Wheel Release
- label: ":memo: Annotate ROCm wheel release" - label: ":memo: Annotate ROCm wheel release"
id: annotate-rocm-release id: annotate-rocm-release
depends_on: depends_on:
- upload-rocm-wheels - upload-rocm-wheels
agents: agents:
queue: cpu_queue_release queue: cpu_queue_release
commands: commands:
- "bash .buildkite/scripts/annotate-rocm-release.sh" - "bash .buildkite/scripts/annotate-rocm-release.sh"
env: env:
S3_BUCKET: "vllm-wheels" S3_BUCKET: "vllm-wheels"
# ROCm Job 5: Generate Root Index for ROCm Wheels (for release only) # ROCm Job 5: Generate Root Index for ROCm Wheels (for release only)
# This is the job to create https://wheels.vllm.ai/rocm/ index allowing # This is the job to create https://wheels.vllm.ai/rocm/ index allowing
# users to install with `uv pip install vllm --extra-index-url https://wheels.vllm.ai/rocm/` # users to install with `uv pip install vllm --extra-index-url https://wheels.vllm.ai/rocm/`
- block: "Generate Root Index for ROCm Wheels for Release" - block: "Generate Root Index for ROCm Wheels for Release"
key: block-generate-root-index-rocm-wheels key: block-generate-root-index-rocm-wheels
depends_on: upload-rocm-wheels depends_on: upload-rocm-wheels
- label: ":package: Generate Root Index for ROCm Wheels for Release" - label: ":package: Generate Root Index for ROCm Wheels for Release"
depends_on: block-generate-root-index-rocm-wheels depends_on: block-generate-root-index-rocm-wheels
id: generate-root-index-rocm-wheels id: generate-root-index-rocm-wheels
agents: agents:
queue: cpu_queue_release queue: cpu_queue_release
commands: commands:
- "bash tools/vllm-rocm/generate-rocm-wheels-root-index.sh" - "bash tools/vllm-rocm/generate-rocm-wheels-root-index.sh"
env: env:
S3_BUCKET: "vllm-wheels" S3_BUCKET: "vllm-wheels"
VARIANT: "rocm723" VARIANT: "rocm723"
# ROCm Job 6: Build ROCm Release Docker Image # ROCm Job 6: Build ROCm Release Docker Image
- label: ":docker: Build release image - x86_64 - ROCm" - label: ":docker: Build release image - x86_64 - ROCm"
id: build-rocm-release-image id: build-rocm-release-image
depends_on: depends_on:
- step: block-build-release-images - step: block-build-release-images
allow_failure: true allow_failure: true
- step: build-rocm-base-wheels - step: build-rocm-base-wheels
allow_failure: false allow_failure: false
agents: agents:
queue: cpu_queue_release queue: cpu_queue_release
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- | - |
set -euo pipefail set -euo pipefail
# Login to ECR # Login to ECR
aws ecr-public get-login-password --region us-east-1 | \ aws ecr-public get-login-password --region us-east-1 | \
docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7 docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7
# Get ECR image tag from metadata (set by build-rocm-base-wheels) # Get ECR image tag from metadata (set by build-rocm-base-wheels)
ECR_IMAGE_TAG="$$(buildkite-agent meta-data get rocm-base-image-tag 2>/dev/null || echo '')" ECR_IMAGE_TAG="$$(buildkite-agent meta-data get rocm-base-image-tag 2>/dev/null || echo '')"
if [ -z "$${ECR_IMAGE_TAG}" ]; then if [ -z "$${ECR_IMAGE_TAG}" ]; then
echo "ERROR: rocm-base-image-tag metadata not found" echo "ERROR: rocm-base-image-tag metadata not found"
echo "This should have been set by the build-rocm-base-wheels job" echo "This should have been set by the build-rocm-base-wheels job"
exit 1 exit 1
fi fi
echo "Pulling base Docker image from ECR: $${ECR_IMAGE_TAG}" echo "Pulling base Docker image from ECR: $${ECR_IMAGE_TAG}"
# Pull base Docker image from ECR # Pull base Docker image from ECR
docker pull "$${ECR_IMAGE_TAG}" docker pull "$${ECR_IMAGE_TAG}"
echo "Loaded base image: $${ECR_IMAGE_TAG}" echo "Loaded base image: $${ECR_IMAGE_TAG}"
# Pass the base image ECR tag to downstream steps (nightly publish) # Pass the base image ECR tag to downstream steps (nightly publish)
buildkite-agent meta-data set "rocm-base-ecr-tag" "$${ECR_IMAGE_TAG}" buildkite-agent meta-data set "rocm-base-ecr-tag" "$${ECR_IMAGE_TAG}"
echo "========================================" echo "========================================"
echo "Building vLLM ROCm release image with:" echo "Building vLLM ROCm release image with:"
echo " BASE_IMAGE: $${ECR_IMAGE_TAG}" echo " BASE_IMAGE: $${ECR_IMAGE_TAG}"
echo " BUILDKITE_COMMIT: $${BUILDKITE_COMMIT}" echo " BUILDKITE_COMMIT: $${BUILDKITE_COMMIT}"
echo "========================================" echo "========================================"
# Build vLLM ROCm release image using cached base # Build vLLM ROCm release image using cached base
DOCKER_BUILDKIT=1 docker build \ DOCKER_BUILDKIT=1 docker build \
--build-arg max_jobs=16 \ --build-arg max_jobs=16 \
--build-arg BASE_IMAGE="$${ECR_IMAGE_TAG}" \ --build-arg BASE_IMAGE="$${ECR_IMAGE_TAG}" \
--build-arg USE_SCCACHE=1 \ --build-arg USE_SCCACHE=1 \
--build-arg SCCACHE_BUCKET_NAME=vllm-build-sccache \ --build-arg SCCACHE_BUCKET_NAME=vllm-build-sccache \
--build-arg SCCACHE_REGION_NAME=us-west-2 \ --build-arg SCCACHE_REGION_NAME=us-west-2 \
--build-arg SCCACHE_S3_NO_CREDENTIALS=0 \ --build-arg SCCACHE_S3_NO_CREDENTIALS=0 \
--tag public.ecr.aws/q9t5s3a7/vllm-release-repo:$${BUILDKITE_COMMIT}-rocm \ --tag public.ecr.aws/q9t5s3a7/vllm-release-repo:$${BUILDKITE_COMMIT}-rocm \
--target vllm-openai \ --target vllm-openai \
--progress plain \ --progress plain \
-f docker/Dockerfile.rocm . -f docker/Dockerfile.rocm .
# Push to ECR # Push to ECR
docker push public.ecr.aws/q9t5s3a7/vllm-release-repo:$${BUILDKITE_COMMIT}-rocm docker push public.ecr.aws/q9t5s3a7/vllm-release-repo:$${BUILDKITE_COMMIT}-rocm
echo "" echo ""
echo " Successfully built and pushed ROCm release image" echo " Successfully built and pushed ROCm release image"
echo " Image: public.ecr.aws/q9t5s3a7/vllm-release-repo:$${BUILDKITE_COMMIT}-rocm" echo " Image: public.ecr.aws/q9t5s3a7/vllm-release-repo:$${BUILDKITE_COMMIT}-rocm"
echo "" echo ""
env: env:
DOCKER_BUILDKIT: "1" DOCKER_BUILDKIT: "1"
S3_BUCKET: "vllm-wheels" S3_BUCKET: "vllm-wheels"
- label: "Publish nightly XPU image to DockerHub" - label: "Publish nightly XPU image to DockerHub"
depends_on: depends_on:
- create-manifest-xpu - create-manifest-xpu
if: build.env("NIGHTLY") == "1" if: build.env("NIGHTLY") == "1"
agents: agents:
queue: small_cpu_queue_release queue: small_cpu_queue_release
commands: commands:
- "bash .buildkite/scripts/xpu/push-nightly-builds-xpu.sh" - "bash .buildkite/scripts/xpu/push-nightly-builds-xpu.sh"
- "bash .buildkite/scripts/cleanup-nightly-builds.sh nightly- vllm/vllm-openai-xpu" - "bash .buildkite/scripts/cleanup-nightly-builds.sh nightly- vllm/vllm-openai-xpu"
plugins: plugins:
- docker-login#v3.0.0: - docker-login#v3.0.0:
username: vllmbot username: vllmbot
password-env: DOCKERHUB_TOKEN password-env: DOCKERHUB_TOKEN
env: env:
DOCKER_BUILDKIT: "1" DOCKER_BUILDKIT: "1"
DOCKERHUB_USERNAME: "vllmbot" DOCKERHUB_USERNAME: "vllmbot"
- label: "Publish nightly ROCm image to DockerHub" - label: "Publish nightly ROCm image to DockerHub"
depends_on: depends_on:
- build-rocm-release-image - build-rocm-release-image
if: build.env("NIGHTLY") == "1" if: build.env("NIGHTLY") == "1"
agents: agents:
queue: small_cpu_queue_release queue: small_cpu_queue_release
commands: commands:
- "bash .buildkite/scripts/push-nightly-builds-rocm.sh" - "bash .buildkite/scripts/push-nightly-builds-rocm.sh"
# Clean up old nightly builds (keep only last 14) # Clean up old nightly builds (keep only last 14)
- "bash .buildkite/scripts/cleanup-nightly-builds.sh nightly- vllm/vllm-openai-rocm" - "bash .buildkite/scripts/cleanup-nightly-builds.sh nightly- vllm/vllm-openai-rocm"
- "bash .buildkite/scripts/cleanup-nightly-builds.sh base-nightly- vllm/vllm-openai-rocm" - "bash .buildkite/scripts/cleanup-nightly-builds.sh base-nightly- vllm/vllm-openai-rocm"
plugins: plugins:
- docker-login#v3.0.0: - docker-login#v3.0.0:
username: vllmbot username: vllmbot
password-env: DOCKERHUB_TOKEN password-env: DOCKERHUB_TOKEN
env: env:
DOCKER_BUILDKIT: "1" DOCKER_BUILDKIT: "1"
DOCKERHUB_USERNAME: "vllmbot" DOCKERHUB_USERNAME: "vllmbot"
# ============================================================================= # =============================================================================
# Publish to DockerHub and PyPI (at the end so all builds complete first) # Publish to DockerHub and PyPI (at the end so all builds complete first)