惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
H
Help Net Security
Jina AI
Jina AI
V
V2EX
G
Google Developers Blog
B
Blog
GbyAI
GbyAI
U
Unit 42
爱范儿
爱范儿
腾讯CDC
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
小众软件
小众软件
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
博客园 - 聂微东
The Cloudflare Blog
I
InfoQ
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
大猫的无限游戏
大猫的无限游戏

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(test): bound plugin gauntlet prebuilds · openclaw/ope...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main

@@ -71,6 +71,7 @@ describe("plugin gateway gauntlet helpers", () => {

7171

expect(matrix[0]).toEqual({

7272

activation: {},

7373

authMethods: ["oauth"],

74+

buildId: "alpha",

7475

channels: [],

7576

cliCommandAliases: [{ name: "alpha", kind: "runtime-slash", cliCommand: "plugins" }],

7677

commandAliases: [{ name: "alpha", kind: "runtime-slash", cliCommand: "plugins" }],

@@ -89,6 +90,23 @@ describe("plugin gateway gauntlet helpers", () => {

8990

expect(matrix[1].runtimeSlashAliases).toEqual([

9091

{ name: "dreaming", kind: "runtime-slash", cliCommand: null },

9192

]);

93+

expect(matrix[1].buildId).toBe("beta");

94+

});

95+96+

it("keeps manifest ids separate from bounded build entry ids", async () => {

97+

await writeManifest("kimi-coding", "openclaw.plugin.json", JSON.stringify({ id: "kimi" }));

98+99+

const matrix = discoverBundledPluginManifests(repoRoot);

100+101+

expect(matrix).toEqual([

102+

expect.objectContaining({

103+

buildId: "kimi-coding",

104+

id: "kimi",

105+

}),

106+

]);

107+

expect(buildGauntletPrebuildEnv({}, { buildIds: [matrix[0].buildId] })).toEqual({

108+

OPENCLAW_BUNDLED_PLUGIN_BUILD_IDS: "kimi-coding",

109+

});

92110

});

9311194112

it("skips source-only plugin dirs that are excluded from the built runtime", async () => {

@@ -263,12 +281,30 @@ describe("plugin gateway gauntlet helpers", () => {

263281

expect(buildGauntletPrebuildEnv({ EXISTING: "1" }, { includePrivateQa: true })).toEqual({

264282

EXISTING: "1",

265283

OPENCLAW_BUILD_PRIVATE_QA: "1",

284+

OPENCLAW_BUNDLED_PLUGIN_BUILD_IDS: "qa-channel,qa-lab,qa-matrix",

266285

OPENCLAW_ENABLE_PRIVATE_QA_CLI: "1",

267286

});

268287

const env = { EXISTING: "1" };

269288

expect(buildGauntletPrebuildEnv(env, { includePrivateQa: false })).toBe(env);

270289

});

271290291+

it("prebuilds only selected plugin dist entries for bounded gauntlet runs", () => {

292+

expect(

293+

buildGauntletPrebuildEnv(

294+

{ EXISTING: "1" },

295+

{

296+

includePrivateQa: true,

297+

buildIds: ["active-memory", "acpx"],

298+

},

299+

),

300+

).toEqual({

301+

EXISTING: "1",

302+

OPENCLAW_BUILD_PRIVATE_QA: "1",

303+

OPENCLAW_BUNDLED_PLUGIN_BUILD_IDS: "acpx,active-memory,qa-channel,qa-lab,qa-matrix",

304+

OPENCLAW_ENABLE_PRIVATE_QA_CLI: "1",

305+

});

306+

});

307+272308

it("prebuilds only the CLI startup runtime needed by the gauntlet", () => {

273309

expect(createGauntletPrebuildCommand(repoRoot)).toEqual({

274310

command: process.execPath,

@@ -379,4 +415,51 @@ describe("plugin gateway gauntlet helpers", () => {

379415

expect(summary.isolatedRunRootPreserved).toBe(false);

380416

await expect(fs.stat(summary.isolatedRunRoot)).rejects.toHaveProperty("code", "ENOENT");

381417

});

418+419+

it("carries bounded build ids into QA run-node chunks", async () => {

420+

const outputDir = path.join(repoRoot, "artifacts");

421+

await writeManifest("alpha", "openclaw.plugin.json", JSON.stringify({ id: "alpha" }));

422+

await fs.writeFile(path.join(repoRoot, "extensions", "alpha", "index.ts"), "export {};\n");

423+

await fs.mkdir(path.join(repoRoot, "scripts"), { recursive: true });

424+

await fs.writeFile(

425+

path.join(repoRoot, "scripts", "run-node.mjs"),

426+

[

427+

'import fs from "node:fs";',

428+

'import path from "node:path";',

429+

'const outputArgIndex = process.argv.indexOf("--output-dir");',

430+

"const outputDir = path.resolve(process.cwd(), process.argv[outputArgIndex + 1]);",

431+

"fs.mkdirSync(outputDir, { recursive: true });",

432+

'fs.writeFileSync(path.join(outputDir, "env.txt"), process.env.OPENCLAW_BUNDLED_PLUGIN_BUILD_IDS ?? "", "utf8");',

433+

'fs.writeFileSync(path.join(outputDir, "qa-suite-summary.json"), JSON.stringify({ metrics: { wallMs: 1, gatewayCpuCoreRatio: 0 } }), "utf8");',

434+

].join("\n"),

435+

"utf8",

436+

);

437+438+

const result = spawnSync(

439+

process.execPath,

440+

[

441+

path.resolve("scripts/check-plugin-gateway-gauntlet.mjs"),

442+

"--repo-root",

443+

repoRoot,

444+

"--output-dir",

445+

outputDir,

446+

"--skip-prebuild",

447+

"--skip-lifecycle",

448+

"--skip-slash-help",

449+

"--plugin",

450+

"alpha",

451+

"--qa-scenario",

452+

"channel-chat-baseline",

453+

],

454+

{

455+

cwd: path.resolve("."),

456+

encoding: "utf8",

457+

},

458+

);

459+460+

expect(result.status, result.stderr).toBe(0);

461+

await expect(

462+

fs.readFile(path.join(outputDir, "qa-suite", "chunk-00", "env.txt"), "utf8"),

463+

).resolves.toBe("alpha,qa-channel,qa-lab,qa-matrix");

464+

});

382465

});