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

推荐订阅源

D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
B
Blog
博客园 - Franky
I
InfoQ
A
About on SuperTechFans
博客园_首页
L
LangChain Blog
量子位
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
美团技术团队
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
雷峰网
雷峰网
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
G
Google Developers Blog
Last Week in AI
Last Week in AI

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: reuse Docker test-state in more lanes · openclaw/op...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -7,27 +7,31 @@ source "$ROOT_DIR/scripts/lib/docker-e2e-image.sh"

77

IMAGE_NAME="$(docker_e2e_resolve_image "openclaw-openai-web-search-minimal-e2e" OPENCLAW_OPENAI_WEB_SEARCH_MINIMAL_E2E_IMAGE)"

88

SKIP_BUILD="${OPENCLAW_OPENAI_WEB_SEARCH_MINIMAL_E2E_SKIP_BUILD:-0}"

99

PORT="18789"

10-

MOCK_PORT="19191"

10+

MOCK_PORT="80"

1111

TOKEN="openai-web-search-minimal-e2e-$$"

12121313

docker_e2e_build_or_reuse "$IMAGE_NAME" openai-web-search-minimal "$ROOT_DIR/scripts/e2e/Dockerfile" "$ROOT_DIR" "" "$SKIP_BUILD"

14+

OPENCLAW_TEST_STATE_SCRIPT_B64="$(docker_e2e_test_state_shell_b64 openai-web-search-minimal empty)"

14151516

echo "Running OpenAI web_search minimal reasoning Docker E2E..."

1617

run_logged openai-web-search-minimal docker run --rm \

18+

--add-host api.openai.com:127.0.0.1 \

1719

-e "OPENCLAW_GATEWAY_TOKEN=$TOKEN" \

1820

-e "OPENAI_API_KEY=sk-openclaw-web-search-minimal-e2e" \

19-

-e "BRAVE_API_KEY=brave-openclaw-web-search-minimal-e2e" \

21+

-e "OPENCLAW_TEST_STATE_SCRIPT_B64=$OPENCLAW_TEST_STATE_SCRIPT_B64" \

2022

-e "PORT=$PORT" \

2123

-e "MOCK_PORT=$MOCK_PORT" \

2224

-i "$IMAGE_NAME" bash -s <<'EOF'

2325

set -euo pipefail

242625-

export HOME="$(mktemp -d "/tmp/openclaw-openai-web-search-minimal.XXXXXX")"

26-

export OPENCLAW_STATE_DIR="$HOME/.openclaw"

27+

eval "$(printf "%s" "${OPENCLAW_TEST_STATE_SCRIPT_B64:?missing OPENCLAW_TEST_STATE_SCRIPT_B64}" | base64 -d)"

2728

export OPENCLAW_SKIP_CHANNELS=1

2829

export OPENCLAW_SKIP_GMAIL_WATCHER=1

2930

export OPENCLAW_SKIP_CRON=1

3031

export OPENCLAW_SKIP_CANVAS_HOST=1

32+

export OPENCLAW_SKIP_BROWSER_CONTROL_SERVER=1

33+

export OPENCLAW_SKIP_ACPX_RUNTIME=1

34+

export OPENCLAW_SKIP_ACPX_RUNTIME_PROBE=1

31353236

PORT="${PORT:?missing PORT}"

3337

MOCK_PORT="${MOCK_PORT:?missing MOCK_PORT}"

@@ -126,7 +130,7 @@ cat >"$OPENCLAW_STATE_DIR/openclaw.json" <<JSON

126130

