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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
Y
Y Combinator Blog
V
V2EX
Engineering at Meta
Engineering at Meta
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio Blog
博客园 - 叶小钗
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
H
Help Net Security
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MongoDB | Blog
MongoDB | Blog
B
Blog
G
Google Developers Blog
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
N
Netflix TechBlog - Medium
腾讯CDC

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 package boundary scripts · openclaw/opencl...
steipete · 2026-06-05 · via Recent Commits to openclaw:main

@@ -1,5 +1,6 @@

11

#!/usr/bin/env node

223+

// Runs plugin lifecycle and gateway QA gauntlet probes with timing metrics.

34

import { spawn } from "node:child_process";

45

import fs from "node:fs";

56

import os from "node:os";

@@ -34,6 +35,9 @@ const DEFAULT_QA_PLUGIN_CHUNK_SIZE = 12;

3435

const COMMAND_OUTPUT_MAX_BUFFER_BYTES = 16 * 1024 * 1024;

3536

const ANSI_PATTERN = new RegExp(String.raw`\u001B\[[0-9;]*m`, "gu");

363738+

/**

39+

* Parses plugin gateway gauntlet CLI arguments and env defaults.

40+

*/

3741

export function parseArgs(argv) {

3842

const args = stripLeadingPackageManagerSeparator(argv);

3943

const options = {

@@ -226,6 +230,9 @@ function readOptionalNonNegativeIntEnv(name) {

226230

return raw ? parseNonNegativeInt(raw, name) : undefined;

227231

}

228232233+

/**

234+

* Builds the command that prepares QA runtime artifacts before gauntlet probes.

235+

*/

229236

export function createGauntletPrebuildCommand(repoRoot) {

230237

return {

231238

command: process.execPath,

@@ -255,6 +262,9 @@ function chunkArray(values, chunkSize) {

255262

return chunks;

256263

}

257264265+

/**

266+

* Converts an output path to a repo-relative path, rejecting paths outside the repo.

267+

*/

258268

export function toRepoRelativePath(repoRoot, absolutePath) {

259269

const relativePath = path.relative(repoRoot, absolutePath);

260270

if (!relativePath || relativePath.startsWith("..") || path.isAbsolute(relativePath)) {

@@ -303,6 +313,9 @@ function timeWrapperArgs(command, args) {

303313

return { command: "/usr/bin/time", args: ["-v", command, ...args], mode: "gnu" };

304314

}

305315316+

/**

317+

* Parses `/usr/bin/time` output into wall, CPU, and RSS metrics.

318+

*/

306319

export function parseTimedMetrics(stderr, wallMs, mode) {

307320

let userSeconds = null;

308321

let systemSeconds = null;

@@ -374,10 +387,16 @@ function writeCommandLog(params) {

374387

return logPath;

375388

}

376389390+

/**

391+

* Runs a measured command through the live process implementation.

392+

*/

377393

export async function runMeasuredCommand(params) {

378394

return await runMeasuredCommandLive(params);

379395

}

380396397+

/**

398+

* Runs one command with optional timing wrapper, bounded output, and log capture.

399+

*/

381400

export function runMeasuredCommandLive(params) {

382401

const { command, args, mode } =

383402

params.timeMode === "none"

@@ -600,6 +619,9 @@ export function runMeasuredCommandLive(params) {

600619

});

601620

}

602621622+

/**

623+

* Reports whether gauntlet result rows contain work beyond the prebuild step.

624+

*/

603625

export function hasGauntletWorkRows(rows) {

604626

return rows.some((row) => row.phase !== "prebuild");

605627

}