From 14e548e0ce200a6c0e7413d9a98cd84e13b89891 Mon Sep 17 00:00:00 2001 From: Lyon <88232613+pikasTech@users.noreply.github.com> Date: Fri, 26 Jun 2026 01:56:59 +0800 Subject: [PATCH] fix: cancel sentinel quick verify on timeout (#921) Co-authored-by: Codex --- scripts/src/hwlab-node-web-sentinel-cicd.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/src/hwlab-node-web-sentinel-cicd.ts b/scripts/src/hwlab-node-web-sentinel-cicd.ts index c7a2a7f5..fe26b6f1 100644 --- a/scripts/src/hwlab-node-web-sentinel-cicd.ts +++ b/scripts/src/hwlab-node-web-sentinel-cicd.ts @@ -1442,6 +1442,17 @@ function finalizeQuickVerifyFailure(state: SentinelCicdState, input: { readonly warnings?: readonly unknown[]; }): Record { const cleanupSteps: Record[] = []; + 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,