From 78005aaf85542e9fa88be7ec2814d729085a50d3 Mon Sep 17 00:00:00 2001 From: wangbo Date: Fri, 31 Jul 2026 02:56:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(acceptance):=20=E5=85=BC=E5=AE=B9=E5=8F=AA?= =?UTF-8?q?=E8=AF=BB=E5=8E=8B=E6=B5=8B=E5=AE=B9=E5=99=A8=E6=8A=A5=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 验收模拟器 Pod 使用只读根文件系统,失败报告缓冲不能依赖 mktemp。改为在 Shell 内存中捕获并回放压测 JSON,同时保留原始退出状态。\n\n验证:bash -n、ShellCheck、远端脚本语法检查、git diff --check。 --- scripts/cluster/run-production-acceptance.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/cluster/run-production-acceptance.sh b/scripts/cluster/run-production-acceptance.sh index efa0568..2da29a7 100755 --- a/scripts/cluster/run-production-acceptance.sh +++ b/scripts/cluster/run-production-acceptance.sh @@ -710,13 +710,11 @@ export AI_GATEWAY_ACCEPTANCE_RUN_TOKEN=$(decode "$run_token_b64") export AI_GATEWAY_ACCEPTANCE_GEMINI_MODEL=$(decode "$gemini_model_b64") export AI_GATEWAY_ACCEPTANCE_VIDEO_MODEL=$(decode "$video_model_b64") export AI_GATEWAY_ACCEPTANCE_REAL_IMAGE_URLS=$(decode "$image_urls_b64") -report_file=$(mktemp) -trap '\''rm -f -- "$report_file"'\'' EXIT set +e -/app/easyai-ai-gateway-acceptance-load -profile "$1" >"$report_file" +report=$(/app/easyai-ai-gateway-acceptance-load -profile "$1") status=$? set -e -cat "$report_file" +printf "%s\n" "$report" exit "$status" ' {