mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:30:42 +00:00
fix: repair bundled deps in release pack smoke
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user