fix(qa): harden restart inflight Windows scenario

This commit is contained in:
Vincent Koc
2026-05-25 18:35:50 +02:00
parent 5cfa577778
commit 3eb06e305e
3 changed files with 14 additions and 9 deletions

View File

@@ -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