"providers": {

127131

"openai": {

128132

"api": "openai-responses",

129-

"baseUrl": "http://127.0.0.1:${MOCK_PORT}/v1",

133+

"baseUrl": "http://api.openai.com/v1",

130134

"apiKey": { "source": "env", "provider": "default", "id": "OPENAI_API_KEY" },

131135

"request": { "allowPrivateNetwork": true },

132136

"models": [

@@ -149,22 +153,15 @@ cat >"$OPENCLAW_STATE_DIR/openclaw.json" <<JSON

149153

"web": {

150154

"search": {

151155

"enabled": true,

152-

"provider": "brave",

153156

"maxResults": 3

154157

}

155158

}

156159

},

157160

"plugins": {

158161

"enabled": true,

162+

"allow": ["openai"],

159163

"entries": {

160-

"brave": {

161-

"enabled": true,

162-

"config": {

163-

"webSearch": {

164-

"apiKey": { "source": "env", "provider": "default", "id": "BRAVE_API_KEY" }

165-

}

166-

}

167-

}

164+

"openai": { "enabled": true }

168165

}

169166

},

170167

"gateway": {

@@ -359,9 +356,22 @@ node "$entry" gateway health \

359356

--json >/dev/null

360357361358

cat >/tmp/openclaw-openai-web-search-minimal-client.mjs <<'NODE'

362-

import { execFileSync } from "node:child_process";

359+

import { readdirSync } from "node:fs";

360+

import { pathToFileURL } from "node:url";

361+362+

async function loadCallGateway() {

363+

const candidates = readdirSync("/app/dist")

364+

.filter((name) => /^call(?:\.runtime)?-[A-Za-z0-9_-]+\.js$/.test(name))

365+

.sort();

366+

for (const name of candidates) {

367+

const mod = await import(pathToFileURL(`/app/dist/${name}`).href);

368+

if (typeof mod.callGateway === "function") return mod.callGateway;

369+

}

370+

throw new Error(`unable to find callGateway export in /app/dist (${candidates.join(", ")})`);

371+

}

372+373+

const callGateway = await loadCallGateway();

363374364-

const entry = process.env.OPENCLAW_ENTRY;

365375

const port = process.env.PORT;

366376

const token = process.env.OPENCLAW_GATEWAY_TOKEN;

367377

const mode = process.argv[2];

@@ -372,40 +382,32 @@ const message =

372382

: "Return exactly OPENCLAW_SCHEMA_E2E_OK.";

373383

const id = mode === "reject" ? "schema-reject" : "schema-success";

374384375-

if (!entry || !port || !token) throw new Error("missing OPENCLAW_ENTRY/PORT/OPENCLAW_GATEWAY_TOKEN");

376-377-

const gatewayArgs = [

378-

entry,

379-

"gateway",

380-

"call",

381-

"--url",

382-

`ws://127.0.0.1:${port}`,

383-

"--token",

384-

token,

385-

"--timeout",

386-

"240000",

387-

"--expect-final",

388-

"--json",

389-

];

390-391-

function gatewayAgent(params) {

385+

if (!port || !token) throw new Error("missing PORT/OPENCLAW_GATEWAY_TOKEN");

386+387+

async function gatewayAgent(params) {

392388

try {

393389

return {

394390

ok: true,

395-

value: JSON.parse(execFileSync("node", [...gatewayArgs, "agent", "--params", JSON.stringify(params)], {

396-

encoding: "utf8",

397-

stdio: ["ignore", "pipe", "pipe"],

398-

})),

391+

value: await callGateway({

392+

url: `ws://127.0.0.1:${port}`,

393+

token,

394+

method: "agent",

395+

params,

396+

expectFinal: true,

397+

timeoutMs: 240_000,

398+

clientName: "gateway-client",

399+

mode: "backend",

400+

scopes: ["operator.write"],

401+

deviceIdentity: null,

402+

}),

399403

};

400404

} catch (error) {

401-

const stderr = typeof error?.stderr === "string" ? error.stderr : "";

402-

const stdout = typeof error?.stdout === "string" ? error.stdout : "";

403-

const combined = [String(error), stderr.trim(), stdout.trim()].filter(Boolean).join("\n");

405+

const combined = String(error);

404406

return { ok: false, error: new Error(combined) };

405407

}

406408

}

407409408-

const result = gatewayAgent({

410+

const result = await gatewayAgent({

409411

sessionKey,

410412

message,

411413

thinking: "minimal",

@@ -424,7 +426,7 @@ if (result.value?.status !== "ok") {

424426

}

425427

NODE

426428427-

OPENCLAW_ENTRY="$entry" PORT="$PORT" OPENCLAW_GATEWAY_TOKEN="$TOKEN" node /tmp/openclaw-openai-web-search-minimal-client.mjs success >/tmp/openclaw-openai-web-search-minimal-client-success.log 2>&1

429+

PORT="$PORT" OPENCLAW_GATEWAY_TOKEN="$TOKEN" node /tmp/openclaw-openai-web-search-minimal-client.mjs success >/tmp/openclaw-openai-web-search-minimal-client-success.log 2>&1

428430429431

node - "$MOCK_REQUEST_LOG" <<'NODE'

430432

const fs = require("node:fs");

@@ -448,7 +450,7 @@ if (success.body.reasoning?.effort === "minimal") {

448450

}

449451

NODE

450452451-

OPENCLAW_ENTRY="$entry" PORT="$PORT" OPENCLAW_GATEWAY_TOKEN="$TOKEN" node /tmp/openclaw-openai-web-search-minimal-client.mjs reject >/tmp/openclaw-openai-web-search-minimal-client-reject.log 2>&1

453+

PORT="$PORT" OPENCLAW_GATEWAY_TOKEN="$TOKEN" node /tmp/openclaw-openai-web-search-minimal-client.mjs reject >/tmp/openclaw-openai-web-search-minimal-client-reject.log 2>&1

452454453455

for _ in $(seq 1 80); do

454456

if grep -Fq "$RAW_SCHEMA_ERROR" "$GATEWAY_LOG"; then