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

推荐订阅源

I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
B
Blog
罗磊的独立博客
GbyAI
GbyAI
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
The GitHub Blog
The GitHub Blog
人人都是产品经理
人人都是产品经理
博客园 - Franky
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Visual Studio Blog
MyScale Blog
MyScale Blog
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏

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(release): harden docker release validation · opencla...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -9,9 +9,13 @@ const TOKEN = "bundled-plugin-runtime-smoke-token";

99

const WATCHDOG_MS = readPositiveInt(process.env.OPENCLAW_BUNDLED_PLUGIN_RUNTIME_WATCHDOG_MS, 1000);

1010

const READY_TIMEOUT_MS = readPositiveInt(

1111

process.env.OPENCLAW_BUNDLED_PLUGIN_RUNTIME_READY_MS,

12-

180000,

12+

420000,

1313

);

1414

const RPC_TIMEOUT_MS = readPositiveInt(process.env.OPENCLAW_BUNDLED_PLUGIN_RUNTIME_RPC_MS, 60000);

15+

const RPC_READY_TIMEOUT_MS = readPositiveInt(

16+

process.env.OPENCLAW_BUNDLED_PLUGIN_RUNTIME_RPC_READY_MS,

17+

90000,

18+

);

15191620

function readPositiveInt(raw, fallback) {

1721

const parsed = Number.parseInt(String(raw || ""), 10);

@@ -296,6 +300,35 @@ async function rpcCall(method, params, options) {

296300

return unwrapRpcPayload(parseJsonOutput(stdout));

297301

}

298302303+

async function retryRpcCall(method, params, options) {

304+

const started = Date.now();

305+

let lastError;

306+

while (Date.now() - started < RPC_READY_TIMEOUT_MS) {

307+

try {

308+

return await rpcCall(method, params, options);

309+

} catch (error) {

310+

lastError = error;

311+

if (!isRetryableGatewayCallError(error)) {

312+

throw error;

313+

}

314+

await delay(500);

315+

}

316+

}

317+

throw lastError ?? new Error(`gateway RPC ${method} timed out before retry`);

318+

}

319+320+

function isRetryableGatewayCallError(error) {

321+

const text = error instanceof Error ? error.message : String(error);

322+

return (

323+

text.includes("gateway starting") ||

324+

text.includes("gateway closed") ||

325+

text.includes("handshake timeout") ||

326+

text.includes("GatewayTransportError") ||

327+

text.includes("ECONNREFUSED") ||

328+

text.includes("fetch failed")

329+

);

330+

}

331+299332

function parseJsonOutput(stdout) {

300333

const trimmed = stdout.trim();

301334

if (!trimmed) {

@@ -402,20 +435,28 @@ async function smokePlugin(pluginId, pluginDir, requiresConfig, pluginIndex) {

402435

async function assertBaseGatewayProbes(options) {

403436

await assertHttpOk(options.port, "/healthz");

404437

await assertReadyzProbe(options);

405-

await rpcCall("health", {}, options);

438+

await retryRpcCall("health", {}, options);

406439

}

407440408441

async function runManifestProbes(plan, options) {

409442

for (const channel of plan.channels) {

410-

const status = await rpcCall("channels.status", { probe: false, timeoutMs: 2000 }, options);

443+

const status = await retryRpcCall(

444+

"channels.status",

445+

{ probe: false, timeoutMs: 2000 },

446+

options,

447+

);

411448

if (!isChannelVisible(status, channel)) {

412449

console.log(

413450

`Runtime channel status smoke skipped for ${options.pluginId}: ${channel} is not visible in dry channels.status`,

414451

);

415452

}

416453

}

417454

if (plan.runtimeSlashAliases.length > 0 && plan.activeInThisProbe) {

418-

const commands = await rpcCall("commands.list", { scope: "both", includeArgs: true }, options);

455+

const commands = await retryRpcCall(

456+

"commands.list",

457+

{ scope: "both", includeArgs: true },

458+

options,

459+

);

419460

for (const alias of plan.runtimeSlashAliases) {

420461

assertCommandVisible(commands, alias);

421462

}

@@ -425,7 +466,7 @@ async function runManifestProbes(plan, options) {

425466

);

426467

}

427468

if (plan.tools.length > 0 && plan.activeInThisProbe) {

428-

const catalog = await rpcCall("tools.catalog", { includePlugins: true }, options);

469+

const catalog = await retryRpcCall("tools.catalog", { includePlugins: true }, options);

429470

for (const tool of plan.tools) {

430471

assertToolVisible(catalog, tool);

431472

}

@@ -435,8 +476,8 @@ async function runManifestProbes(plan, options) {

435476

);

436477

}

437478

if (plan.speechProviders.length > 0) {

438-

const providers = await rpcCall("tts.providers", {}, options);

439-

const status = await rpcCall("tts.status", {}, options);

479+

const providers = await retryRpcCall("tts.providers", {}, options);

480+

const status = await retryRpcCall("tts.status", {}, options);

440481

const provider = plan.speechProviders[0];

441482

assertSpeechProviderVisible(providers, provider, "tts.providers");

442483

assertSpeechProviderVisible(status, provider, "tts.status");

@@ -508,7 +549,7 @@ async function runWatchdog(options) {

508549

`gateway exited after ready for ${options.pluginId}\n${tailFile(options.logPath)}`,

509550

);

510551

}

511-

await rpcCall("health", {}, options);

552+

await retryRpcCall("health", {}, options);

512553

assertNoPostReadyRuntimeDepsWork(options.logPath, readyIndex);

513554

assertNoRuntimeDepsLocks();

514555

await assertNoPackageManagerChildren(options.child.pid);

@@ -650,7 +691,7 @@ async function smokeTtsGlobalDisable(pluginId, pluginDir, provider, pluginIndex)

650691

try {

651692

await waitForReady({ child, port, logPath });

652693

await assertBaseGatewayProbes({ entrypoint, port, env });

653-

const providers = await rpcCall("tts.providers", {}, { entrypoint, port, env });

694+

const providers = await retryRpcCall("tts.providers", {}, { entrypoint, port, env });

654695

assertSpeechProviderVisible(providers, selectedProvider, "tts.providers global-disable");

655696

await runWatchdog({

656697

child,

@@ -713,7 +754,7 @@ async function smokeOpenAiTts(pluginIndex) {

713754

try {

714755

await waitForReady({ child, port, logPath });

715756

await assertBaseGatewayProbes({ entrypoint, port, env });

716-

const result = await rpcCall(

757+

const result = await retryRpcCall(

717758

"tts.convert",

718759

{ text: "ok", provider: "openai" },

719760

{ entrypoint, port, env },