






























@@ -18,6 +18,7 @@ export OPENCLAW_NO_ONBOARD=1
1818export OPENCLAW_NO_PROMPT=1
19192020baseline="${OPENCLAW_UPDATE_CORRUPT_PLUGIN_BASELINE:-openclaw@latest}"
21+update_timeout_seconds="${OPENCLAW_UPDATE_CORRUPT_PLUGIN_TIMEOUT_SECONDS:-900}"
2122echo "Installing baseline OpenClaw package: $baseline"
2223if ! openclaw_e2e_maybe_timeout "${OPENCLAW_E2E_NPM_INSTALL_TIMEOUT:-600s}" npm install -g --prefix /tmp/npm-prefix --omit=optional "$baseline" >/tmp/openclaw-update-corrupt-baseline-install.log 2>&1; then
2324 cat /tmp/openclaw-update-corrupt-baseline-install.log >&2 || true
@@ -57,12 +58,20 @@ fi
57585859echo "Updating OpenClaw with corrupt plugin present..."
5960set +e
60-node "$entry" update --channel beta --tag "${OPENCLAW_CURRENT_PACKAGE_TGZ:?missing OPENCLAW_CURRENT_PACKAGE_TGZ}" --yes --no-restart --json >/tmp/openclaw-update-corrupt-plugin.json 2>/tmp/openclaw-update-corrupt-plugin.err
61+openclaw_e2e_maybe_timeout "${update_timeout_seconds}s" \
62+ node "$entry" update \
63+ --channel beta \
64+ --tag "${OPENCLAW_CURRENT_PACKAGE_TGZ:?missing OPENCLAW_CURRENT_PACKAGE_TGZ}" \
65+ --yes \
66+ --no-restart \
67+ --json \
68+>/tmp/openclaw-update-corrupt-plugin.json \
69+2>/tmp/openclaw-update-corrupt-plugin.err
6170update_status=$?
6271set -e
6372if [ "$update_status" -ne 0 ]; then
6473if ! node scripts/e2e/lib/plugin-update/probe.mjs assert-legacy-post-update-plugin-failure /tmp/openclaw-update-corrupt-plugin.json; then
65-echo "openclaw update failed with corrupt plugin present" >&2
74+echo "openclaw update failed or timed out after ${update_timeout_seconds}s with corrupt plugin present" >&2
6675 cat /tmp/openclaw-update-corrupt-plugin.err >&2 || true
6776 cat /tmp/openclaw-update-corrupt-plugin.json >&2 || true
6877exit "$update_status"
@@ -72,11 +81,17 @@ if [ "$update_status" -ne 0 ]; then
7281 OPENCLAW_UPDATE_POST_CORE=1 \
7382 OPENCLAW_UPDATE_POST_CORE_CHANNEL=beta \
7483 OPENCLAW_UPDATE_POST_CORE_RESULT_PATH=/tmp/openclaw-update-corrupt-plugin-post-core.json \
75- node "$entry" update --yes --no-restart --json >/tmp/openclaw-update-corrupt-plugin-post-core.stdout 2>/tmp/openclaw-update-corrupt-plugin-post-core.err
84+ openclaw_e2e_maybe_timeout "${update_timeout_seconds}s" \
85+ node "$entry" update \
86+ --yes \
87+ --no-restart \
88+ --json \
89+>/tmp/openclaw-update-corrupt-plugin-post-core.stdout \
90+2>/tmp/openclaw-update-corrupt-plugin-post-core.err
7691 post_core_status=$?
7792set -e
7893if [ "$post_core_status" -ne 0 ]; then
79-echo "updated OpenClaw entry failed post-core plugin verification" >&2
94+echo "updated OpenClaw entry failed or timed out after ${update_timeout_seconds}s during post-core plugin verification" >&2
8095 cat /tmp/openclaw-update-corrupt-plugin-post-core.err >&2 || true
8196 cat /tmp/openclaw-update-corrupt-plugin-post-core.stdout >&2 || true
8297 cat /tmp/openclaw-update-corrupt-plugin-post-core.json >&2 || true
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。