mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 09:06:08 +00:00
fix(release): preserve beta validation evidence (#103796)
* fix(release): proxy upgrade fixtures to npm (cherry picked from commit30f54a5fe1) * fix(release): require installer doctor evidence (cherry picked from commit0782a94452) * test(qa): scope aborted restart outcome to Codex (cherry picked from commitac54f80430) --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
@@ -481,6 +481,18 @@ if (Number(updateStep.exitCode ?? 1) !== 0) {
|
||||
if (typeof updateStep.command !== "string" || !updateStep.command.includes(expectedUrl)) {
|
||||
throw new Error(`global update step missing expected tgz URL: ${JSON.stringify(updateStep)}`);
|
||||
}
|
||||
const doctorStep = steps.find((step) => step?.name === "openclaw doctor");
|
||||
if (!doctorStep) {
|
||||
throw new Error("missing openclaw doctor step in update JSON");
|
||||
}
|
||||
// Exit 86 is the updater's explicit recoverable post-install doctor contract.
|
||||
const doctorSucceeded = doctorStep.exitCode === 0;
|
||||
const doctorWasAdvisory =
|
||||
doctorStep.exitCode === 86 &&
|
||||
doctorStep.advisory?.kind === "package-post-install-doctor";
|
||||
if (!doctorSucceeded && !doctorWasAdvisory) {
|
||||
throw new Error(`openclaw doctor step failed: ${JSON.stringify(doctorStep)}`);
|
||||
}
|
||||
NODE
|
||||
|
||||
echo "==> Verify updated version"
|
||||
|
||||
Reference in New Issue
Block a user