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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
小众软件
小众软件
I
InfoQ
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Martin Fowler
Martin Fowler
月光博客
月光博客
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
V
Visual Studio Blog
博客园 - 叶小钗
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
GbyAI
GbyAI
P
Proofpoint News Feed
Apple Machine Learning Research
Apple Machine Learning Research

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(test): stream QA Lab stdout artifacts (#95119) · open...
vincentkoc · 2026-06-20 · via Recent Commits to openclaw:main
11

// QA OTEL Smoke tests cover QA Lab telemetry evidence.

22

import { spawn, spawnSync } from "node:child_process";

33

import { EventEmitter } from "node:events";

4-

import { existsSync, mkdirSync, mkdtempSync, rmSync, statSync } from "node:fs";

4+

import { existsSync, mkdirSync, mkdtempSync, rmSync, statSync, writeFileSync } from "node:fs";

55

import { createConnection as createNetConnection } from "node:net";

66

import os from "node:os";

77

import path from "node:path";

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

501501

expect(output.text()).not.toContain("DO_NOT_RETAIN_COLLECTOR_PREFIX");

502502

});

503503504+

it("streams gateway stdout artifact records without requiring them in the tail", async () => {

505+

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

506+

const logPath = path.join(tempRoot, "gateway.stdout.log");

507+

const capture = testing.createStdoutDiagnosticLogCapture();

508+

const record = {

509+

signal: "openclaw.diagnostic.log",

510+

ts: "2026-06-18T00:00:00.000Z",

511+

"service.name": "openclaw-qa-lab-otel-smoke",

512+

severityText: "INFO",

513+

severityNumber: 9,

514+

body: "early log",

515+

attributes: {},

516+

};

517+

try {

518+

writeFileSync(

519+

logPath,

520+

`${JSON.stringify(record)}\n${"x".repeat(256 * 1024)}\nGATEWAY_STDOUT_TAIL\n`,

521+

);

522+523+

await testing.appendUtf8FileToStdoutDiagnosticCapture(logPath, capture);

524+

capture.flush();

525+526+

expect(capture.records).toEqual([record]);

527+

expect(capture.lines).toHaveLength(1);

528+

} finally {

529+

rmSync(tempRoot, { force: true, recursive: true });

530+

}

531+

});

532+533+

it("keeps gateway stdout artifact fallback parsing bounded", async () => {

534+

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

535+

const outputDir = path.join(tempRoot, "output");

536+

const artifactDir = path.join(outputDir, "artifacts", "gateway-runtime");

537+

const record = {

538+

signal: "openclaw.diagnostic.log",

539+

ts: "2026-06-18T00:00:00.000Z",

540+

"service.name": "openclaw-qa-lab-otel-smoke",

541+

severityText: "INFO",

542+

severityNumber: 9,

543+

body: "tail log",

544+

attributes: {},

545+

};

546+

try {

547+

mkdirSync(artifactDir, { recursive: true });

548+

writeFileSync(

549+

path.join(artifactDir, "gateway.stdout.log"),

550+

`${JSON.stringify(record)}\n${"x".repeat(256 * 1024)}\n`,

551+

);

552+

const capture = testing.createStdoutDiagnosticLogCapture();

553+554+

await testing.appendGatewayStdoutArtifactLogs({ capture, outputDir });

555+556+

expect(capture.records).toEqual([record]);

557+

expect(capture.lines).toHaveLength(1);

558+

} finally {

559+

rmSync(tempRoot, { force: true, recursive: true });

560+

}

561+

});

562+504563

it("times out and kills a wedged QA suite child with a detached gateway", async () => {

505564

if (process.platform === "win32") {

506565

return;