fix(build): restore strict error handling — find real build failures

This commit is contained in:
project6
2026-08-10 08:09:22 +00:00
parent 98fdcff9e9
commit 3aa0c3cffb
2 changed files with 6 additions and 8 deletions

View File

@@ -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

View File

@@ -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"