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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
量子位
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
爱范儿
爱范儿
博客园 - 【当耐特】
Vercel News
Vercel News
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
博客园 - 叶小钗
博客园_首页
V
Visual Studio Blog
宝玉的分享
宝玉的分享
B
Blog
MyScale Blog
MyScale Blog
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
L
LangChain Blog
V
V2EX

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(e2e): bound kitchen sink readiness probes · openclaw/...
vincentkoc · 2026-05-30 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -737,12 +737,15 @@ export async function waitForGatewayReady(child, port, logPath, options = {}) {

737737

throw exitedBeforeReadyError();

738738

}

739739

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

740+

const remainingMs = Math.max(1, timeoutMs - (Date.now() - started));

740741

if (hasChildExited(child)) {

741742

throw exitedBeforeReadyError();

742743

}

743744

try {

744745

const readyz = await fetchJson(`http://127.0.0.1:${port}/readyz`, {

746+

attempts: 1,

745747

fetchImpl: options.fetchImpl,

748+

timeoutMs: Math.min(FETCH_TIMEOUT_MS, remainingMs),

746749

});

747750

if (readyz.ok) {

748751

return;

@@ -754,7 +757,8 @@ export async function waitForGatewayReady(child, port, logPath, options = {}) {

754757

if (logReportedReady()) {

755758

lastError = `${lastError}; gateway log reported ready before HTTP readiness`;

756759

}

757-

await delay(pollDelayMs);

760+

const nextDelayMs = Math.min(pollDelayMs, Math.max(1, timeoutMs - (Date.now() - started)));

761+

await delay(nextDelayMs);

758762

}

759763

if (hasChildExited(child)) {

760764

throw new Error(`gateway exited before ready\n${tailFile(logPath)}`);

Original file line numberDiff line numberDiff line change

@@ -125,6 +125,32 @@ describe("kitchen-sink RPC gateway teardown", () => {

125125

rmSync(root, { recursive: true, force: true });

126126

}

127127

});

128+
129+

it("keeps stalled readiness probes inside the caller deadline", async () => {

130+

const root = mkdtempSync(path.join(tmpdir(), "openclaw-kitchen-rpc-stalled-ready-"));

131+

try {

132+

const logPath = path.join(root, "gateway.log");

133+

writeFileSync(logPath, "booting\n");

134+

let calls = 0;

135+

const startedAt = Date.now();

136+
137+

await expect(

138+

waitForGatewayReady({ exitCode: null, signalCode: null }, 9, logPath, {

139+

fetchImpl: () => {

140+

calls += 1;

141+

return new Promise(() => {});

142+

},

143+

pollDelayMs: 1,

144+

timeoutMs: 25,

145+

}),

146+

).rejects.toThrow("gateway did not become ready");

147+
148+

expect(calls).toBe(1);

149+

expect(Date.now() - startedAt).toBeLessThan(500);

150+

} finally {

151+

rmSync(root, { recursive: true, force: true });

152+

}

153+

});

128154

});

129155
130156

describe("kitchen-sink RPC gateway readiness logs", () => {