mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 12:26:06 +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"
|
||||
|
||||
@@ -425,7 +425,8 @@ fs.writeFileSync(
|
||||
);
|
||||
NODE
|
||||
tar -czf "$tarball" -C "$fixture_root" package
|
||||
node scripts/e2e/lib/plugins/npm-registry-server.mjs \
|
||||
OPENCLAW_NPM_REGISTRY_UPSTREAM=https://registry.npmjs.org \
|
||||
node scripts/e2e/lib/plugins/npm-registry-server.mjs \
|
||||
"$port_file" \
|
||||
"@openclaw/brave-plugin" \
|
||||
"2026.5.2" \
|
||||
|
||||
@@ -314,7 +314,8 @@ fs.writeFileSync(
|
||||
);
|
||||
NODE
|
||||
tar -czf "$tarball" -C "$fixture_root" package
|
||||
node scripts/e2e/lib/plugins/npm-registry-server.mjs \
|
||||
OPENCLAW_NPM_REGISTRY_UPSTREAM=https://registry.npmjs.org \
|
||||
node scripts/e2e/lib/plugins/npm-registry-server.mjs \
|
||||
"$port_file" \
|
||||
"@openclaw/brave-plugin" \
|
||||
"2026.5.2" \
|
||||
|
||||
Reference in New Issue
Block a user