Skip to content

Commit 8e44c90

Browse files
authored
test(plugins): drop duplicate SDK-alias loader case that timed out under load (#125134)
The deleted case took ~54s and exceeded the 120s per-test timeout under CPU contention. Its coverage is already provided by the sibling pre-split SDK bridge case, which spans both private-local-only and public alias classes, and by extensions/llama-cpp/index.test.ts.
1 parent faed554 commit 8e44c90

1 file changed

Lines changed: 3 additions & 73 deletions

File tree

‎src/plugins/loader.native-module-loader.test.ts‎

Lines changed: 3 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -74,55 +74,6 @@ function writePackagedPluginFixture(id: string) {
7474
return pluginRoot;
7575
}
7676

77-
function writePreManagedLlamaCppProviderFixture() {
78-
const pluginRoot = tempDirs.make("openclaw-plugin-loader-");
79-
fs.mkdirSync(path.join(pluginRoot, "dist"));
80-
fs.writeFileSync(
81-
path.join(pluginRoot, "package.json"),
82-
JSON.stringify(
83-
{
84-
name: "@openclaw/llama-cpp-provider",
85-
version: "2026.7.2-beta.7",
86-
type: "module",
87-
openclaw: {
88-
extensions: ["./dist/index.js"],
89-
runtimeExtensions: ["./dist/index.js"],
90-
},
91-
},
92-
null,
93-
2,
94-
),
95-
"utf-8",
96-
);
97-
fs.writeFileSync(
98-
path.join(pluginRoot, "openclaw.plugin.json"),
99-
JSON.stringify(
100-
{
101-
id: "llama-cpp",
102-
configSchema: {
103-
type: "object",
104-
additionalProperties: false,
105-
properties: {},
106-
},
107-
},
108-
null,
109-
2,
110-
),
111-
"utf-8",
112-
);
113-
fs.writeFileSync(
114-
path.join(pluginRoot, "dist", "index.js"),
115-
[
116-
'import { createLocalEmbeddingProvider } from "openclaw/plugin-sdk/memory-core-host-engine-embeddings";',
117-
'export default { id: "llama-cpp", register() {',
118-
' if (typeof createLocalEmbeddingProvider !== "function") throw new Error("missing bridge");',
119-
"} };",
120-
].join("\n"),
121-
"utf-8",
122-
);
123-
return pluginRoot;
124-
}
125-
12677
function writePreSplitSdkBridgeConsumerFixture() {
12778
const pluginRoot = tempDirs.make("openclaw-plugin-loader-");
12879
fs.mkdirSync(path.join(pluginRoot, "dist"));
@@ -162,6 +113,9 @@ function writePreSplitSdkBridgeConsumerFixture() {
162113
// Import shapes copied from published 2026.7.2-beta.7 artifacts:
163114
// voice-call/matrix doctor contracts (runtime-doctor), whatsapp ack policy
164115
// (channel-feedback), slack progress-draft render (channel-outbound).
116+
// Covers both alias classes on purpose: runtime-doctor is private-local-only,
117+
// the channel subpaths are public. A source checkout has no dist/, so every
118+
// subpath listed here is evaluated through jiti — keep them light.
165119
fs.writeFileSync(
166120
path.join(pluginRoot, "dist", "index.js"),
167121
[
@@ -284,30 +238,6 @@ describe("createPluginModuleLoader", () => {
284238
expect(sourceLoaderCalls).toStrictEqual([]);
285239
});
286240

287-
it("loads the released pre-managed llama.cpp provider import through the SDK alias", async () => {
288-
const { loadOpenClawPlugins } = await importFreshModule<typeof import("./loader.js")>(
289-
import.meta.url,
290-
"./loader.js?scope=llama-cpp-upgrade-compat",
291-
);
292-
const pluginRoot = writePreManagedLlamaCppProviderFixture();
293-
process.env.OPENCLAW_BUNDLED_PLUGINS_DIR = tempDirs.make("openclaw-plugin-loader-");
294-
295-
const registry = loadOpenClawPlugins({
296-
cache: false,
297-
onlyPluginIds: ["llama-cpp"],
298-
config: {
299-
plugins: {
300-
enabled: true,
301-
load: { paths: [pluginRoot] },
302-
allow: ["llama-cpp"],
303-
entries: { "llama-cpp": { enabled: true } },
304-
},
305-
},
306-
});
307-
308-
expect(registry.plugins.find((plugin) => plugin.id === "llama-cpp")?.status).toBe("loaded");
309-
});
310-
311241
it("loads published pre-split SDK bridge imports (doctor repair, WhatsApp ack, Slack render)", async () => {
312242
const { loadOpenClawPlugins } = await importFreshModule<typeof import("./loader.js")>(
313243
import.meta.url,

0 commit comments

Comments
 (0)