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

推荐订阅源

Y
Y Combinator Blog
宝玉的分享
宝玉的分享
月光博客
月光博客
小众软件
小众软件
Jina AI
Jina AI
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
G
Google Developers Blog
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Blog — PlanetScale
Blog — PlanetScale

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 additional boundary timers · openclaw...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -9,6 +9,7 @@ const DEFAULT_OUTPUT_MAX_BYTES = 512 * 1024;

99

const TIMEOUT_KILL_GRACE_MS = 5_000;

1010

const PROCESS_GROUP_EXIT_POLL_MS = 25;

1111

const POST_FORCE_KILL_WAIT_MS = 1_000;

12+

const MAX_TIMER_TIMEOUT_MS = 2_147_000_000;

1213
1314

/** Ordered list of supplemental boundary checks used by CI sharding. */

1415

export const BOUNDARY_CHECKS = [

@@ -96,6 +97,14 @@ export function resolvePositiveInteger(value, fallback, label = "value") {

9697

return parsed;

9798

}

9899
100+

function resolveTimerTimeoutMs(valueMs) {

101+

const value = Number(valueMs);

102+

if (!Number.isFinite(value)) {

103+

return MAX_TIMER_TIMEOUT_MS;

104+

}

105+

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

106+

}

107+
99108

/**

100109

* Parses one N/TOTAL shard selector into zero-based index form.

101110

*/

@@ -359,6 +368,7 @@ export function runSingleCheck(

359368

},

360369

) {

361370

return new Promise((resolve) => {

371+

const resolvedCheckTimeoutMs = resolveTimerTimeoutMs(checkTimeoutMs);

362372

const startedAt = performance.now();

363373

const child = spawn(check.command, check.args, {

364374

cwd,

@@ -398,7 +408,7 @@ export function runSingleCheck(

398408

const timeout = setTimeout(() => {

399409

timedOut = true;

400410

output.append(

401-

`\n[boundary-check] ${check.label} timed out after ${formatDuration(checkTimeoutMs)}; terminating process group\n`,

411+

`\n[boundary-check] ${check.label} timed out after ${formatDuration(resolvedCheckTimeoutMs)}; terminating process group\n`,

402412

);

403413

terminateChild(child, "SIGTERM");

404414

forceKillTimer = setTimeout(() => {

@@ -408,7 +418,7 @@ export function runSingleCheck(

408418

terminateChild(child, "SIGKILL");

409419

}, TIMEOUT_KILL_GRACE_MS);

410420

forceKillTimer.unref?.();

411-

}, checkTimeoutMs);

421+

}, resolvedCheckTimeoutMs);

412422

timeout.unref?.();

413423
414424

child.stdout.setEncoding("utf8");

Original file line numberDiff line numberDiff line change

@@ -3,6 +3,7 @@ import { spawn, spawnSync } from "node:child_process";

33

import fs from "node:fs";

44

import os from "node:os";

55

import path from "node:path";

6+

import { MAX_TIMER_TIMEOUT_MS } from "@openclaw/normalization-core/number-coercion";

67

import { describe, expect, it } from "vitest";

78

import {

89

BOUNDARY_CHECKS,

@@ -270,6 +271,25 @@ describe("run-additional-boundary-checks", () => {

270271

expect(result.output).toContain("timed out after 50ms");

271272

});

272273
274+

it("clamps oversized check timers before scheduling", async () => {

275+

const result = await runSingleCheck(

276+

{

277+

label: "slow-pass",

278+

command: process.execPath,

279+

args: ["-e", "setTimeout(() => process.exit(0), 25)"],

280+

},

281+

{

282+

checkTimeoutMs: MAX_TIMER_TIMEOUT_MS + 1,

283+

cwd: process.cwd(),

284+

env: process.env,

285+

outputMaxBytes: 4096,

286+

},

287+

);

288+
289+

expect(result.code).toBe(0);

290+

expect(result.timedOut).toBe(false);

291+

});

292+
273293

it.skipIf(process.platform === "win32")(

274294

"waits for timed-out process groups after the wrapper exits",

275295

async () => {