[Rocm][CI] add dockerfile.xpu to rocm ci artifact (#53949)

Signed-off-by: charlifu <charlifu@amd.com>

Charlie Fu committed Aug 27, 2026 at 03:06 UTC fd57c4b7afebc0b43d25ed7f5848fc35786463d0
1 file changed +6 -1
tests/tools/test_docker_build_metadata_args.py
+6 -1
@@ -154,7 +154,12 @@ def test_vllm_openai_image_embeds_metadata_contract() -> None:
154
155
156 def test_rust_build_cache_excludes_git_metadata() -> None:
157 - for name in ("Dockerfile", "Dockerfile.cpu", "Dockerfile.xpu"):
157 + from vllm.platforms import current_platform
158 +
159 + dockerfile_names = ["Dockerfile", "Dockerfile.cpu"]
160 + if not current_platform.is_rocm():
161 + dockerfile_names.append("Dockerfile.xpu")
162 + for name in dockerfile_names:
163 dockerfile = (REPO_ROOT / "docker" / name).read_text()
164 cached_stage, exact_version_stage = dockerfile.split(
165 "FROM rust-build-cache AS rust-build", maxsplit=1