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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
WordPress大学
WordPress大学
U
Unit 42
I
InfoQ
A
About on SuperTechFans
宝玉的分享
宝玉的分享
J
Java Code Geeks
博客园 - 司徒正美
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
G
Google Developers Blog
人人都是产品经理
人人都是产品经理
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
腾讯CDC
Recent Announcements
Recent Announcements

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): clamp boundary check timers · openclaw/open...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main

@@ -37,6 +37,7 @@ const FAILURE_OUTPUT_TAIL_LINES = 40;

3737

const STEP_OUTPUT_MAX_CHARS = 256 * 1024;

3838

const STEP_PROCESS_GROUP_EXIT_POLL_MS = 25;

3939

const STEP_POST_FORCE_KILL_WAIT_MS = 1_000;

40+

const MAX_TIMER_TIMEOUT_MS = 2_147_000_000;

4041

const SLOW_COMPILE_SUMMARY_LIMIT = 10;

4142

const COMPILE_INPUT_EXTENSIONS = new Set([".ts", ".tsx", ".mts", ".cts", ".js", ".mjs", ".json"]);

4243

const ROOTDIR_BOUNDARY_CANARY_IMPORT_PATH =

@@ -337,13 +338,22 @@ function writeStampFile(filePath) {

337338

writeFileSync(filePath, `${new Date().toISOString()}\n`, "utf8");

338339

}

339340341+

function resolveStepTimerTimeoutMs(valueMs) {

342+

const value = Number(valueMs);

343+

if (!Number.isFinite(value)) {

344+

return MAX_TIMER_TIMEOUT_MS;

345+

}

346+

return Math.min(Math.max(Math.floor(value), 1), MAX_TIMER_TIMEOUT_MS);

347+

}

348+340349

function runNodeStep(label, args, timeoutMs) {

350+

const resolvedTimeoutMs = resolveStepTimerTimeoutMs(timeoutMs);

341351

const startedAt = Date.now();

342352

const result = spawnSync(process.execPath, args, {

343353

cwd: repoRoot,

344354

encoding: "utf8",

345355

maxBuffer: 16 * 1024 * 1024,

346-

timeout: timeoutMs,

356+

timeout: resolvedTimeoutMs,

347357

});

348358349359

if (result.status === 0 && !result.error) {

@@ -352,7 +362,7 @@ function runNodeStep(label, args, timeoutMs) {

352362353363

const timeoutSuffix =

354364

result.error?.name === "Error" && result.error.message.includes("ETIMEDOUT")

355-

? `${label} timed out after ${timeoutMs}ms`

365+

? `${label} timed out after ${resolvedTimeoutMs}ms`

356366

: "";

357367

const errorSuffix = result.error ? result.error.message : "";

358368

const note = [timeoutSuffix, errorSuffix].filter(Boolean).join("\n");

@@ -391,6 +401,7 @@ function abortSiblingSteps(abortController) {

391401

* Runs one node-based boundary check step with timeout and output capture.

392402

*/

393403

export function runNodeStepAsync(label, args, timeoutMs, params = {}) {

404+

const resolvedTimeoutMs = resolveStepTimerTimeoutMs(timeoutMs);

394405

const abortController = params.abortController;

395406

const killProcess = params.killProcess ?? process.kill.bind(process);

396407

const onFailure = params.onFailure;

@@ -499,7 +510,7 @@ export function runNodeStepAsync(label, args, timeoutMs, params = {}) {

499510

stderr: stderrText,

500511

kind: "timeout",

501512

elapsedMs: Date.now() - startedAt,

502-

note: `${label} timed out after ${timeoutMs}ms`,

513+

note: `${label} timed out after ${resolvedTimeoutMs}ms`,

503514

}),

504515

),

505516

label,

@@ -508,14 +519,14 @@ export function runNodeStepAsync(label, args, timeoutMs, params = {}) {

508519

stderr: stderrText,

509520

kind: "timeout",

510521

elapsedMs: Date.now() - startedAt,

511-

note: `${label} timed out after ${timeoutMs}ms`,

522+

note: `${label} timed out after ${resolvedTimeoutMs}ms`,

512523

},

513524

);

514525

onFailure?.(error);

515526

abortSiblingSteps(abortController);

516527

rejectPromise(toLintErrorObject(error, "Step timed out"));

517528

})();

518-

}, timeoutMs);

529+

}, resolvedTimeoutMs);

519530520531

child.stdout.setEncoding("utf8");

521532

child.stderr.setEncoding("utf8");