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

推荐订阅源

D
DataBreaches.Net
罗磊的独立博客
M
MIT News - Artificial intelligence
G
Google Developers Blog
V
V2EX
D
Docker
博客园_首页
The Cloudflare Blog
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
WordPress大学
WordPress大学
T
Tailwind CSS Blog
博客园 - 司徒正美
J
Java Code Geeks
L
LangChain Blog
博客园 - 三生石上(FineUI控件)
B
Blog RSS Feed
博客园 - 【当耐特】
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky

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): prevent Vitest shard stalls · openclaw/opencla...
steipete · 2026-04-23 · via Recent Commits to openclaw:main

@@ -1,6 +1,9 @@

11

import path from "node:path";

22

import { describe, expect, it } from "vitest";

33

import {

4+

DEFAULT_TEST_PROJECTS_VITEST_NO_OUTPUT_TIMEOUT_MS,

5+

applyDefaultMultiSpecVitestCachePaths,

6+

applyDefaultVitestNoOutputTimeout,

47

applyParallelVitestCachePaths,

58

buildFullSuiteVitestRunPlans,

69

buildVitestRunPlans,

@@ -807,3 +810,127 @@ describe("scripts/test-projects parallel cache paths", () => {

807810

expect(spec?.env.OPENCLAW_VITEST_FS_MODULE_CACHE_PATH).toBeUndefined();

808811

});

809812

});

813+814+

describe("scripts/test-projects Vitest stall watchdog", () => {

815+

it("adds a default no-output timeout to non-watch specs", () => {

816+

const [spec] = applyDefaultVitestNoOutputTimeout(

817+

[

818+

{

819+

config: "test/vitest/vitest.extension-feishu.config.ts",

820+

env: { PATH: "/usr/bin" },

821+

includeFilePath: null,

822+

includePatterns: null,

823+

pnpmArgs: [],

824+

watchMode: false,

825+

},

826+

],

827+

{ env: { PATH: "/usr/bin" } },

828+

);

829+830+

expect(spec?.env.OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS).toBe(

831+

DEFAULT_TEST_PROJECTS_VITEST_NO_OUTPUT_TIMEOUT_MS,

832+

);

833+

});

834+835+

it("keeps explicit watchdog settings and watch mode untouched", () => {

836+

const specs = applyDefaultVitestNoOutputTimeout(

837+

[

838+

{

839+

config: "test/vitest/vitest.extension-feishu.config.ts",

840+

env: { PATH: "/usr/bin" },

841+

includeFilePath: null,

842+

includePatterns: null,

843+

pnpmArgs: [],

844+

watchMode: true,

845+

},

846+

{

847+

config: "test/vitest/vitest.extension-memory.config.ts",

848+

env: { OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: "0", PATH: "/usr/bin" },

849+

includeFilePath: null,

850+

includePatterns: null,

851+

pnpmArgs: [],

852+

watchMode: false,

853+

},

854+

],

855+

{ env: { PATH: "/usr/bin" } },

856+

);

857+858+

expect(specs[0]?.env.OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS).toBeUndefined();

859+

expect(specs[1]?.env.OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS).toBe("0");

860+

});

861+

});

862+863+

describe("scripts/test-projects Vitest cache isolation", () => {

864+

it("assigns isolated fs-module caches to multi-spec non-watch runs", () => {

865+

const specs = applyDefaultMultiSpecVitestCachePaths(

866+

[

867+

{

868+

config: "test/vitest/vitest.unit-fast.config.ts",

869+

env: {},

870+

includeFilePath: null,

871+

includePatterns: null,

872+

pnpmArgs: [],

873+

watchMode: false,

874+

},

875+

{

876+

config: "test/vitest/vitest.extension-memory.config.ts",

877+

env: {},

878+

includeFilePath: null,

879+

includePatterns: null,

880+

pnpmArgs: [],

881+

watchMode: false,

882+

},

883+

],

884+

{ cwd: "/repo", env: {} },

885+

);

886+887+

expect(specs.map((spec) => spec.env.OPENCLAW_VITEST_FS_MODULE_CACHE_PATH)).toEqual([

888+

path.join(

889+

"/repo",

890+

"node_modules",

891+

".experimental-vitest-cache",

892+

"0-test-vitest-vitest.unit-fast.config.ts",

893+

),

894+

path.join(

895+

"/repo",

896+

"node_modules",

897+

".experimental-vitest-cache",

898+

"1-test-vitest-vitest.extension-memory.config.ts",

899+

),

900+

]);

901+

});

902+903+

it("keeps single-spec and watch runs on the default cache", () => {

904+

const single = [

905+

{

906+

config: "test/vitest/vitest.unit-fast.config.ts",

907+

env: {},

908+

includeFilePath: null,

909+

includePatterns: null,

910+

pnpmArgs: [],

911+

watchMode: false,

912+

},

913+

];

914+

expect(applyDefaultMultiSpecVitestCachePaths(single, { cwd: "/repo", env: {} })).toBe(single);

915+916+

const watch = [

917+

{

918+

config: "vitest.config.ts",

919+

env: {},

920+

includeFilePath: null,

921+

includePatterns: null,

922+

pnpmArgs: [],

923+

watchMode: true,

924+

},

925+

{

926+

config: "test/vitest/vitest.unit-fast.config.ts",

927+

env: {},

928+

includeFilePath: null,

929+

includePatterns: null,

930+

pnpmArgs: [],

931+

watchMode: false,

932+

},

933+

];

934+

expect(applyDefaultMultiSpecVitestCachePaths(watch, { cwd: "/repo", env: {} })).toBe(watch);

935+

});

936+

});