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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
Y
Y Combinator Blog
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
T
Tailwind CSS Blog
G
Google Developers Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
P
Proofpoint News Feed
Jina AI
Jina AI
B
Blog RSS Feed
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
D
Docker

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): keep whatsapp lease exhaustion visible · opencla...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -302,6 +302,33 @@ describe("WhatsApp QA live runtime", () => {

302302

"WhatsApp QA failed during driver session start",

303303

);

304304
305+

const poolExhaustedView = await testing.buildPublishedWhatsAppQaRunView({

306+

cleanupIssues: [

307+

'WhatsApp QA failed during credential lease acquisition: Convex credential pool exhausted for kind "whatsapp" after 1800000ms. private broker detail +15550000002',

308+

],

309+

gatewayDebugDirPath: debugDir,

310+

preservedGatewayDebugArtifacts: false,

311+

redactMetadata: true,

312+

scenarioResults: [

313+

{

314+

id: "whatsapp-canary",

315+

title: "WhatsApp DM canary",

316+

standardId: "canary",

317+

status: "fail",

318+

details:

319+

'WhatsApp QA failed during credential lease acquisition: Convex credential pool exhausted for kind "whatsapp" after 1800000ms. private broker detail +15550000002',

320+

},

321+

],

322+

});

323+
324+

expect(poolExhaustedView.cleanupIssues).toEqual([

325+

'WhatsApp QA failed during credential lease acquisition: Convex credential pool exhausted for kind "whatsapp" after 1800000ms.',

326+

]);

327+

expect(poolExhaustedView.scenarioResults[0]?.details).toBe(

328+

'WhatsApp QA failed during credential lease acquisition: Convex credential pool exhausted for kind "whatsapp" after 1800000ms.',

329+

);

330+

expect(JSON.stringify(poolExhaustedView)).not.toContain("+15550000002");

331+
305332

await fs.writeFile(path.join(debugDir, "gateway.stderr.log"), "stderr\n");

306333

await expect(

307334

testing.buildPublishedWhatsAppQaRunView({

Original file line numberDiff line numberDiff line change

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

3232

import {

3333

appendQaLiveLaneIssue as appendLiveLaneIssue,

3434

redactQaLiveLaneDetails,

35-

redactQaLiveLaneIssues,

3635

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

3736

import { startQaLiveLaneGateway } from "../shared/live-gateway.runtime.js";

3837

import {

@@ -2898,6 +2897,8 @@ const SAFE_WHATSAPP_DRIVER_DIAGNOSTICS_PATTERN =

28982897

/observed \d+ WhatsApp driver message\(s\) after (?:(?:pending|resolved) approval )?wait lower bound(?:: [-A-Za-z0-9_#:=()., +;/]+)?/u;

28992898

const SAFE_WHATSAPP_PRE_SCENARIO_FAILURE_PATTERN =

29002899

/^WhatsApp QA failed during (?:auth archive unpack|credential heartbeat start|credential lease acquisition|driver session start|scenario execution)$/u;

2900+

const SAFE_WHATSAPP_CREDENTIAL_POOL_EXHAUSTED_PATTERN =

2901+

/Convex credential pool exhausted for kind "whatsapp" after \d+ms\./u;

29012902
29022903

function formatWhatsAppPreScenarioFailureLabel(phase: WhatsAppQaPreScenarioPhase) {

29032904

return `WhatsApp QA failed during ${phase}`;

@@ -2918,7 +2919,10 @@ function redactWhatsAppQaScenarioDetails(details: string) {

29182919

const preScenarioFailureLabel =

29192920

separatorIndex < 0 ? firstLine.trim() : firstLine.slice(0, separatorIndex).trim();

29202921

if (SAFE_WHATSAPP_PRE_SCENARIO_FAILURE_PATTERN.test(preScenarioFailureLabel)) {

2921-

return preScenarioFailureLabel;

2922+

const poolExhausted = firstLine.match(SAFE_WHATSAPP_CREDENTIAL_POOL_EXHAUSTED_PATTERN);

2923+

return poolExhausted

2924+

? `${preScenarioFailureLabel}: ${poolExhausted[0]}`

2925+

: preScenarioFailureLabel;

29222926

}

29232927

const safeDriverDiagnostics = normalized.match(SAFE_WHATSAPP_DRIVER_DIAGNOSTICS_PATTERN);

29242928

if (safeDriverDiagnostics) {

@@ -2931,6 +2935,26 @@ function redactWhatsAppQaScenarioDetails(details: string) {

29312935

return safeSegments.length > 0 ? safeSegments.join("; ") : redactQaLiveLaneDetails();

29322936

}

29332937
2938+

function redactWhatsAppQaCleanupIssue(issue: string) {

2939+

const firstLine = issue.split(/\r?\n/u, 1)[0] ?? "";

2940+

const separatorIndex = firstLine.indexOf(":");

2941+

const label = separatorIndex < 0 ? "" : firstLine.slice(0, separatorIndex).trim();

2942+

if (!label) {

2943+

return redactQaLiveLaneDetails();

2944+

}

2945+

if (SAFE_WHATSAPP_PRE_SCENARIO_FAILURE_PATTERN.test(label)) {

2946+

const poolExhausted = firstLine.match(SAFE_WHATSAPP_CREDENTIAL_POOL_EXHAUSTED_PATTERN);

2947+

if (poolExhausted) {

2948+

return `${label}: ${poolExhausted[0]}`;

2949+

}

2950+

}

2951+

return `${label}: ${redactQaLiveLaneDetails()}`;

2952+

}

2953+
2954+

function redactWhatsAppQaCleanupIssues(issues: readonly string[]) {

2955+

return issues.map(redactWhatsAppQaCleanupIssue);

2956+

}

2957+
29342958

function createMissingGroupJidScenarioResult(params: {

29352959

explicitScenarioSelection: boolean;

29362960

scenario: WhatsAppQaScenarioDefinition;

@@ -2988,7 +3012,7 @@ async function buildPublishedWhatsAppQaRunView(params: {

29883012

scenarioResults: WhatsAppQaScenarioResult[];

29893013

}) {

29903014

const publishedCleanupIssues = params.redactMetadata

2991-

? redactQaLiveLaneIssues(params.cleanupIssues)

3015+

? redactWhatsAppQaCleanupIssues(params.cleanupIssues)

29923016

: params.cleanupIssues;

29933017

const publishedScenarioResults = params.redactMetadata

29943018

? redactWhatsAppQaScenarioResults(params.scenarioResults)