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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
GbyAI
GbyAI
C
Check Point Blog
M
MIT News - Artificial intelligence
T
The Blog of Author Tim Ferriss
Jina AI
Jina AI
博客园 - 【当耐特】
U
Unit 42
月光博客
月光博客
腾讯CDC
Y
Y Combinator Blog
小众软件
小众软件
博客园_首页
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
The GitHub Blog
The GitHub Blog
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
T
Tailwind CSS Blog

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): bound Docker E2E JSON helpers · openclaw/op...
vincentkoc · 2026-06-16 · via Recent Commits to openclaw:main

@@ -5,14 +5,20 @@ import { tmpdir } from "node:os";

55

import path from "node:path";

66

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

778-

function runHelper(script: string, ...args: string[]) {

9-

return spawnSync(process.execPath, [script, ...args], {

8+

function runHelper(script: string, ...args: Array<string | Record<string, string>>) {

9+

const maybeEnv = args.at(-1);

10+

const env =

11+

maybeEnv && typeof maybeEnv === "object"

12+

? (args.pop() as unknown as Record<string, string>)

13+

: {};

14+

return spawnSync(process.execPath, [script, ...(args as string[])], {

1015

cwd: process.cwd(),

1116

encoding: "utf8",

1217

env: {

1318

...process.env,

1419

GH_FORCE_TTY: "0",

1520

NO_COLOR: "1",

21+

...env,

1622

},

1723

});

1824

}

@@ -36,6 +42,26 @@ describe("Docker E2E helper CLIs", () => {

3642

expect(result.stderr).not.toContain("at file:");

3743

});

384445+

it("rejects oversized scheduler helper JSON artifacts without a Node stack trace", () => {

46+

const root = mkdtempSync(`${tmpdir()}/openclaw-docker-e2e-helper-`);

47+

try {

48+

const file = path.join(root, "summary.json");

49+

writeFileSync(file, `${JSON.stringify({ filler: "x".repeat(128) })}\n`, "utf8");

50+51+

const result = runHelper("scripts/docker-e2e.mjs", "failed-reruns", file, {

52+

OPENCLAW_DOCKER_E2E_JSON_ARTIFACT_MAX_BYTES: "64",

53+

});

54+55+

expect(result.status).toBe(1);

56+

expect(result.stdout).toBe("");

57+

expect(result.stderr).toContain("JSON artifact exceeded 64 bytes");

58+

expect(result.stderr).not.toContain("Error:");

59+

expect(result.stderr).not.toContain("at file:");

60+

} finally {

61+

rmSync(root, { force: true, recursive: true });

62+

}

63+

});

64+3965

it("prints timings help without treating --help as an artifact path", () => {

4066

const result = runHelper("scripts/docker-e2e-timings.mjs", "--help");

4167

@@ -56,6 +82,26 @@ describe("Docker E2E helper CLIs", () => {

5682

expect(result.stderr).not.toContain("at file:");

5783

});

588485+

it("rejects oversized timing JSON artifacts without a Node stack trace", () => {

86+

const root = mkdtempSync(`${tmpdir()}/openclaw-docker-e2e-timings-`);

87+

try {

88+

const file = path.join(root, "summary.json");

89+

writeFileSync(file, `${JSON.stringify({ filler: "x".repeat(128) })}\n`, "utf8");

90+91+

const result = runHelper("scripts/docker-e2e-timings.mjs", file, {

92+

OPENCLAW_DOCKER_E2E_JSON_ARTIFACT_MAX_BYTES: "64",

93+

});

94+95+

expect(result.status).toBe(1);

96+

expect(result.stdout).toBe("");

97+

expect(result.stderr).toContain("JSON artifact exceeded 64 bytes");

98+

expect(result.stderr).not.toContain("Error:");

99+

expect(result.stderr).not.toContain("at file:");

100+

} finally {

101+

rmSync(root, { force: true, recursive: true });

102+

}

103+

});

104+59105

it("rejects missing timings limits without a Node stack trace", () => {

60106

const result = runHelper("scripts/docker-e2e-timings.mjs", "summary.json", "--limit");

61107