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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - Franky
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
量子位
V
Visual Studio Blog
Y
Y Combinator Blog
小众软件
小众软件
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security 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(e2e): isolate release media temp files · openclaw/ope...
vincentkoc · 2026-06-02 · via Recent Commits to openclaw:main

File tree

  • scripts/e2e/lib/release-media-memory

Original file line numberDiff line numberDiff line change

@@ -26,9 +26,13 @@ export SUCCESS_MARKER MOCK_REQUEST_LOG

2626
2727

mock_pid=""

2828

gateway_pid=""

29+

media_root=""

2930

cleanup() {

3031

openclaw_e2e_terminate_gateways "${gateway_pid:-}"

3132

openclaw_e2e_stop_process "${mock_pid:-}"

33+

if [ -n "${media_root:-}" ]; then

34+

rm -rf "$media_root"

35+

fi

3236

}

3337

trap cleanup EXIT

3438

@@ -111,11 +115,12 @@ openclaw plugins list --json >/tmp/openclaw-release-media-memory-plugins.json \

111115

node scripts/e2e/lib/release-scenarios/assertions.mjs assert-file-contains /tmp/openclaw-release-media-memory-plugins.json memory-core

112116

node scripts/e2e/lib/release-scenarios/assertions.mjs configure-mock-openai "$MOCK_PORT"

113117
114-

mkdir -p "$OPENCLAW_STATE_DIR/workspace/memory" /tmp/openclaw-release-media-memory

115-

printf '%s' 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+yf7kAAAAASUVORK5CYII=' | base64 -d > /tmp/openclaw-release-media-memory/input.png

118+

mkdir -p "$OPENCLAW_STATE_DIR/workspace/memory"

119+

media_root="$(mktemp -d /tmp/openclaw-release-media-memory.XXXXXX)"

120+

printf '%s' 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+yf7kAAAAASUVORK5CYII=' | base64 -d >"$media_root/input.png"

116121
117122

openclaw infer image describe \

118-

--file /tmp/openclaw-release-media-memory/input.png \

123+

--file "$media_root/input.png" \

119124

--model openai/gpt-5.5 \

120125

--prompt "Describe this image and return marker $SUCCESS_MARKER" \

121126

--json >/tmp/openclaw-release-media-memory-describe.json 2>/tmp/openclaw-release-media-memory-describe.stderr.log

@@ -124,7 +129,7 @@ node scripts/e2e/lib/release-scenarios/assertions.mjs assert-image-describe /tmp

124129

openclaw infer image generate \

125130

--model openai/gpt-image-1 \

126131

--prompt "Generate a tiny test image for $SUCCESS_MARKER" \

127-

--output /tmp/openclaw-release-media-memory/generated.png \

132+

--output "$media_root/generated.png" \

128133

--json >/tmp/openclaw-release-media-memory-generate.json 2>/tmp/openclaw-release-media-memory-generate.stderr.log

129134

node scripts/e2e/lib/release-scenarios/assertions.mjs assert-image-generate /tmp/openclaw-release-media-memory-generate.json "$MOCK_REQUEST_LOG"

130135
Original file line numberDiff line numberDiff line change

@@ -23,4 +23,16 @@ describe("release media memory scenario", () => {

2323
2424

expect(script).not.toContain("-printf");

2525

});

26+
27+

it("uses a per-run temp root for generated media artifacts", () => {

28+

const script = readFileSync(SCENARIO, "utf8");

29+
30+

expect(script).toContain('media_root="$(mktemp -d /tmp/openclaw-release-media-memory.XXXXXX)"');

31+

expect(script).toContain('rm -rf "$media_root"');

32+

expect(script).toContain('--file "$media_root/input.png"');

33+

expect(script).toContain('--output "$media_root/generated.png"');

34+

expect(script).not.toContain(

35+

'mkdir -p "$OPENCLAW_STATE_DIR/workspace/memory" /tmp/openclaw-release-media-memory',

36+

);

37+

});

2638

});