fix: cancel sentinel quick verify on timeout (#921)

Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
Lyon
2026-06-26 01:56:59 +08:00
committed by GitHub
parent 8080c810b9
commit 14e548e0ce
@@ -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,