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

推荐订阅源

云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
博客园 - 【当耐特】
H
Help Net Security
腾讯CDC
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
Y
Y Combinator Blog
C
Check Point 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(qa): isolate OTEL collector telemetry port · openclaw...
vincentkoc · 2026-06-24 · via Recent Commits to openclaw:main

@@ -719,6 +719,47 @@ describe("qa-otel-smoke receiver bounds", () => {

719719

expect(kill).not.toHaveBeenCalled();

720720

});

721721722+

it("moves Docker collector telemetry off the default host port", async () => {

723+

const child = new EventEmitter() as EventEmitter & {

724+

stderr: EventEmitter;

725+

stdout: EventEmitter;

726+

};

727+

child.stderr = new EventEmitter();

728+

child.stdout = new EventEmitter();

729+

let writtenConfig = "";

730+

const stopDockerContainer = vi.fn(async () => {});

731+

const removePath = vi.fn(async () => {});

732+

const ports = [4318, 4318, 45679];

733+734+

const collector = await testing.startDockerOtelCollector(4317, {

735+

mkdtemp: async () => "/tmp/openclaw-otel-collector-test",

736+

platform: "linux",

737+

randomUUID: () => "00000000-0000-4000-8000-000000000000",

738+

reserveLocalPort: async () => ports.shift() ?? 49999,

739+

rm: removePath as never,

740+

spawn: vi.fn(() => child) as never,

741+

stopDockerContainer,

742+

waitForLocalPort: async () => {},

743+

writeFile: async (_path, config) => {

744+

writtenConfig = String(config);

745+

},

746+

});

747+748+

expect(writtenConfig).toContain("endpoint: 127.0.0.1:4318");

749+

expect(writtenConfig).toContain("telemetry:");

750+

expect(writtenConfig).toContain("address: 127.0.0.1:45679");

751+

expect(writtenConfig).not.toContain("address: :8888");

752+753+

await collector.close();

754+

expect(stopDockerContainer).toHaveBeenCalledWith(

755+

"openclaw-otel-smoke-00000000-0000-4000-8000-000000000000",

756+

);

757+

expect(removePath).toHaveBeenCalledWith("/tmp/openclaw-otel-collector-test", {

758+

force: true,

759+

recursive: true,

760+

});

761+

});

762+722763

it("cleans Docker collector containers and temp config after readiness failures", async () => {

723764

const tempRoot = mkdtempSync(path.join(os.tmpdir(), "openclaw-qa-otel-collector-"));

724765

const collectorDir = path.join(tempRoot, "collector");

@@ -729,6 +770,7 @@ describe("qa-otel-smoke receiver bounds", () => {

729770

child.stderr = new EventEmitter();

730771

child.stdout = new EventEmitter();

731772

const stopDockerContainer = vi.fn(async () => {});

773+

const ports = [4318, 45679];

732774733775

try {

734776

await expect(

@@ -738,7 +780,7 @@ describe("qa-otel-smoke receiver bounds", () => {

738780

return collectorDir;

739781

},

740782

randomUUID: () => "00000000-0000-4000-8000-000000000000",

741-

reserveLocalPort: async () => 4318,

783+

reserveLocalPort: async () => ports.shift() ?? 49999,

742784

spawn: vi.fn(() => child) as never,

743785

stopDockerContainer,

744786

waitForLocalPort: async () => {

@@ -765,6 +807,7 @@ describe("qa-otel-smoke receiver bounds", () => {

765807

};

766808

child.stderr = new EventEmitter();

767809

child.stdout = new EventEmitter();

810+

const ports = [4318, 45679];

768811769812

try {

770813

let thrown: unknown;

@@ -775,7 +818,7 @@ describe("qa-otel-smoke receiver bounds", () => {

775818

return collectorDir;

776819

},

777820

randomUUID: () => "00000000-0000-4000-8000-000000000000",

778-

reserveLocalPort: async () => 4318,

821+

reserveLocalPort: async () => ports.shift() ?? 49999,

779822

spawn: vi.fn(() => child) as never,

780823

stopDockerContainer: vi.fn(async () => {}),

781824

waitForLocalPort: async (_port, _timeout, readFailure) => {