[CI][Build] Harden triton-cpu sleef submodule fetch in CPU image build (#57871)

Signed-off-by: kimi-no-na-wa <kimi-no-na-wa@users.noreply.github.com>
Co-authored-by: kimi-no-na-wa <kimi-no-na-wa@users.noreply.github.com>
This commit is contained in:
vllm-agent
2026-09-21 15:30:14 -07:00
committed by GitHub
co-authored by kimi-no-na-wa
parent 382970ee6c
commit 8644d2af2f
+6
View File
@@ -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; \