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

推荐订阅源

博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
GbyAI
GbyAI
博客园_首页
V
Visual Studio Blog
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 叶小钗
腾讯CDC
博客园 - Franky
IT之家
IT之家
Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell

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(scripts): budget restart benchmark timeouts · opencla...
vincentkoc · 2026-05-25 · via Recent Commits to openclaw:main

@@ -325,7 +325,7 @@ Options:

325325

--runs <n> Measured process samples per case (default: ${DEFAULT_RUNS})

326326

--warmup <n> Warmup process samples per case (default: ${DEFAULT_WARMUP})

327327

--restarts <n> In-process restarts per process sample (default: ${DEFAULT_RESTARTS})

328-

--timeout-ms <ms> Per-process timeout (default: ${DEFAULT_TIMEOUT_MS})

328+

--timeout-ms <ms> Timeout for initial startup and each restart (default: ${DEFAULT_TIMEOUT_MS})

329329

--post-ready-delay-ms <ms> Resource snapshot delay after next ready (default: ${DEFAULT_POST_READY_DELAY_MS})

330330

--output <path> Write machine-readable JSON to a file

331331

--json Emit machine-readable JSON

@@ -1257,6 +1257,10 @@ async function waitForIterationCondition(

12571257

return predicate();

12581258

}

125912591260+

function resolvePhaseDeadlineAt(startedAt: number, timeoutMs: number): number {

1261+

return startedAt + timeoutMs;

1262+

}

1263+12601264

async function runGatewaySample(options: {

12611265

benchCase: GatewayBenchCase;

12621266

entry: string;

@@ -1270,7 +1274,7 @@ async function runGatewaySample(options: {

12701274

const configPath = writeConfig(root, options.benchCase);

12711275

const env = sanitizedEnv(root, configPath, options.benchCase);

12721276

const sampleStartAt = performance.now();

1273-

const deadlineAt = sampleStartAt + options.timeoutMs;

1277+

const initialDeadlineAt = resolvePhaseDeadlineAt(sampleStartAt, options.timeoutMs);

12741278

const initialStartupTrace: Record<string, number> = {};

12751279

const events: BenchmarkEvent[] = [{ ms: 0, type: "process.spawn.start" }];

12761280

const output: string[] = [];

@@ -1388,7 +1392,7 @@ async function runGatewaySample(options: {

1388139213891393

let failureCode: GatewayRestartFailureCode | null = null;

13901394

const initialHealthz = await waitForProbeReady({

1391-

deadlineAt,

1395+

deadlineAt: initialDeadlineAt,

13921396

isDone: () => childExited,

13931397

path: "/healthz",

13941398

port,

@@ -1400,7 +1404,7 @@ async function runGatewaySample(options: {

14001404

const initialReadyz =

14011405

failureCode === null

14021406

? await waitForProbeReady({

1403-

deadlineAt,

1407+

deadlineAt: initialDeadlineAt,

14041408

isDone: () => childExited,

14051409

path: "/readyz",

14061410

port,

@@ -1415,7 +1419,7 @@ async function runGatewaySample(options: {

14151419

flushOutputLineBuffers(outputBuffers, onLine, performance.now() - sampleStartAt);

14161420

await waitForIterationCondition(

14171421

() => hasInitialReadyLogs({ initialGatewayReadyLogMs, initialHttpListenLogMs }),

1418-

deadlineAt,

1422+

initialDeadlineAt,

14191423

);

14201424

flushOutputLineBuffers(outputBuffers, onLine, performance.now() - sampleStartAt);

14211425

if (!hasInitialReadyLogs({ initialGatewayReadyLogMs, initialHttpListenLogMs })) {

@@ -1426,7 +1430,7 @@ async function runGatewaySample(options: {

14261430

const iterations: RestartIteration[] = [];

14271431

if (failureCode === null) {

14281432

for (let index = 1; index <= options.restarts; index += 1) {

1429-

if (performance.now() >= deadlineAt || childExited) {

1433+

if (childExited) {

14301434

failureCode = resolveRestartDeadlineFailure(childExited);

14311435

break;

14321436

}

@@ -1456,10 +1460,11 @@ async function runGatewaySample(options: {

14561460

}

14571461

const signalSentAt = performance.now();

14581462

iteration.signalSentMs = signalSentAt - sampleStartAt;

1463+

const iterationDeadlineAt = resolvePhaseDeadlineAt(signalSentAt, options.timeoutMs);

14591464

events.push({ iteration: index, ms: iteration.signalSentMs, type: "restart-signal-sent" });

1460146514611466

const healthzPromise = waitForRestartProbe({

1462-

deadlineAt,

1467+

deadlineAt: iterationDeadlineAt,

14631468

events,

14641469

isDone: () => hasRestartReadySignal(iteration),

14651470

isProcessDone: () => childExited,

@@ -1470,7 +1475,7 @@ async function runGatewaySample(options: {

14701475

signalSentAt,

14711476

});

14721477

const readyzPromise = waitForRestartProbe({

1473-

deadlineAt,

1478+

deadlineAt: iterationDeadlineAt,

14741479

events,

14751480

isDone: () => hasRestartReadySignal(iteration),

14761481

isProcessDone: () => childExited,

@@ -1484,10 +1489,10 @@ async function runGatewaySample(options: {

14841489

iteration.healthz = healthz;

14851490

iteration.readyz = readyz;

14861491

iteration.resourceSnapshots.push(snapshotResources(child, sampleStartAt, "after-next-ready"));

1487-

await waitForIterationCondition(() => hasRestartReadySignal(iteration), deadlineAt);

1488-

if (options.postReadyDelayMs > 0 && performance.now() < deadlineAt) {

1492+

await waitForIterationCondition(() => hasRestartReadySignal(iteration), iterationDeadlineAt);

1493+

if (options.postReadyDelayMs > 0 && performance.now() < iterationDeadlineAt) {

14891494

await delay(

1490-

Math.min(options.postReadyDelayMs, Math.max(0, deadlineAt - performance.now())),

1495+

Math.min(options.postReadyDelayMs, Math.max(0, iterationDeadlineAt - performance.now())),

14911496

);

14921497

}

14931498

iteration.resourceSnapshots.push(

@@ -1687,6 +1692,7 @@ export const testing = {

16871692

parsePositiveInt,

16881693

resolveRestartDeadlineFailure,

16891694

resolveEntry,

1695+

resolvePhaseDeadlineAt,

16901696

sanitizedEnv,

16911697

shouldFailBenchmark,

16921698

summarizeCase,