ci: pin the official vLLM main commit image

Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
This commit is contained in:
tzhouam committed 2026-10-01 15:26:34 +08:00
1 parent a038b38179
commit 383cc5ef1d
2 files changed
+22 -13

No files matched your search

+11 -6
View File
@@ -1,10 +1,11 @@
# Target vLLM version: v0.30.0 (tag @ ced6857afa0e).
# Use the matching release image and its coherent CUDA/PyTorch/FlashInfer
# runtime. Do not reinstall a commit wheel or repair dependencies on top of
# an older base image at a release boundary. For a future unreleased target,
# restore an explicit wheel pin and validate its complete runtime stack.
# Target an unreleased vLLM main commit. The official commit image carries
# the matching CUDA/PyTorch/FlashInfer stack; do not overlay a nightly wheel
# on the previous release image. Copilot updates this commit pin, which also
# selects the image used by CI. The selected commit must have a published
# nightly image as well as a cu130 wheel.
ARG VLLM_PRECOMPILED_WHEEL_COMMIT=ac9126e58aa7bbab1856ba6593ba4d5003fea516
ARG VLLM_BASE_IMAGE=vllm/vllm-openai
ARG VLLM_BASE_TAG=v0.30.0
ARG VLLM_BASE_TAG=nightly-${VLLM_PRECOMPILED_WHEEL_COMMIT}
# We use registry-based layer caching for the dependencies,
# where the tag is determined based on the hash of the contents
@@ -12,6 +13,7 @@ ARG VLLM_BASE_TAG=v0.30.0
# everything except the actual project dir, since that should not
# change much across branches.
FROM ${VLLM_BASE_IMAGE}:${VLLM_BASE_TAG} AS deps
ARG VLLM_PRECOMPILED_WHEEL_COMMIT
# Keep APP_DIR outside /workspace so k8s Buildkite workspace mounts cannot
# shadow the editable install target (#5364). Docker WORKDIR creates /opt if
# needed.
@@ -42,6 +44,9 @@ ENV SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0
# Do NOT use a non-editable install here — that copies an empty stub into
# site-packages and breaks ``import vllm_omni.entrypoints``.
RUN uv pip install --system -e ".[dev]"
# Fail the image build if dependency resolution replaced the selected vLLM
# or its compiled CUDA runtime no longer imports.
RUN python3 -c "import vllm, torch, flashinfer; import vllm._C_stable_libtorch; assert '${VLLM_PRECOMPILED_WHEEL_COMMIT}'[:8] in vllm.__version__, vllm.__version__"
# The final stage just copies the working dir on top of the
# dependencies image. This uses --link so that we can skip