fix(ci): disable memory slot in release smoke config

This commit is contained in:
Vincent Koc
2026-06-10 14:56:21 +09:00
committed by GitHub
parent ca4e4d93d2
commit 52bc2a12bc
2 changed files with 29 additions and 0 deletions

View File

@@ -128,6 +128,10 @@ export function buildCrossOsReleaseSmokePluginAllowlist(providerMeta) {
return [...new Set([providerMeta.extensionId, ...RELEASE_SMOKE_PLUGIN_ALLOWLIST_BASE])];
}
export function buildCrossOsReleaseSmokeMemorySlotConfigArgs() {
return ["config", "set", "plugins.slots.memory", JSON.stringify("none"), "--strict-json"];
}
function shouldSeedProviderConfigModels(providerMeta) {
return (
typeof providerMeta.baseUrl === "string" || typeof providerMeta.timeoutSeconds === "number"
@@ -2310,6 +2314,14 @@ async function runInstalledModelsSet(params) {
logPath: params.logPath,
timeoutMs: 2 * 60 * 1000,
});
await runInstalledCli({
cliPath: params.cliPath,
args: buildCrossOsReleaseSmokeMemorySlotConfigArgs(),
cwd: params.cwd,
env: params.env,
logPath: params.logPath,
timeoutMs: 2 * 60 * 1000,
});
await runInstalledCli({
cliPath: params.cliPath,
args: ["config", "set", "agents.defaults.skipBootstrap", "true", "--strict-json"],
@@ -3233,6 +3245,13 @@ async function runModelsSet(params) {
logPath: params.logPath,
timeoutMs: 2 * 60 * 1000,
});
await runOpenClaw({
lane: params.lane,
env: params.env,
args: buildCrossOsReleaseSmokeMemorySlotConfigArgs(),
logPath: params.logPath,
timeoutMs: 2 * 60 * 1000,
});
await runOpenClaw({
lane: params.lane,
env: params.env,

View File

@@ -21,6 +21,7 @@ import {
agentOutputHasExpectedOkMarker,
agentTurnUsedEmbeddedFallback,
buildCrossOsReleaseSmokePluginAllowlist,
buildCrossOsReleaseSmokeMemorySlotConfigArgs,
buildDiscordFetchInit,
buildPackagedUpgradeUpdateArgs,
buildReleaseOnboardArgs,
@@ -546,6 +547,14 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
"phone-control",
"talk-voice",
]);
expect(allowlist).not.toContain("memory-core");
expect(buildCrossOsReleaseSmokeMemorySlotConfigArgs()).toEqual([
"config",
"set",
"plugins.slots.memory",
JSON.stringify("none"),
"--strict-json",
]);
});
it("can stage packaged-upgrade baselines without npm lifecycle scripts", () => {
@@ -597,6 +606,7 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
expect(source).toContain('agentRuntime: { id: "openclaw" }');
expect(source).toContain('"--merge"');
expect(source).toContain(providerOverride);
expect(source.match(/args: buildCrossOsReleaseSmokeMemorySlotConfigArgs\(\)/g)).toHaveLength(2);
expect(source).not.toContain("models.providers.${params.providerConfig.extensionId}.baseUrl");
expect(source).toContain('"--timeout",\n String(CROSS_OS_AGENT_TURN_TIMEOUT_SECONDS)');
const agentTurnArgCalls = source.match(/buildReleaseAgentTurnArgs\(sessionId\)/g) ?? [];