fix: cancel sentinel quick verify on timeout (#921)
Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
@@ -1442,6 +1442,17 @@ function finalizeQuickVerifyFailure(state: SentinelCicdState, input: {
|
||||
readonly warnings?: readonly unknown[];
|
||||
}): Record<string, unknown> {
|
||||
const cleanupSteps: Record<string, unknown>[] = [];
|
||||
if (input.promptIndex > 0) {
|
||||
const cancel = runChildCli([
|
||||
"hwlab", "nodes", "web-probe", "observe", "command", input.observerId,
|
||||
"--node", state.spec.nodeId,
|
||||
"--lane", state.spec.lane,
|
||||
"--type", "cancel",
|
||||
"--wait-ms", "55000",
|
||||
"--command-timeout-seconds", "55",
|
||||
], 60);
|
||||
cleanupSteps.push({ phase: "observe-cancel-after-failure", ok: cancel.ok, result: cancel.result });
|
||||
}
|
||||
const stop = runChildCli([
|
||||
"hwlab", "nodes", "web-probe", "observe", "stop", input.observerId,
|
||||
"--node", state.spec.nodeId,
|
||||
|
||||
Reference in New Issue
Block a user