test: harden Parallels smoke timing

This commit is contained in:
Peter Steinberger
2026-04-25 21:41:55 +01:00
parent b49d499b45
commit bf672d1f2c
2 changed files with 21 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ TIMEOUT_BOOTSTRAP_S=600
TIMEOUT_INSTALL_S=420
TIMEOUT_VERIFY_S=90
TIMEOUT_ONBOARD_S=180
TIMEOUT_AGENT_S=180
TIMEOUT_AGENT_S="${OPENCLAW_PARALLELS_LINUX_AGENT_TIMEOUT_S:-300}"
TIMEOUT_GATEWAY_S=240
PHASE_STALE_WARN_S=60
@@ -750,6 +750,20 @@ show_gateway_status_compat() {
guest_exec openclaw gateway status --deep
}
verify_gateway_status() {
local attempt
for attempt in 1 2 3 4 5 6 7 8; do
if guest_exec openclaw gateway status --deep --require-rpc --timeout 15000; then
return 0
fi
if (( attempt < 8 )); then
printf 'gateway-status retry %s\n' "$attempt" >&2
sleep 5
fi
done
return 1
}
verify_local_turn() {
guest_exec openclaw models set "$MODEL_ID"
guest_exec /usr/bin/env "$API_KEY_ENV=$API_KEY_VALUE" openclaw agent \
@@ -889,7 +903,7 @@ run_fresh_main_lane() {
phase_run "fresh.inject-bad-plugin" "$TIMEOUT_VERIFY_S" inject_bad_plugin_fixture
phase_run "fresh.gateway-start" "$TIMEOUT_GATEWAY_S" start_gateway_background
phase_run "fresh.bad-plugin-diagnostic" "$TIMEOUT_VERIFY_S" verify_bad_plugin_diagnostic
phase_run "fresh.gateway-status" "$TIMEOUT_VERIFY_S" show_gateway_status_compat
phase_run "fresh.gateway-status" "$TIMEOUT_GATEWAY_S" verify_gateway_status
FRESH_GATEWAY_STATUS="pass"
phase_run "fresh.first-local-agent-turn" "$TIMEOUT_AGENT_S" verify_local_turn
FRESH_AGENT_STATUS="pass"
@@ -910,7 +924,7 @@ run_upgrade_lane() {
phase_run "upgrade.onboard-ref" "$TIMEOUT_ONBOARD_S" run_ref_onboard
phase_run "upgrade.gateway-start" "$TIMEOUT_GATEWAY_S" start_gateway_background
phase_run "upgrade.bad-plugin-diagnostic" "$TIMEOUT_VERIFY_S" verify_bad_plugin_diagnostic
phase_run "upgrade.gateway-status" "$TIMEOUT_VERIFY_S" show_gateway_status_compat
phase_run "upgrade.gateway-status" "$TIMEOUT_GATEWAY_S" verify_gateway_status
UPGRADE_GATEWAY_STATUS="pass"
phase_run "upgrade.first-local-agent-turn" "$TIMEOUT_AGENT_S" verify_local_turn
UPGRADE_AGENT_STATUS="pass"

View File

@@ -1452,13 +1452,13 @@ EOF
verify_gateway() {
local attempt
for attempt in 1 2 3 4; do
if guest_current_user_exec "$GUEST_OPENCLAW_BIN" gateway status --deep --require-rpc --timeout 5000; then
for attempt in 1 2 3 4 5 6 7 8; do
if guest_current_user_exec "$GUEST_OPENCLAW_BIN" gateway status --deep --require-rpc --timeout 15000; then
return 0
fi
if (( attempt < 4 )); then
if (( attempt < 8 )); then
printf 'gateway-status retry %s\n' "$attempt" >&2
sleep 3
sleep 5
fi
done
return 1