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

推荐订阅源

人人都是产品经理
人人都是产品经理
Google DeepMind News
Google DeepMind News
博客园 - 【当耐特】
量子位
博客园 - 司徒正美
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
腾讯CDC
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
I
InfoQ
D
Docker
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
宝玉的分享
宝玉的分享
G
Google Developers Blog
GbyAI
GbyAI
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
H
Help Net Security

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(rtt): expose warm sample metrics · openclaw/openclaw...
obviyus · 2026-05-01 · via Recent Commits to openclaw:main

@@ -10,6 +10,8 @@ export type RttProviderMode = "mock-openai" | "live-frontier";

1010

export type RttCliOptions = {

1111

providerMode: RttProviderMode;

1212

runs: number;

13+

samples: number;

14+

sampleTimeoutMs: number;

1315

harnessRoot: string;

1416

output: string;

1517

scenarios: string[];

@@ -35,6 +37,12 @@ export type RttResult = {

3537

rtt: {

3638

canaryMs?: number;

3739

mentionReplyMs?: number;

40+

warmSamples?: number[];

41+

avgMs?: number;

42+

p50Ms?: number;

43+

p95Ms?: number;

44+

maxMs?: number;

45+

failedSamples?: number;

3846

};

3947

artifacts: {

4048

rawSummaryPath: string;

@@ -49,6 +57,20 @@ export type TelegramQaSummary = {

4957

id?: string;

5058

rttMs?: number;

5159

status?: string;

60+

samples?: Array<{

61+

index?: number;

62+

status?: string;

63+

rttMs?: number;

64+

}>;

65+

stats?: {

66+

total?: number;

67+

passed?: number;

68+

failed?: number;

69+

avgMs?: number;

70+

p50Ms?: number;

71+

p95Ms?: number;

72+

maxMs?: number;

73+

};

5274

}>;

5375

};

5476

@@ -82,11 +104,26 @@ export function buildRunId(params: { now: Date; spec: string; index?: number })

8210483105

export function extractRtt(summary: TelegramQaSummary) {

84106

const scenarios = summary.scenarios ?? [];

85-

return {

107+

const mention = scenarios.find((scenario) => scenario.id === "telegram-mentioned-message-reply");

108+

const warmSamples = mention?.samples

109+

?.filter((sample) => sample.status === "pass" && sample.rttMs !== undefined)

110+

.sort((left, right) => (left.index ?? 0) - (right.index ?? 0))

111+

.flatMap((sample) => (sample.rttMs === undefined ? [] : [sample.rttMs]));

112+

const rtt: RttResult["rtt"] = {

86113

canaryMs: scenarios.find((scenario) => scenario.id === "telegram-canary")?.rttMs,

87-

mentionReplyMs: scenarios.find((scenario) => scenario.id === "telegram-mentioned-message-reply")

88-

?.rttMs,

114+

mentionReplyMs: mention?.stats?.p50Ms ?? mention?.rttMs,

89115

};

116+

if (warmSamples?.length) {

117+

rtt.warmSamples = warmSamples;

118+

}

119+

if (mention?.stats) {

120+

rtt.avgMs = mention.stats.avgMs;

121+

rtt.p50Ms = mention.stats.p50Ms;

122+

rtt.p95Ms = mention.stats.p95Ms;

123+

rtt.maxMs = mention.stats.maxMs;

124+

rtt.failedSamples = mention.stats.failed;

125+

}

126+

return rtt;

90127

}

9112892129

export function createHarnessEnv(params: {

@@ -96,6 +133,8 @@ export function createHarnessEnv(params: {

96133

spec: string;

97134

version: string;

98135

rawOutputDir: string;

136+

samples: number;

137+

sampleTimeoutMs: number;

99138

timeoutMs: number;

100139

}) {

101140

return {

@@ -106,6 +145,8 @@ export function createHarnessEnv(params: {

106145

OPENCLAW_NPM_TELEGRAM_SCENARIOS: params.scenarios.join(","),

107146

OPENCLAW_NPM_TELEGRAM_OUTPUT_DIR: params.rawOutputDir,

108147

OPENCLAW_NPM_TELEGRAM_FAST: params.baseEnv.OPENCLAW_NPM_TELEGRAM_FAST ?? "1",

148+

OPENCLAW_NPM_TELEGRAM_WARM_SAMPLES: String(params.samples),

149+

OPENCLAW_NPM_TELEGRAM_SAMPLE_TIMEOUT_MS: String(params.sampleTimeoutMs),

109150

OPENCLAW_QA_TELEGRAM_CANARY_TIMEOUT_MS: String(params.timeoutMs),

110151

OPENCLAW_QA_TELEGRAM_SCENARIO_TIMEOUT_MS: String(params.timeoutMs),

111152

};