fix: pass sentinel quick verify prompt text (#916)
Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
@@ -1342,14 +1342,12 @@ function runSentinelQuickVerify(state: SentinelCicdState, reason: string, timeou
|
||||
return recordQuickVerify(state, quickVerifyTimeoutPayload(state, runId, scenarioId, reason, observerId, steps));
|
||||
}
|
||||
const args = ["hwlab", "nodes", "web-probe", "observe", "command", observerId, "--node", state.spec.nodeId, "--lane", state.spec.lane, "--type", type, "--wait-ms", "55000", "--command-timeout-seconds", String(remainingSeconds(deadline, 55))];
|
||||
let input: string | undefined;
|
||||
if (type === "selectProvider") args.push("--provider", stringAt(item, "provider"));
|
||||
if (type === "sendPrompt") {
|
||||
args.push("--text-stdin");
|
||||
input = prompts.prompts[promptIndex % prompts.prompts.length] ?? "";
|
||||
args.push("--text", prompts.prompts[promptIndex % prompts.prompts.length] ?? "");
|
||||
promptIndex += 1;
|
||||
}
|
||||
const commandResult = runChildCli(args, remainingSeconds(deadline, 60), input);
|
||||
const commandResult = runChildCli(args, remainingSeconds(deadline, 60));
|
||||
steps.push({ phase: `observe-command-${type}`, ok: commandResult.ok, promptIndex: type === "sendPrompt" ? promptIndex : null, result: commandResult.result });
|
||||
if (!commandResult.ok) {
|
||||
return recordQuickVerify(state, {
|
||||
|
||||
Reference in New Issue
Block a user