fix(release): preserve beta validation evidence (#103796)

* fix(release): proxy upgrade fixtures to npm

(cherry picked from commit 30f54a5fe1)

* fix(release): require installer doctor evidence

(cherry picked from commit 0782a94452)

* test(qa): scope aborted restart outcome to Codex

(cherry picked from commit ac54f80430)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
Vincent Koc
2026-07-10 09:05:14 -07:00
committed by GitHub
parent bd9b1b428c
commit 155e196e22
7 changed files with 110 additions and 4 deletions

View File

@@ -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"

View File

@@ -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" \

View File

@@ -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" \