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

推荐订阅源

WordPress大学
WordPress大学
L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
小众软件
小众软件
博客园 - Franky
D
Docker
Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
U
Unit 42
宝玉的分享
宝玉的分享
C
Check Point Blog
B
Blog
V
V2EX
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
The Cloudflare Blog
博客园 - 聂微东
博客园_首页
Engineering at Meta
Engineering at Meta

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): suppress empty WhatsApp debug artifacts · opencl...
vincentkoc · 2026-06-16 · via Recent Commits to openclaw:main

@@ -31,7 +31,6 @@ import {

3131

} from "../shared/credential-lease.runtime.js";

3232

import {

3333

appendQaLiveLaneIssue as appendLiveLaneIssue,

34-

buildQaLiveLaneArtifactsError as buildLiveLaneArtifactsError,

3534

redactQaLiveLaneDetails,

3635

redactQaLiveLaneIssues,

3736

} from "../shared/live-artifacts.js";

@@ -2950,6 +2949,43 @@ function appendPreScenarioFailureResults(params: {

29502949

}

29512950

}

295229512952+

async function hasWhatsAppGatewayDebugArtifacts(gatewayDebugDirPath: string) {

2953+

try {

2954+

const entries = await fs.readdir(gatewayDebugDirPath);

2955+

return entries.length > 0;

2956+

} catch (error) {

2957+

if ((error as NodeJS.ErrnoException).code === "ENOENT") {

2958+

return false;

2959+

}

2960+

throw error;

2961+

}

2962+

}

2963+2964+

async function buildPublishedWhatsAppQaRunView(params: {

2965+

cleanupIssues: string[];

2966+

gatewayDebugDirPath: string;

2967+

preservedGatewayDebugArtifacts: boolean;

2968+

redactMetadata: boolean;

2969+

scenarioResults: WhatsAppQaScenarioResult[];

2970+

}) {

2971+

const publishedCleanupIssues = params.redactMetadata

2972+

? redactQaLiveLaneIssues(params.cleanupIssues)

2973+

: params.cleanupIssues;

2974+

const publishedScenarioResults = params.redactMetadata

2975+

? redactWhatsAppQaScenarioResults(params.scenarioResults)

2976+

: params.scenarioResults;

2977+

const gatewayDebugDirPath =

2978+

params.preservedGatewayDebugArtifacts &&

2979+

(await hasWhatsAppGatewayDebugArtifacts(params.gatewayDebugDirPath))

2980+

? params.gatewayDebugDirPath

2981+

: undefined;

2982+

return {

2983+

cleanupIssues: publishedCleanupIssues,

2984+

gatewayDebugDirPath,

2985+

scenarioResults: publishedScenarioResults,

2986+

};

2987+

}

2988+29532989

