[ROCm][CI] Reuse equivalent ROCm CI images (#48646)

Signed-off-by: Andreas Karatzas <Andreas.Karatzas@amd.com>
Signed-off-by: Andreas Karatzas <akaratza@amd.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
Andreas Karatzas
2026-08-09 01:25:03 -07:00
committed by GitHub
co-authored by OpenAI Codex
parent f18e10a7e1
commit 7f6432cc0d
13 changed files with 1553 additions and 930 deletions
+12 -8
View File
@@ -1,9 +1,9 @@
group: Hardware - AMD Build
# ROCm image flow:
# 1. Refresh the long-lived ROCm base image only when Dockerfile.rocm_base changes.
# 2. Build ci_base from either the stable base or the freshly refreshed base.
# 3. Build the per-commit ROCm CI image and smoke-test it before GPU jobs run.
# 1. Select the content-matching ROCm base, building only on a cache miss.
# 2. Build ci_base from either the stable base or the newly selected base.
# 3. Build the build-scoped ROCm CI image and smoke-test it before GPU jobs run.
steps:
- label: "AMD: :docker: refresh ROCm base"
key: refresh-rocm-base-amd
@@ -12,6 +12,8 @@ steps:
no_plugin: true
commands:
- bash .buildkite/scripts/rocm/refresh-base-image.sh
concurrency: 1
concurrency_group: "vllm/rocm/base-build/$BUILDKITE_COMMIT"
env:
DOCKER_BUILDKIT: "1"
BUILDKIT_PROGRESS: "tty"
@@ -38,18 +40,21 @@ steps:
no_plugin: true
commands:
- bash .buildkite/scripts/rocm/build-ci-base.sh
concurrency: 1
concurrency_group: "vllm/rocm/ci-base-build/$BUILDKITE_COMMIT"
env:
DOCKER_BUILDKIT: "1"
BUILDKIT_PROGRESS: "tty"
TERM: "xterm-256color"
VLLM_BAKE_FILE: "docker/docker-bake-rocm.hcl"
PYTORCH_ROCM_ARCH: "gfx90a;gfx942;gfx950"
REMOTE_VLLM: "1"
VLLM_BRANCH: "$BUILDKITE_COMMIT"
REMOTE_VLLM: "0"
retry:
automatic:
- exit_status: 1 # Transient Docker/BuildKit failure
limit: 1
- exit_status: 2 # Exact image found but registry handoff failed
limit: 1
- exit_status: -1 # Agent was lost
limit: 1
- exit_status: -10 # Agent was lost
@@ -71,9 +76,8 @@ steps:
TERM: "xterm-256color"
VLLM_BAKE_FILE: "docker/docker-bake-rocm.hcl"
PYTORCH_ROCM_ARCH: "gfx90a;gfx942;gfx950"
IMAGE_TAG: "rocm/vllm-ci:$BUILDKITE_COMMIT"
REMOTE_VLLM: "1"
VLLM_BRANCH: "$BUILDKITE_COMMIT"
IMAGE_TAG: "rocm/vllm-ci:build-$BUILDKITE_BUILD_ID"
REMOTE_VLLM: "0"
retry:
automatic:
- exit_status: 1 # Transient Docker/BuildKit failure