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

推荐订阅源

J
Java Code Geeks
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
M
MIT News - Artificial intelligence
G
Google Developers Blog
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
MyScale Blog
MyScale Blog
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
爱范儿
爱范儿
罗磊的独立博客
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗
Vercel News
Vercel News
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
C
Check Point Blog
美团技术团队
宝玉的分享
宝玉的分享
Microsoft Security Blog
Microsoft Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

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
test: add docker e2e planner guards · openclaw/openclaw@6...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -5,9 +5,13 @@

55

import fs from "node:fs";

66

import path from "node:path";

77

import { fileURLToPath } from "node:url";

8+

import { laneResources, laneWeight } from "./lib/docker-e2e-plan.mjs";

9+

import { allReleasePathLanes, mainLanes, tailLanes } from "./lib/docker-e2e-scenarios.mjs";

810911

const ROOT_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");

1012

const errors = [];

13+

const packageJson = JSON.parse(readText("package.json"));

14+

const packageScripts = new Set(Object.keys(packageJson.scripts ?? {}));

11151216

function readText(relativePath) {

1317

return fs.readFileSync(path.join(ROOT_DIR, relativePath), "utf8");

@@ -43,9 +47,67 @@ if (/^\s*(?:COPY|ADD)\s+\.\s+\/app(?:\s|$)/imu.test(dockerfile)) {

4347

errors.push("scripts/e2e/Dockerfile: do not copy the source checkout into /app");

4448

}

454950+

function validateUniqueLanes(label, lanes) {

51+

const seen = new Set();

52+

for (const lane of lanes) {

53+

if (seen.has(lane.name)) {

54+

errors.push(`${label}: duplicate Docker E2E lane '${lane.name}'`);

55+

}

56+

seen.add(lane.name);

57+

}

58+

}

59+60+

function validateLane(label, lane) {

61+

if (!lane.name || typeof lane.name !== "string") {

62+

errors.push(`${label}: Docker E2E lane is missing a string name`);

63+

}

64+

if (!lane.command || typeof lane.command !== "string") {

65+

errors.push(`${label}: Docker E2E lane '${lane.name}' is missing a string command`);

66+

return;

67+

}

68+

if (lane.e2eImageKind && lane.e2eImageKind !== "bare" && lane.e2eImageKind !== "functional") {

69+

errors.push(

70+

`${label}: Docker E2E lane '${lane.name}' has invalid image kind '${lane.e2eImageKind}'`,

71+

);

72+

}

73+

if (lane.live && lane.e2eImageKind) {

74+

errors.push(`${label}: live Docker E2E lane '${lane.name}' must not require a package image`);

75+

}

76+

if (!lane.live && !lane.e2eImageKind) {

77+

errors.push(`${label}: package Docker E2E lane '${lane.name}' must declare an e2e image kind`);

78+

}

79+

if (laneWeight(lane) < 1) {

80+

errors.push(`${label}: Docker E2E lane '${lane.name}' must have positive weight`);

81+

}

82+

if (!laneResources(lane).includes("docker")) {

83+

errors.push(`${label}: Docker E2E lane '${lane.name}' must include the docker resource`);

84+

}

85+86+

for (const match of lane.command.matchAll(/\bpnpm\s+([^\s]+)/gu)) {

87+

const script = match[1];

88+

if (!packageScripts.has(script)) {

89+

errors.push(

90+

`${label}: Docker E2E lane '${lane.name}' references missing package script '${script}'`,

91+

);

92+

}

93+

}

94+

}

95+96+

const releasePathLanes = allReleasePathLanes({ includeOpenWebUI: true });

97+

for (const [label, lanes] of [

98+

["release-path", releasePathLanes],

99+

["main", mainLanes],

100+

["tail", tailLanes],

101+

]) {

102+

validateUniqueLanes(label, lanes);

103+

for (const lane of lanes) {

104+

validateLane(label, lane);

105+

}

106+

}

107+46108

if (errors.length > 0) {

47109

console.error(errors.join("\n"));

48110

process.exit(1);

49111

}

5011251-

console.log("Docker E2E package boundary guard passed.");

113+

console.log("Docker E2E package boundary/catalog guard passed.");