From 3aa0c3cffba3ab6cb6485379cabca65897f09ffa Mon Sep 17 00:00:00 2001 From: project6 Date: Mon, 10 Aug 2026 08:09:22 +0000 Subject: [PATCH] =?UTF-8?q?fix(build):=20restore=20strict=20error=20handli?= =?UTF-8?q?ng=20=E2=80=94=20find=20real=20build=20failures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 12 +++++------- ex_engine/build.sh | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 07ac4d0a..2a754f2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,8 @@ COPY ./qwen3_6_scripts /workspace/qwen3_6_scripts COPY ./computility-run.yaml /workspace/computility-run.yaml COPY ./ex_engine /workspace/ex_engine -# Build + patch in a single RUN layer. Every step tolerates failure. -RUN set +e && \ - chmod +x /workspace/ex_engine/build.sh && \ - bash /workspace/ex_engine/build.sh --corex || echo "[Dockerfile] build.sh non-zero (ok)" && \ - chmod +x /workspace/qwen3_6_scripts/patch_ops.sh && \ - bash /workspace/qwen3_6_scripts/patch_ops.sh || echo "[Dockerfile] patch_ops non-zero (ok)" && \ - echo "[Dockerfile] DONE" +RUN chmod +x /workspace/ex_engine/build.sh && \ + bash /workspace/ex_engine/build.sh --corex + +RUN chmod +x /workspace/qwen3_6_scripts/patch_ops.sh && \ + bash /workspace/qwen3_6_scripts/patch_ops.sh diff --git a/ex_engine/build.sh b/ex_engine/build.sh index d8e76189..18b58508 100755 --- a/ex_engine/build.sh +++ b/ex_engine/build.sh @@ -8,7 +8,7 @@ # ./ex_engine/build.sh # auto-detect toolchain # ./ex_engine/build.sh --nvcc # force nvcc (development) -set +e # Don't exit on error — Docker build must not fail on optional compilation +set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" BUILD_DIR="${SCRIPT_DIR}/build"