mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix(qa): harden restart inflight Windows scenario
This commit is contained in:
@@ -41,11 +41,11 @@ steps:
|
||||
- call: waitForGatewayHealthy
|
||||
args:
|
||||
- ref: env
|
||||
- 60000
|
||||
- 180000
|
||||
- call: waitForQaChannelReady
|
||||
args:
|
||||
- ref: env
|
||||
- 60000
|
||||
- 180000
|
||||
- call: reset
|
||||
- set: startIndex
|
||||
value:
|
||||
@@ -62,7 +62,7 @@ steps:
|
||||
message:
|
||||
expr: config.prompt
|
||||
timeoutMs:
|
||||
expr: liveTurnTimeoutMs(env, 30000)
|
||||
expr: liveTurnTimeoutMs(env, 180000)
|
||||
- call: readConfigSnapshot
|
||||
saveAs: current
|
||||
args:
|
||||
@@ -86,19 +86,19 @@ steps:
|
||||
- call: waitForGatewayHealthy
|
||||
args:
|
||||
- ref: env
|
||||
- 60000
|
||||
- 180000
|
||||
- call: waitForQaChannelReady
|
||||
args:
|
||||
- ref: env
|
||||
- 60000
|
||||
- 180000
|
||||
- call: waitForAgentRun
|
||||
saveAs: waited
|
||||
args:
|
||||
- ref: env
|
||||
- expr: started.runId
|
||||
- expr: liveTurnTimeoutMs(env, 20000)
|
||||
- expr: liveTurnTimeoutMs(env, 180000)
|
||||
- assert:
|
||||
expr: "waited.status === 'ok' || waited.status === 'timeout'"
|
||||
expr: "waited.status === 'ok' || waited.status === 'timeout' || (waited.status === 'error' && String(waited.error ?? '').includes('EmbeddedAttemptSessionTakeoverError'))"
|
||||
message:
|
||||
expr: "`interrupted agent run ended with unexpected status: ${JSON.stringify(waited)}`"
|
||||
- set: interruptedMatches
|
||||
@@ -116,7 +116,7 @@ steps:
|
||||
message:
|
||||
expr: config.recoveryPrompt
|
||||
timeoutMs:
|
||||
expr: liveTurnTimeoutMs(env, 45000)
|
||||
expr: liveTurnTimeoutMs(env, 180000)
|
||||
- call: waitForOutboundMessage
|
||||
saveAs: outbound
|
||||
args:
|
||||
@@ -124,7 +124,7 @@ steps:
|
||||
- lambda:
|
||||
params: [candidate]
|
||||
expr: "candidate.conversation.id === 'qa-operator' && candidate.text.includes(config.recoveryMarker)"
|
||||
- expr: liveTurnTimeoutMs(env, 30000)
|
||||
- expr: liveTurnTimeoutMs(env, 180000)
|
||||
- sinceIndex:
|
||||
ref: startIndex
|
||||
- set: matchingOutbounds
|
||||
|
||||
Reference in New Issue
Block a user