fix: repair bundled deps in release pack smoke

This commit is contained in:
Peter Steinberger
2026-05-02 17:05:14 +01:00
parent 5a4efa77fd
commit c336ab9e46
2 changed files with 15 additions and 0 deletions

View File

@@ -116,6 +116,7 @@ export const PACKED_CLI_SMOKE_COMMANDS = [
["config", "schema"],
["models", "list", "--provider", "amazon-bedrock"],
] as const;
export const PACKED_BUNDLED_RUNTIME_DEPS_REPAIR_ARGS = ["plugins", "deps", "--repair"] as const;
export const PACKED_COMPLETION_SMOKE_ARGS = [
"completion",
"--write-state",
@@ -364,6 +365,15 @@ function runPackedBundledPluginActivationSmoke(packageRoot: string, tmpRoot: str
});
writePackedBundledPluginActivationConfig(homeDir);
execFileSync(
process.execPath,
[join(packageRoot, "openclaw.mjs"), ...PACKED_BUNDLED_RUNTIME_DEPS_REPAIR_ARGS],
{
cwd: packageRoot,
stdio: "inherit",
env,
},
);
execFileSync(process.execPath, [join(packageRoot, "openclaw.mjs"), "plugins", "doctor"], {
cwd: packageRoot,
stdio: "inherit",

View File

@@ -22,6 +22,7 @@ import {
createPackedCliSmokeEnv,
createPackedBundledPluginPostinstallEnv,
MAX_CRITICAL_PLUGIN_SDK_ENTRYPOINT_BYTES,
PACKED_BUNDLED_RUNTIME_DEPS_REPAIR_ARGS,
PACKED_CLI_SMOKE_COMMANDS,
PACKED_COMPLETION_SMOKE_ARGS,
packageNameFromSpecifier,
@@ -82,6 +83,10 @@ describe("packed CLI smoke", () => {
]);
});
it("repairs bundled runtime deps before the read-only plugin doctor smoke", () => {
expect(PACKED_BUNDLED_RUNTIME_DEPS_REPAIR_ARGS).toEqual(["plugins", "deps", "--repair"]);
});
it("keeps packed completion smoke scoped to one shell cache", () => {
expect(PACKED_COMPLETION_SMOKE_ARGS).toEqual(["completion", "--write-state", "--shell", "zsh"]);
});