function formatWhatsAppScenarioProgressLine(params: {

29542990

details?: string;

29552991

index: number;

@@ -3171,17 +3207,7 @@ export async function runWhatsAppQaLive(params: {

31713207

}

31723208

}

31733209

} catch (error) {

3174-

cleanupIssues.push(

3175-

buildLiveLaneArtifactsError({

3176-

heading: "WhatsApp QA failed before scenario completion.",

3177-

details: [formatErrorMessage(error)],

3178-

artifacts: {

3179-

gatewayDebug: gatewayDebugDirPath,

3180-

},

3181-

}),

3182-

);

3183-

preservedGatewayDebugArtifacts = true;

3184-

await fs.mkdir(gatewayDebugDirPath, { recursive: true }).catch(() => {});

3210+

appendLiveLaneIssue(cleanupIssues, "WhatsApp QA failed before scenario completion", error);

31853211

appendPreScenarioFailureResults({

31863212

details: formatErrorMessage(error),

31873213

scenarioResults,

@@ -3221,19 +3247,20 @@ export async function runWhatsAppQaLive(params: {

32213247

const summaryPath = path.join(outputDir, QA_EVIDENCE_FILENAME);

32223248

const observedMessagesPath = path.join(outputDir, "whatsapp-qa-observed-messages.json");

32233249

const credentialFingerprint = fingerprintQaCredentialId(credentialLease?.credentialId);

3224-

const publishedCleanupIssues = redactPublicMetadata

3225-

? redactQaLiveLaneIssues(cleanupIssues)

3226-

: cleanupIssues;

3227-

const publishedScenarioResults = redactPublicMetadata

3228-

? redactWhatsAppQaScenarioResults(scenarioResults)

3229-

: scenarioResults;

3250+

const publishedRunView = await buildPublishedWhatsAppQaRunView({

3251+

cleanupIssues,

3252+

gatewayDebugDirPath,

3253+

preservedGatewayDebugArtifacts,

3254+

redactMetadata: redactPublicMetadata,

3255+

scenarioResults,

3256+

});

32303257

const evidence = buildLiveTransportEvidenceSummary({

32313258

artifactPaths: [

32323259

{ kind: "summary", path: path.basename(summaryPath) },

32333260

{ kind: "report", path: path.basename(reportPath) },

32343261

{ kind: "transport-observations", path: path.basename(observedMessagesPath) },

32353262

],

3236-

checks: publishedScenarioResults.map(({ standardId, ...check }) => ({

3263+

checks: publishedRunView.scenarioResults.map(({ standardId, ...check }) => ({

32373264

...check,

32383265

coverageIds: standardId ? [`channels.whatsapp.${standardId}`] : undefined,

32393266

})),

@@ -3259,13 +3286,13 @@ export async function runWhatsAppQaLive(params: {

32593286

await fs.writeFile(

32603287

reportPath,

32613288

`${renderWhatsAppQaMarkdown({

3262-

cleanupIssues: publishedCleanupIssues,

3289+

cleanupIssues: publishedRunView.cleanupIssues,

32633290

credentialFingerprint,

32643291

credentialSource: credentialLease?.source ?? requestedCredentialSource,

32653292

finishedAt,

3266-

gatewayDebugDirPath: preservedGatewayDebugArtifacts ? gatewayDebugDirPath : undefined,

3293+

gatewayDebugDirPath: publishedRunView.gatewayDebugDirPath,

32673294

redactMetadata: redactPublicMetadata,

3268-

scenarios: publishedScenarioResults,

3295+

scenarios: publishedRunView.scenarioResults,

32693296

startedAt,

32703297

sutPhoneE164: runtimeEnv?.sutPhoneE164,

32713298

})}\n`,

@@ -3275,14 +3302,15 @@ export async function runWhatsAppQaLive(params: {

32753302

reportPath,

32763303

summaryPath,

32773304

observedMessagesPath,

3278-

gatewayDebugDirPath: preservedGatewayDebugArtifacts ? gatewayDebugDirPath : undefined,

3305+

gatewayDebugDirPath: publishedRunView.gatewayDebugDirPath,

32793306

scenarios: scenarioResults,

32803307

};

32813308

}

3282330932833310

export const testing = {

32843311

assertSafeArchiveEntries,

32853312

appendPreScenarioFailureResults,

3313+

buildPublishedWhatsAppQaRunView,

32863314

buildWhatsAppQaConfig,

32873315

callWhatsAppGatewayMessageAction,

32883316

callWhatsAppGatewayPoll,

@@ -3296,6 +3324,7 @@ export const testing = {

32963324

formatWhatsAppScenarioProgressLine,

32973325

fingerprintWhatsAppCredentialId: fingerprintQaCredentialId,

32983326

formatWhatsAppScenarioWaitDiagnostics,

3327+

hasWhatsAppGatewayDebugArtifacts,

32993328

isTransientWhatsAppQaDriverError,

33003329

matchesWhatsAppApprovalResolvedText,

33013330

parseWhatsAppQaCredentialPayload,