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

推荐订阅源

Vercel News
Vercel News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
有赞技术团队
有赞技术团队
罗磊的独立博客
博客园 - 叶小钗
Jina AI
Jina AI
博客园 - 司徒正美
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
量子位
MyScale Blog
MyScale Blog
V
Visual Studio Blog
博客园 - 聂微东
The Cloudflare Blog
Engineering at Meta
Engineering at Meta
小众软件
小众软件
宝玉的分享
宝玉的分享

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
docs: document release audit scripts · openclaw/openclaw@...
steipete · 2026-06-05 · via Recent Commits to openclaw:main

@@ -1,11 +1,14 @@

11

#!/usr/bin/env node

2+

// Runs additional architecture and boundary checks with sharding, concurrency,

3+

// timeout handling, and grouped CI output.

24

import { spawn } from "node:child_process";

35

import { performance } from "node:perf_hooks";

4657

const DEFAULT_CHECK_TIMEOUT_MS = 10 * 60 * 1000;

68

const DEFAULT_OUTPUT_MAX_BYTES = 512 * 1024;

79

const TIMEOUT_KILL_GRACE_MS = 5_000;

81011+

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

912

export const BOUNDARY_CHECKS = [

1013

["prompt:snapshots:check", "pnpm", ["prompt:snapshots:check"]],

1114

["plugin-extension-boundary", "pnpm", ["run", "lint:plugins:no-extension-imports"]],

@@ -66,10 +69,16 @@ export const BOUNDARY_CHECKS = [

6669

["lint:ui:no-raw-window-open", "pnpm", ["lint:ui:no-raw-window-open"]],

6770

].map(([label, command, args]) => ({ label, command, args }));

687172+

/**

73+

* Resolves the configured boundary-check concurrency.

74+

*/

6975

export function resolveConcurrency(value, fallback = 4, label = "concurrency") {

7076

return resolvePositiveInteger(value, fallback, label);

7177

}

727879+

/**

80+

* Parses positive integer CLI/env options with a fallback.

81+

*/

7382

export function resolvePositiveInteger(value, fallback, label = "value") {

7483

if (value === undefined || value === null || value === "") {

7584

return fallback;

@@ -85,6 +94,9 @@ export function resolvePositiveInteger(value, fallback, label = "value") {

8594

return parsed;

8695

}

879697+

/**

98+

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

99+

*/

88100

export function parseShardSpec(value) {

89101

if (!value) {

90102

return null;

@@ -107,6 +119,9 @@ export function parseShardSpec(value) {

107119

return { count, index: index - 1, label: `${index}/${count}` };

108120

}

109121122+

/**

123+

* Parses a comma-separated list of N/TOTAL shard selectors.

124+

*/

110125

export function parseShardSelection(value) {

111126

if (!value) {

112127

return null;

@@ -124,6 +139,9 @@ export function parseShardSelection(value) {

124139

});

125140

}

126141142+

/**

143+

* Selects checks whose ordinal belongs to the requested shard set.

144+

*/

127145

export function selectChecksForShard(checks, shardSpec) {

128146

const shards =

129147

typeof shardSpec === "string"

@@ -141,10 +159,16 @@ export function selectChecksForShard(checks, shardSpec) {

141159

);

142160

}

143161162+

/**

163+

* Formats a check command for CI group output.

164+

*/

144165

export function formatCommand({ command, args }) {

145166

return [command, ...args].join(" ");

146167

}

147168169+

/**

170+

* Keeps only the tail of noisy check output so failure logs stay bounded.

171+

*/

148172

export function createBoundedOutputBuffer(maxBytes = DEFAULT_OUTPUT_MAX_BYTES) {

149173

const limit = Math.max(1, maxBytes);

150174

const chunks = [];

@@ -247,6 +271,9 @@ function installActiveChildCleanup(activeChildren) {

247271

};

248272

}

249273274+

/**

275+

* Runs one boundary check with timeout and process-group termination.

276+

*/

250277

export function runSingleCheck(

251278

check,

252279

{

@@ -359,6 +386,9 @@ function writeTimingSummary(results, output) {

359386

}

360387

}

361388389+

/**

390+

* Runs boundary checks with bounded concurrency and returns the failure count.

391+

*/

362392

export async function runChecks(

363393

checks = BOUNDARY_CHECKS,

364394

{

@@ -442,11 +472,7 @@ if (import.meta.url === `file://${process.argv[1]}`) {

442472

process.env.OPENCLAW_ADDITIONAL_BOUNDARY_CONCURRENCY === undefined

443473

? "OPENCLAW_EXTENSION_BOUNDARY_CONCURRENCY"

444474

: "OPENCLAW_ADDITIONAL_BOUNDARY_CONCURRENCY";

445-

const concurrency = resolveConcurrency(

446-

concurrencyRaw,

447-

4,

448-

concurrencyLabel,

449-

);

475+

const concurrency = resolveConcurrency(concurrencyRaw, 4, concurrencyLabel);

450476

const checkTimeoutMs = resolvePositiveInteger(

451477

process.env.OPENCLAW_ADDITIONAL_BOUNDARY_TIMEOUT_MS,

452478

DEFAULT_CHECK_TIMEOUT_MS,