From 8644d2af2fb7c4588190a8d7f6c26a3cbef78a0f Mon Sep 17 00:00:00 2001 From: vllm-agent Date: Mon, 21 Sep 2026 15:30:14 -0700 Subject: [PATCH] [CI][Build] Harden triton-cpu sleef submodule fetch in CPU image build (#57871) Signed-off-by: kimi-no-na-wa Co-authored-by: kimi-no-na-wa --- docker/Dockerfile.cpu | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/Dockerfile.cpu b/docker/Dockerfile.cpu index f81ae88096..7898e57cf3 100644 --- a/docker/Dockerfile.cpu +++ b/docker/Dockerfile.cpu @@ -140,6 +140,12 @@ RUN --mount=type=cache,target=/root/.cache/uv \ git clone --recurse-submodules --shallow-submodules --filter=blob:none "https://github.com/triton-lang/triton-cpu.git"; \ cd triton-cpu; \ git checkout "270e696d"; \ + if [ ! -f third_party/sleef/CMakeLists.txt ]; then \ + echo "sleef submodule empty after shallow fetch; retrying unshallow"; \ + git submodule foreach --recursive 'git fetch --unshallow origin || true'; \ + git submodule update --init --recursive --force; \ + fi; \ + test -f third_party/sleef/CMakeLists.txt || { echo "FATAL: sleef submodule unavailable"; exit 1; }; \ if [ "$USE_SCCACHE" = "1" ]; then \ if [ "$SCCACHE_LOCAL_ONLY" = "1" ]; then \ unset SCCACHE_BUCKET SCCACHE_REGION; \