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

推荐订阅源

S
SegmentFault 最新的问题
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
博客园 - 【当耐特】
月光博客
月光博客
Vercel News
Vercel News
D
Docker
I
InfoQ
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
GbyAI
GbyAI
有赞技术团队
有赞技术团队
雷峰网
雷峰网
博客园 - 聂微东
小众软件
小众软件
Y
Y Combinator Blog
腾讯CDC
L
LangChain Blog
The GitHub Blog
The GitHub Blog
宝玉的分享
宝玉的分享
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
T
The Blog of Author Tim Ferriss

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
test(qa): report telegram reply rtt · openclaw/openclaw@c...
obviyus · 2026-04-23 · via Recent Commits to openclaw:main

@@ -100,6 +100,11 @@ type TelegramQaScenarioResult = {

100100

title: string;

101101

status: "pass" | "fail";

102102

details: string;

103+

rttMs?: number;

104+

requestStartedAt?: string;

105+

responseObservedAt?: string;

106+

sentMessageId?: number;

107+

responseMessageId?: number;

103108

};

104109105110

type TelegramQaCanaryPhase = "sut_reply_timeout" | "sut_reply_not_threaded" | "sut_reply_empty";

@@ -608,7 +613,7 @@ async function waitForObservedMessage(params: {

608613

};

609614

params.observedMessages.push(observedMessage);

610615

if (matchedScenario) {

611-

return { message: observedMessage, nextOffset: offset };

616+

return { message: observedMessage, nextOffset: offset, observedAtMs: Date.now() };

612617

}

613618

}

614619

}

@@ -671,6 +676,9 @@ function renderTelegramQaMarkdown(params: {

671676

lines.push("");

672677

lines.push(`- Status: ${scenario.status}`);

673678

lines.push(`- Details: ${scenario.details}`);

679+

if (scenario.rttMs !== undefined) {

680+

lines.push(`- RTT: ${scenario.rttMs}ms`);

681+

}

674682

lines.push("");

675683

}

676684

if (params.cleanupIssues.length > 0) {

@@ -796,11 +804,13 @@ async function runCanary(params: {

796804

observedMessages: TelegramObservedMessage[];

797805

}) {

798806

const offset = await flushTelegramUpdates(params.driverToken);

807+

const requestStartedAtMs = Date.now();

799808

const driverMessage = await sendGroupMessage(

800809

params.driverToken,

801810

params.groupId,

802811

`/help@${params.sutUsername}`,

803812

);

813+

const requestStartedAt = new Date(requestStartedAtMs).toISOString();

804814

let firstUnthreadedReply:

805815

| Pick<TelegramObservedMessage, "messageId" | "replyToMessageId" | "text">

806816

| undefined;

@@ -871,6 +881,13 @@ async function runCanary(params: {

871881

},

872882

);

873883

}

884+

return {

885+

requestStartedAt,

886+

responseObservedAt: new Date(sutObserved.observedAtMs).toISOString(),

887+

rttMs: sutObserved.observedAtMs - requestStartedAtMs,

888+

sentMessageId: driverMessage.message_id,

889+

responseMessageId: sutObserved.message.messageId,

890+

};

874891

}

875892876893

function canaryFailureMessage(params: {

@@ -1045,13 +1062,26 @@ export async function runTelegramQaLive(params: {

10451062

assertLeaseHealthy();

10461063

try {

10471064

writeTelegramQaProgress(progressEnabled, "canary start");

1048-

await runCanary({

1065+

const canaryTiming = await runCanary({

10491066

driverToken: runtimeEnv.driverToken,

10501067

groupId: runtimeEnv.groupId,

10511068

sutUsername,

10521069

sutBotId: sutIdentity.id,

10531070

observedMessages,

10541071

});

1072+

scenarioResults.push({

1073+

id: "telegram-canary",

1074+

title: "Telegram canary",

1075+

status: "pass",

1076+

details: redactPublicMetadata

1077+

? `reply matched in ${canaryTiming.rttMs}ms`

1078+

: `reply message ${canaryTiming.responseMessageId} matched in ${canaryTiming.rttMs}ms`,

1079+

rttMs: canaryTiming.rttMs,

1080+

requestStartedAt: canaryTiming.requestStartedAt,

1081+

responseObservedAt: canaryTiming.responseObservedAt,

1082+

sentMessageId: redactPublicMetadata ? undefined : canaryTiming.sentMessageId,

1083+

responseMessageId: redactPublicMetadata ? undefined : canaryTiming.responseMessageId,

1084+

});

10551085

writeTelegramQaProgress(progressEnabled, "canary pass");

10561086

} catch (error) {

10571087

canaryFailure = canaryFailureMessage({

@@ -1087,11 +1117,13 @@ export async function runTelegramQaLive(params: {

10871117

assertLeaseHealthy();

10881118

const scenarioRun = scenario.buildRun(sutUsername);

10891119

try {

1120+

const requestStartedAtMs = Date.now();

10901121

const sent = await sendGroupMessage(

10911122

runtimeEnv.driverToken,

10921123

runtimeEnv.groupId,

10931124

scenarioRun.input,

10941125

);

1126+

const requestStartedAt = new Date(requestStartedAtMs).toISOString();

10951127

const matched = await waitForObservedMessage({

10961128

token: runtimeEnv.driverToken,

10971129

initialOffset: driverOffset,

@@ -1116,13 +1148,19 @@ export async function runTelegramQaLive(params: {

11161148

expectedTextIncludes: scenarioRun.expectedTextIncludes,

11171149

message: matched.message,

11181150

});

1151+

const rttMs = matched.observedAtMs - requestStartedAtMs;

11191152

const result = {

11201153

id: scenario.id,

11211154

title: scenario.title,

11221155

status: "pass",

11231156

details: redactPublicMetadata

1124-

? "reply matched"

1125-

: `reply message ${matched.message.messageId} matched`,

1157+

? `reply matched in ${rttMs}ms`

1158+

: `reply message ${matched.message.messageId} matched in ${rttMs}ms`,

1159+

rttMs,

1160+

requestStartedAt,

1161+

responseObservedAt: new Date(matched.observedAtMs).toISOString(),

1162+

sentMessageId: redactPublicMetadata ? undefined : sent.message_id,

1163+

responseMessageId: redactPublicMetadata ? undefined : matched.message.messageId,

11261164

} satisfies TelegramQaScenarioResult;

11271165

scenarioResults.push(result);

11281166

writeTelegramQaProgress(

@@ -1295,4 +1333,5 @@ export const __testing = {

12951333

sanitizeTelegramQaProgressValue,

12961334

shouldLogTelegramQaLiveProgress,

12971335

formatTelegramQaProgressDetails,

1336+

renderTelegramQaMarkdown,

12981337

};