Skip to content

Commit 52bc2a1

Browse files
authored
fix(ci): disable memory slot in release smoke config
1 parent ca4e4d9 commit 52bc2a1

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

scripts/openclaw-cross-os-release-checks.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ export function buildCrossOsReleaseSmokePluginAllowlist(providerMeta) {
128128
return [...new Set([providerMeta.extensionId, ...RELEASE_SMOKE_PLUGIN_ALLOWLIST_BASE])];
129129
}
130130

131+
export function buildCrossOsReleaseSmokeMemorySlotConfigArgs() {
132+
return ["config", "set", "plugins.slots.memory", JSON.stringify("none"), "--strict-json"];
133+
}
134+
131135
function shouldSeedProviderConfigModels(providerMeta) {
132136
return (
133137
typeof providerMeta.baseUrl === "string" || typeof providerMeta.timeoutSeconds === "number"
@@ -2310,6 +2314,14 @@ async function runInstalledModelsSet(params) {
23102314
logPath: params.logPath,
23112315
timeoutMs: 2 * 60 * 1000,
23122316
});
2317+
await runInstalledCli({
2318+
cliPath: params.cliPath,
2319+
args: buildCrossOsReleaseSmokeMemorySlotConfigArgs(),
2320+
cwd: params.cwd,
2321+
env: params.env,
2322+
logPath: params.logPath,
2323+
timeoutMs: 2 * 60 * 1000,
2324+
});
23132325
await runInstalledCli({
23142326
cliPath: params.cliPath,
23152327
args: ["config", "set", "agents.defaults.skipBootstrap", "true", "--strict-json"],
@@ -3233,6 +3245,13 @@ async function runModelsSet(params) {
32333245
logPath: params.logPath,
32343246
timeoutMs: 2 * 60 * 1000,
32353247
});
3248+
await runOpenClaw({
3249+
lane: params.lane,
3250+
env: params.env,
3251+
args: buildCrossOsReleaseSmokeMemorySlotConfigArgs(),
3252+
logPath: params.logPath,
3253+
timeoutMs: 2 * 60 * 1000,
3254+
});
32363255
await runOpenClaw({
32373256
lane: params.lane,
32383257
env: params.env,

test/scripts/openclaw-cross-os-release-checks.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
agentOutputHasExpectedOkMarker,
2222
agentTurnUsedEmbeddedFallback,
2323
buildCrossOsReleaseSmokePluginAllowlist,
24+
buildCrossOsReleaseSmokeMemorySlotConfigArgs,
2425
buildDiscordFetchInit,
2526
buildPackagedUpgradeUpdateArgs,
2627
buildReleaseOnboardArgs,
@@ -546,6 +547,14 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
546547
"phone-control",
547548
"talk-voice",
548549
]);
550+
expect(allowlist).not.toContain("memory-core");
551+
expect(buildCrossOsReleaseSmokeMemorySlotConfigArgs()).toEqual([
552+
"config",
553+
"set",
554+
"plugins.slots.memory",
555+
JSON.stringify("none"),
556+
"--strict-json",
557+
]);
549558
});
550559

551560
it("can stage packaged-upgrade baselines without npm lifecycle scripts", () => {
@@ -597,6 +606,7 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
597606
expect(source).toContain('agentRuntime: { id: "openclaw" }');
598607
expect(source).toContain('"--merge"');
599608
expect(source).toContain(providerOverride);
609+
expect(source.match(/args: buildCrossOsReleaseSmokeMemorySlotConfigArgs\(\)/g)).toHaveLength(2);
600610
expect(source).not.toContain("models.providers.${params.providerConfig.extensionId}.baseUrl");
601611
expect(source).toContain('"--timeout",\n String(CROSS_OS_AGENT_TURN_TIMEOUT_SECONDS)');
602612
const agentTurnArgCalls = source.match(/buildReleaseAgentTurnArgs\(sessionId\)/g) ?? [];

0 commit comments

Comments
 (0)