feat: move web-probe to top-level cli (#933)
Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
@@ -385,7 +385,7 @@ export function nodeRuntimePublicProbeDiagnostic(publicReady: boolean, targetHos
|
||||
affectsUserEntry: true,
|
||||
targetHostReady: targetReady,
|
||||
message: "control-plane public probe failed; treat this as a public endpoint readiness failure before using web-probe closeout evidence.",
|
||||
nextAction: "run hwlab nodes web-probe run for the same node/lane after checking publicProbe.web and publicProbe.apiHealth",
|
||||
nextAction: "run web-probe run for the same node/lane after checking publicProbe.web and publicProbe.apiHealth",
|
||||
};
|
||||
}
|
||||
if (targetHost.probeAvailable !== true) {
|
||||
@@ -542,7 +542,7 @@ export function summarizeNodeRuntimeControlPlaneStatus(status: Record<string, un
|
||||
plan: `bun scripts/cli.ts hwlab nodes control-plane plan --node ${scoped.node} --lane ${scoped.lane}`,
|
||||
triggerCurrent: `bun scripts/cli.ts hwlab nodes control-plane trigger-current --node ${scoped.node} --lane ${scoped.lane} --confirm`,
|
||||
gitMirrorFlush: `bun scripts/cli.ts hwlab nodes git-mirror flush --node ${scoped.node} --lane ${scoped.lane} --confirm --wait`,
|
||||
webProbe: `bun scripts/cli.ts hwlab nodes web-probe run --node ${scoped.node} --lane ${scoped.lane}`,
|
||||
webProbe: `bun scripts/cli.ts web-probe run --node ${scoped.node} --lane ${scoped.lane}`,
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -572,7 +572,7 @@ export function nodeRuntimeStatusNextAction(status: Record<string, unknown>, sco
|
||||
return `bun scripts/cli.ts hwlab nodes control-plane cleanup-runs --node ${scoped.node} --lane ${scoped.lane} --min-age-minutes 60 --limit 20 --dry-run`;
|
||||
}
|
||||
if (reason === "public-probe-not-ready") {
|
||||
return `bun scripts/cli.ts hwlab nodes web-probe run --node ${scoped.node} --lane ${scoped.lane}`;
|
||||
return `bun scripts/cli.ts web-probe run --node ${scoped.node} --lane ${scoped.lane}`;
|
||||
}
|
||||
if (reason === "git-mirror-pending-flush") {
|
||||
return `bun scripts/cli.ts hwlab nodes git-mirror flush --node ${scoped.node} --lane ${scoped.lane} --confirm --wait`;
|
||||
|
||||
Reference in New Issue
Block a user