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

推荐订阅源

U
Unit 42
A
About on SuperTechFans
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
MyScale Blog
MyScale Blog
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
月光博客
月光博客
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
T
Tailwind CSS Blog
Jina AI
Jina 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
fix(clawdock): load compose override file · openclaw/open...
spacegeologi · 2026-05-29 · via Recent Commits to openclaw:main
1+

import { execFile } from "node:child_process";

2+

import { mkdtemp, mkdir, readFile, rm, writeFile } from "node:fs/promises";

3+

import { tmpdir } from "node:os";

4+

import path from "node:path";

5+

import { fileURLToPath } from "node:url";

6+

import { promisify } from "node:util";

7+

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

8+9+

const execFileAsync = promisify(execFile);

10+

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

11+12+

describe("scripts/clawdock/clawdock-helpers.sh", () => {

13+

it("loads the standard docker-compose.override.yml before ClawDock extra overrides", async () => {

14+

const tempDir = await mkdtemp(path.join(tmpdir(), "openclaw-clawdock-"));

15+

try {

16+

const projectDir = path.join(tempDir, "project");

17+

const binDir = path.join(tempDir, "bin");

18+

const argsFile = path.join(tempDir, "docker-args.txt");

19+

await mkdir(projectDir);

20+

await mkdir(binDir);

21+

await writeFile(path.join(projectDir, "docker-compose.yml"), "services: {}\n");

22+

await writeFile(path.join(projectDir, "docker-compose.override.yml"), "services: {}\n");

23+

await writeFile(path.join(projectDir, "docker-compose.extra.yml"), "services: {}\n");

24+

await writeFile(

25+

path.join(binDir, "docker"),

26+

`#!/usr/bin/env bash

27+

printf '%s\\n' "$@" > "$CLAWDOCK_DOCKER_ARGS_FILE"

28+

`,

29+

{ mode: 0o755 },

30+

);

31+32+

await execFileAsync(

33+

"bash",

34+

["-c", "source scripts/clawdock/clawdock-helpers.sh; _clawdock_compose config"],

35+

{

36+

cwd: repoRoot,

37+

env: {

38+

...process.env,

39+

CLAWDOCK_DIR: projectDir,

40+

CLAWDOCK_DOCKER_ARGS_FILE: argsFile,

41+

HOME: path.join(tempDir, "home"),

42+

PATH: `${binDir}${path.delimiter}${process.env.PATH ?? ""}`,

43+

},

44+

},

45+

);

46+47+

await expect(readFile(argsFile, "utf8")).resolves.toBe(

48+

[

49+

"compose",

50+

"-f",

51+

path.join(projectDir, "docker-compose.yml"),

52+

"-f",

53+

path.join(projectDir, "docker-compose.override.yml"),

54+

"-f",

55+

path.join(projectDir, "docker-compose.extra.yml"),

56+

"config",

57+

"",

58+

].join("\n"),

59+

);

60+

} finally {

61+

await rm(tempDir, { force: true, recursive: true });

62+

}

63+

});

64+

});