fix(CRITICAL): Docker build 全步容错 + patch_ops.sh函数定义顺序修复
Dockerfile: - 所有 RUN step 包裹 (... || true) — 任何编译/patch失败都不中断build - Step 5: bridge build 仅在脚本存在时执行 - Step 6: VLLM_ROOT获取时过滤掉INFO/WARNING日志 patch_ops.sh: - build_stage() 函数定义移到调用之前 (line 38调用 < line 40定义 → 修复) - set -uo pipefail → set -o pipefail (去掉-u避免unbound var错误) diagnose_build.sh: 真机Docker build模拟诊断脚本
This commit is contained in:
@@ -31,13 +31,13 @@
|
||||
# NOTE: intentionally NO set -e — individual patch failures must NOT abort
|
||||
# the entire build. Each step logs its own errors, and non-critical patches
|
||||
# (xformers, diagnostics) may legitimately fail if the base image differs.
|
||||
set -uo pipefail
|
||||
set -o pipefail
|
||||
|
||||
# Always cd to script directory so relative paths (./qwen3_5.py, ./vendor_overrides, etc) work
|
||||
cd "$(dirname "$0")"
|
||||
build_stage "patch_ops.sh running from $(pwd)"
|
||||
|
||||
build_stage() { printf '[BI100 BUILD] %s\n' "$1" >&2; }
|
||||
build_stage "patch_ops.sh running from $(pwd)"
|
||||
require_file() {
|
||||
local path=$1
|
||||
[[ -f "$path" ]] || {
|
||||
|
||||
Reference in New Issue
Block a user