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

推荐订阅源

小众软件
小众软件
WordPress大学
WordPress大学
IT之家
IT之家
G
Google Developers Blog
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta
Martin Fowler
Martin Fowler
V
V2EX
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog
V
Visual Studio Blog
有赞技术团队
有赞技术团队
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 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
test: tighten scoped lane assertions · openclaw/openclaw@...
shakkernerd · 2026-05-09 · via Recent Commits to openclaw:main

@@ -93,6 +93,15 @@ function requireTestConfig<T extends { test?: unknown }>(config: T): NonNullable

9393

return config.test as NonNullable<T["test"]>;

9494

}

959596+

function expectThreadedNonIsolatedRunner(config: {

97+

test?: { pool?: unknown; isolate?: unknown; runner?: unknown };

98+

}) {

99+

const testConfig = requireTestConfig(config);

100+

expect(testConfig.pool).toBe("threads");

101+

expect(testConfig.isolate).toBe(false);

102+

expect(normalizeConfigPath(testConfig.runner)).toBe("test/non-isolated-runner.ts");

103+

}

104+96105

describe("resolveVitestIsolation", () => {

97106

it("aliases private QA plugin SDK subpaths for source tests only", () => {

98107

expect(sharedVitestConfig.resolve.alias).toEqual(

@@ -325,73 +334,65 @@ describe("scoped vitest configs", () => {

325334

defaultAutoReplyReplyConfig,

326335

defaultToolingConfig,

327336

]) {

328-

expect(config.test?.pool).toBe("threads");

329-

expect(config.test?.isolate).toBe(false);

330-

expect(normalizeConfigPath(config.test?.runner)).toBe("test/non-isolated-runner.ts");

337+

expectThreadedNonIsolatedRunner(config);

331338

}

332339333340

for (const config of [defaultGatewayConfig, defaultAgentsConfig]) {

334-

expect(config.test?.pool).toBe("threads");

335-

expect(config.test?.isolate).toBe(false);

336-

expect(normalizeConfigPath(config.test?.runner)).toBe("test/non-isolated-runner.ts");

341+

expectThreadedNonIsolatedRunner(config);

337342

}

338343339-

expect(defaultCommandsConfig.test?.pool).toBe("threads");

340-

expect(defaultCommandsConfig.test?.isolate).toBe(false);

341-

expect(normalizeConfigPath(defaultCommandsConfig.test?.runner)).toBe(

342-

"test/non-isolated-runner.ts",

343-

);

344+

expectThreadedNonIsolatedRunner(defaultCommandsConfig);

344345345-

expect(defaultUiConfig.test?.pool).toBe("threads");

346-

expect(defaultUiConfig.test?.isolate).toBe(false);

347-

expect(normalizeConfigPath(defaultUiConfig.test?.runner)).toBe("test/non-isolated-runner.ts");

346+

expectThreadedNonIsolatedRunner(defaultUiConfig);

348347

});

349348350349

it("keeps the process lane off the openclaw runtime setup", () => {

351-

expect(normalizeConfigPaths(defaultProcessConfig.test?.setupFiles)).toEqual(["test/setup.ts"]);

352-

expect(normalizeConfigPaths(defaultRuntimeConfig.test?.setupFiles)).toEqual(["test/setup.ts"]);

353-

expect(normalizeConfigPaths(defaultPluginSdkConfig.test?.setupFiles)).toEqual([

350+

expect(normalizeConfigPaths(requireTestConfig(defaultProcessConfig).setupFiles)).toEqual([

351+

"test/setup.ts",

352+

]);

353+

expect(normalizeConfigPaths(requireTestConfig(defaultRuntimeConfig).setupFiles)).toEqual([

354+

"test/setup.ts",

355+

]);

356+

expect(normalizeConfigPaths(requireTestConfig(defaultPluginSdkConfig).setupFiles)).toEqual([

354357

"test/setup.ts",

355358

"test/setup-openclaw-runtime.ts",

356359

]);

357360

});

358361359362

it("splits auto-reply into narrower scoped buckets", () => {

360-

expect(defaultAutoReplyCoreConfig.test?.include).toEqual(["*.test.ts"]);

361-

expect(defaultAutoReplyCoreConfig.test?.exclude).toEqual(

362-

expect.arrayContaining(["reply*.test.ts"]),

363-

);

364-

expect(defaultAutoReplyTopLevelConfig.test?.include).toEqual(["reply*.test.ts"]);

365-

expect(defaultAutoReplyReplyConfig.test?.include).toEqual(["reply/**/*.test.ts"]);

363+

const coreTestConfig = requireTestConfig(defaultAutoReplyCoreConfig);

364+

expect(coreTestConfig.include).toEqual(["*.test.ts"]);

365+

expect(coreTestConfig.exclude).toEqual(expect.arrayContaining(["reply*.test.ts"]));

366+

expect(requireTestConfig(defaultAutoReplyTopLevelConfig).include).toEqual(["reply*.test.ts"]);

367+

expect(requireTestConfig(defaultAutoReplyReplyConfig).include).toEqual(["reply/**/*.test.ts"]);

366368

});

367369368370

it("keeps the broad agents lane on shared file parallelism", () => {

369-

expect(defaultAgentsConfig.test?.fileParallelism).toBe(sharedVitestConfig.test.fileParallelism);

371+

expect(requireTestConfig(defaultAgentsConfig).fileParallelism).toBe(

372+

sharedVitestConfig.test.fileParallelism,

373+

);

370374

});

371375372376

it("keeps selected plugin-sdk and commands light lanes off the openclaw runtime setup", () => {

373-

expect(normalizeConfigPaths(defaultPluginSdkLightConfig.test?.setupFiles)).toEqual([

374-

"test/setup.ts",

375-

]);

376-

expect(normalizeConfigPaths(defaultCommandsLightConfig.test?.setupFiles)).toEqual([

377+

expect(normalizeConfigPaths(requireTestConfig(defaultPluginSdkLightConfig).setupFiles)).toEqual(

378+

["test/setup.ts"],

379+

);

380+

expect(normalizeConfigPaths(requireTestConfig(defaultCommandsLightConfig).setupFiles)).toEqual([

377381

"test/setup.ts",

378382

]);

379383

});

380384381385

it("keeps the ui lane off both the openclaw runtime setup and unit-fast excludes", () => {

382-

expect(normalizeConfigPaths(defaultUiConfig.test?.setupFiles)).toEqual([

386+

const testConfig = requireTestConfig(defaultUiConfig);

387+

expect(normalizeConfigPaths(testConfig.setupFiles)).toEqual([

383388

"test/setup.ts",

384389

"ui/src/test-helpers/lit-warnings.setup.ts",

385390

]);

386-

expect(defaultUiConfig.test?.exclude).not.toContain("chat/slash-command-executor.node.test.ts");

391+

expect(testConfig.exclude).not.toContain("chat/slash-command-executor.node.test.ts");

387392

});

388393389394

it("defaults channel tests to threads with the non-isolated runner", () => {

390-

expect(defaultChannelsConfig.test?.isolate).toBe(false);

391-

expect(defaultChannelsConfig.test?.pool).toBe("threads");

392-

expect(normalizeConfigPath(defaultChannelsConfig.test?.runner)).toBe(

393-

"test/non-isolated-runner.ts",

394-

);

395+

expectThreadedNonIsolatedRunner(defaultChannelsConfig);

395396

});

396397397398

it("keeps the core channel lane limited to non-extension roots", () => {