mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:20:43 +00:00
test(parallels): tolerate old updater stale chunk recovery
This commit is contained in:
@@ -1955,7 +1955,7 @@ run_fresh_main_lane() {
|
||||
local snapshot_id="$1"
|
||||
local host_ip="$2"
|
||||
phase_run "fresh.restore-snapshot" "$TIMEOUT_SNAPSHOT_S" restore_snapshot "$snapshot_id"
|
||||
phase_run "fresh.reset-state" "$TIMEOUT_VERIFY_S" reset_openclaw_user_state
|
||||
phase_run "fresh.reset-state" "$TIMEOUT_ONBOARD_S" reset_openclaw_user_state
|
||||
phase_run "fresh.install-main" "$(install_main_timeout)" install_main_tgz "$host_ip" "openclaw-main-fresh.tgz"
|
||||
FRESH_MAIN_VERSION="$(extract_last_version "$(phase_log_path fresh.install-main)")"
|
||||
phase_run "fresh.verify-main-version" "$TIMEOUT_VERIFY_S" verify_target_version
|
||||
@@ -1983,7 +1983,7 @@ run_upgrade_lane() {
|
||||
local snapshot_id="$1"
|
||||
local host_ip="$2"
|
||||
phase_run "upgrade.restore-snapshot" "$TIMEOUT_SNAPSHOT_S" restore_snapshot "$snapshot_id"
|
||||
phase_run "upgrade.reset-state" "$TIMEOUT_VERIFY_S" reset_openclaw_user_state
|
||||
phase_run "upgrade.reset-state" "$TIMEOUT_ONBOARD_S" reset_openclaw_user_state
|
||||
phase_run "upgrade.install-latest" "$TIMEOUT_INSTALL_SITE_S" install_latest_release
|
||||
LATEST_INSTALLED_VERSION="$(extract_last_version "$(phase_log_path upgrade.install-latest)")"
|
||||
phase_run "upgrade.verify-latest-version" "$TIMEOUT_VERIFY_S" verify_version_contains "$INSTALL_VERSION"
|
||||
|
||||
@@ -2096,6 +2096,13 @@ PY
|
||||
warn "windows dev update helper log drain failed after completion"
|
||||
fi
|
||||
rm -f "$log_state_path"
|
||||
if [[ "$done_status" != "0" ]] &&
|
||||
[[ "$guest_log" == *"ERR_MODULE_NOT_FOUND"* ]] &&
|
||||
[[ "$guest_log" == *"dist\\cli\\run-main.js"* ]] &&
|
||||
verify_windows_dev_update_after_transport_loss; then
|
||||
warn "windows dev update old updater hit stale dist chunk after install; product verification passed"
|
||||
return 0
|
||||
fi
|
||||
[[ "$done_status" == "0" ]]
|
||||
return $?
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user