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

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
美团技术团队
D
Docker
WordPress大学
WordPress大学
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
Y
Y Combinator Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans

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: shard Docker aggregate lanes · openclaw/openclaw@cb...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -6,12 +6,42 @@ import { fileURLToPath } from "node:url";

6677

const ROOT_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");

88

const DEFAULT_E2E_IMAGE = "openclaw-docker-e2e:local";

9-

const DEFAULT_PARALLELISM = 8;

10-

const DEFAULT_TAIL_PARALLELISM = 8;

9+

const DEFAULT_PARALLELISM = 10;

10+

const DEFAULT_TAIL_PARALLELISM = 10;

1111

const DEFAULT_FAILURE_TAIL_LINES = 80;

1212

const DEFAULT_LANE_TIMEOUT_MS = 120 * 60 * 1000;

1313

const DEFAULT_LANE_START_STAGGER_MS = 2_000;

141415+

const bundledChannelLaneCommand =

16+

"OPENCLAW_SKIP_DOCKER_BUILD=1 OPENCLAW_BUNDLED_CHANNEL_UPDATE_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_ROOT_OWNED_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_SETUP_ENTRY_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_LOAD_FAILURE_SCENARIO=0 pnpm test:docker:bundled-channel-deps";

17+18+

const bundledScenarioLanes = [

19+

["bundled-channel-telegram", `OPENCLAW_BUNDLED_CHANNELS=telegram ${bundledChannelLaneCommand}`],

20+

["bundled-channel-discord", `OPENCLAW_BUNDLED_CHANNELS=discord ${bundledChannelLaneCommand}`],

21+

["bundled-channel-slack", `OPENCLAW_BUNDLED_CHANNELS=slack ${bundledChannelLaneCommand}`],

22+

["bundled-channel-feishu", `OPENCLAW_BUNDLED_CHANNELS=feishu ${bundledChannelLaneCommand}`],

23+

[

24+

"bundled-channel-memory-lancedb",

25+

`OPENCLAW_BUNDLED_CHANNELS=memory-lancedb ${bundledChannelLaneCommand}`,

26+

],

27+

[

28+

"bundled-channel-update",

29+

"OPENCLAW_SKIP_DOCKER_BUILD=1 OPENCLAW_BUNDLED_CHANNEL_SCENARIOS=0 OPENCLAW_BUNDLED_CHANNEL_UPDATE_SCENARIO=1 OPENCLAW_BUNDLED_CHANNEL_ROOT_OWNED_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_SETUP_ENTRY_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_LOAD_FAILURE_SCENARIO=0 pnpm test:docker:bundled-channel-deps",

30+

],

31+

[

32+

"bundled-channel-root-owned",

33+

"OPENCLAW_SKIP_DOCKER_BUILD=1 OPENCLAW_BUNDLED_CHANNEL_SCENARIOS=0 OPENCLAW_BUNDLED_CHANNEL_UPDATE_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_ROOT_OWNED_SCENARIO=1 OPENCLAW_BUNDLED_CHANNEL_SETUP_ENTRY_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_LOAD_FAILURE_SCENARIO=0 pnpm test:docker:bundled-channel-deps",

34+

],

35+

[

36+

"bundled-channel-setup-entry",

37+

"OPENCLAW_SKIP_DOCKER_BUILD=1 OPENCLAW_BUNDLED_CHANNEL_SCENARIOS=0 OPENCLAW_BUNDLED_CHANNEL_UPDATE_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_ROOT_OWNED_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_SETUP_ENTRY_SCENARIO=1 OPENCLAW_BUNDLED_CHANNEL_LOAD_FAILURE_SCENARIO=0 pnpm test:docker:bundled-channel-deps",

38+

],

39+

[

40+

"bundled-channel-load-failure",

41+

"OPENCLAW_SKIP_DOCKER_BUILD=1 OPENCLAW_BUNDLED_CHANNEL_SCENARIOS=0 OPENCLAW_BUNDLED_CHANNEL_UPDATE_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_ROOT_OWNED_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_SETUP_ENTRY_SCENARIO=0 OPENCLAW_BUNDLED_CHANNEL_LOAD_FAILURE_SCENARIO=1 pnpm test:docker:bundled-channel-deps",

42+

],

43+

];

44+1545

