fix(build): restore strict error handling — find real build failures
This commit is contained in:
12
Dockerfile
12
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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user