fix: classify quick verify observer cleanup
This commit is contained in:
@@ -1963,7 +1963,7 @@ export function runNodeWebProbeObserveCommand(options: NodeWebProbeObserveOption
|
||||
: "graceful-stop-queued";
|
||||
return runNodeWebProbeObserveForceStop(options, spec, payload, commandId, reason, preStopStatus?.result ?? null, preStopStatus?.status ?? null, result);
|
||||
}
|
||||
return withWebObserveCommandRendered({
|
||||
const payloadResult = {
|
||||
ok: result.exitCode === 0 && commandResult?.ok !== false,
|
||||
status: result.exitCode === 0 ? (waitMs > 0 ? "completed-or-queued" : "queued") : "blocked",
|
||||
command: webObserveCommandLabel(stopCommand ? "stop" : "command", options),
|
||||
@@ -1978,7 +1978,8 @@ export function runNodeWebProbeObserveCommand(options: NodeWebProbeObserveOption
|
||||
result: compactCommandResult(result),
|
||||
full: options.full,
|
||||
valuesRedacted: true,
|
||||
});
|
||||
};
|
||||
return options.raw ? payloadResult : withWebObserveCommandRendered(payloadResult);
|
||||
}
|
||||
|
||||
export function runNodeWebProbeObserveForceStop(
|
||||
@@ -1997,7 +1998,7 @@ export function runNodeWebProbeObserveForceStop(
|
||||
nodeWebObserveForceStopNodeScript(reason, commandId),
|
||||
].join("\n"), 55);
|
||||
const forcePayload = parseJsonObject(killResult.stdout);
|
||||
return withWebObserveCommandRendered({
|
||||
const payloadResult = {
|
||||
ok: killResult.exitCode === 0 && forcePayload?.ok !== false,
|
||||
status: killResult.exitCode === 0 && forcePayload?.ok !== false ? "forced-stopped" : "blocked",
|
||||
command: webObserveCommandLabel("stop", options),
|
||||
@@ -2016,7 +2017,8 @@ export function runNodeWebProbeObserveForceStop(
|
||||
forceResult: compactCommandResultWithStdoutTail(killResult),
|
||||
full: options.full,
|
||||
valuesRedacted: true,
|
||||
});
|
||||
};
|
||||
return options.raw ? payloadResult : withWebObserveCommandRendered(payloadResult);
|
||||
}
|
||||
|
||||
export function runNodeWebProbeObserveCollect(options: NodeWebProbeObserveOptions, spec: HwlabRuntimeLaneSpec): Record<string, unknown> | RenderedCliResult {
|
||||
|
||||
Reference in New Issue
Block a user