const lanes = [

1646

["live-models", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:live-models"],

1747

["live-gateway", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:live-gateway"],

@@ -37,7 +67,7 @@ const lanes = [

3767

["plugins", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:plugins"],

3868

["plugin-update", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:plugin-update"],

3969

["config-reload", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:config-reload"],

40-

["bundled-channel-deps", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:bundled-channel-deps"],

70+

...bundledScenarioLanes,

4171

["openai-image-auth", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:openai-image-auth"],

4272

["qr", "pnpm test:docker:qr"],

4373

];

@@ -53,7 +83,9 @@ const exclusiveLanes = [

5383

"live-cli-backend-codex",

5484

"OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:live-cli-backend:codex",

5585

],

56-

["live-acp-bind", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:live-acp-bind"],

86+

["live-acp-bind-claude", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:live-acp-bind:claude"],

87+

["live-acp-bind-codex", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:live-acp-bind:codex"],

88+

["live-acp-bind-gemini", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:live-acp-bind:gemini"],

5789

];

58905991

const tailLanes = exclusiveLanes;

@@ -117,6 +149,10 @@ function commandEnv(extra = {}) {

117149

};

118150

}

119151152+

function shellQuote(value) {

153+

return `'${String(value).replaceAll("'", "'\\''")}'`;

154+

}

155+120156

function runShellCommand({ command, env, label, logFile, timeoutMs }) {

121157

return new Promise((resolve) => {

122158

const child = spawn("bash", ["-lc", command], {

@@ -176,6 +212,45 @@ async function runForeground(label, command, env) {

176212

}

177213

}

178214215+

async function prepareBundledChannelPackage(baseEnv, logDir) {

216+

if (baseEnv.OPENCLAW_BUNDLED_CHANNEL_PACKAGE_TGZ) {

217+

console.log(`==> Bundled channel package: ${baseEnv.OPENCLAW_BUNDLED_CHANNEL_PACKAGE_TGZ}`);

218+

return;

219+

}

220+221+

const packDir = path.join(logDir, "bundled-channel-package");

222+

await mkdir(packDir, { recursive: true });

223+

const packScript = [

224+

"set -euo pipefail",

225+

"node --import tsx --input-type=module -e \"const { writePackageDistInventory } = await import('./src/infra/package-dist-inventory.ts'); await writePackageDistInventory(process.cwd());\"",

226+

"npm pack --silent --ignore-scripts --pack-destination /tmp/openclaw-pack >/tmp/openclaw-pack.out",

227+

"cat /tmp/openclaw-pack.out",

228+

].join("\n");

229+

await runForeground(

230+

"Pack bundled channel package once from Docker E2E image",

231+

[

232+

"docker run --rm",

233+

"-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0",

234+

`-v ${shellQuote(packDir)}:/tmp/openclaw-pack`,

235+

shellQuote(baseEnv.OPENCLAW_DOCKER_E2E_IMAGE),

236+

"bash -lc",

237+

shellQuote(packScript),

238+

].join(" "),

239+

baseEnv,

240+

);

241+242+

const packed = (await fs.promises.readdir(packDir))

243+

.filter((entry) => /^openclaw-.*\.tgz$/.test(entry))

244+

.toSorted()

245+

.at(-1);

246+

if (!packed) {

247+

throw new Error(`missing packed OpenClaw tarball in ${packDir}`);

248+

}

249+

baseEnv.OPENCLAW_BUNDLED_CHANNEL_PACKAGE_TGZ = path.join(packDir, packed);

250+

baseEnv.OPENCLAW_BUNDLED_CHANNEL_HOST_BUILD = "0";

251+

console.log(`==> Bundled channel package: ${baseEnv.OPENCLAW_BUNDLED_CHANNEL_PACKAGE_TGZ}`);

252+

}

253+179254

function laneEnv(name, baseEnv, logDir) {

180255

const env = {

181256

...baseEnv,

@@ -358,6 +433,7 @@ async function main() {

358433

"pnpm test:docker:e2e-build",

359434

baseEnv,

360435

);

436+

await prepareBundledChannelPackage(baseEnv, logDir);

361437362438

const options = { failFast, startStaggerMs: laneStartStaggerMs, timeoutMs: laneTimeoutMs };

363439

const failures = await runLanePool(lanes, baseEnv, logDir, parallelism, options);