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

推荐订阅源

MyScale Blog
MyScale Blog
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
V
Visual Studio Blog
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
L
LangChain Blog
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
P
Proofpoint News Feed
博客园_首页
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog

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
ci: restore timing summary artifact (#87832) · openclaw/o...
RomneyDa · 2026-05-29 · via Recent Commits to openclaw:main

@@ -18,11 +18,35 @@ function formatSeconds(value) {

1818

return value === null ? "" : `${value}s`;

1919

}

202021+

function percentile(values, percentileValue) {

22+

if (values.length === 0) {

23+

return null;

24+

}

25+

const sorted = [...values].toSorted((left, right) => left - right);

26+

const index = Math.min(sorted.length - 1, Math.ceil(sorted.length * percentileValue) - 1);

27+

return sorted[index];

28+

}

29+2130

function parseRunList(raw) {

2231

const parsed = JSON.parse(raw);

2332

return Array.isArray(parsed) ? parsed : [];

2433

}

253435+

function isPnpmStoreWarmupGatedJobName(name) {

36+

return (

37+

name === "build-artifacts" ||

38+

name === "check-docs" ||

39+

name === "check-guards" ||

40+

name === "check-prod-types" ||

41+

name === "check-lint" ||

42+

name === "check-dependencies" ||

43+

name === "check-test-types" ||

44+

name.startsWith("check-additional-") ||

45+

name.startsWith("checks-fast-") ||

46+

(name.startsWith("checks-node-") && !name.startsWith("checks-node-compat-"))

47+

);

48+

}

49+2650

function collectRunTimingContext(run) {

2751

const created = parseTime(run.createdAt);

2852

const updated = parseTime(run.updatedAt);

@@ -69,6 +93,46 @@ export function summarizeRunTimings(run, limit = 15) {

6993

};

7094

}

719596+

export function summarizePnpmStoreWarmupBarrier(run, windowSeconds = 5) {

97+

const { jobs } = collectRunTimingContext(run);

98+

const preflight = jobs.find((job) => job.name === "preflight");

99+

const warmup = jobs.find((job) => job.name === "pnpm-store-warmup");

100+

if (!warmup?.started || !warmup?.completed) {

101+

return null;

102+

}

103+104+

const postWarmupJobs = jobs.filter(

105+

(job) =>

106+

job.name !== "preflight" &&

107+

job.name !== "security-fast" &&

108+

job.name !== "pnpm-store-warmup" &&

109+

isPnpmStoreWarmupGatedJobName(job.name) &&

110+

job.status === "completed" &&

111+

job.conclusion !== "skipped" &&

112+

job.started !== null &&

113+

job.started >= warmup.completed &&

114+

(job.durationSeconds ?? 0) > 5,

115+

);

116+

const startDelays = postWarmupJobs

117+

.map((job) => secondsBetween(warmup.completed, job.started))

118+

.filter((delay) => delay !== null);

119+120+

return {

121+

activePostWarmupJobCount: postWarmupJobs.length,

122+

firstPostWarmupStartDelaySeconds: startDelays.length === 0 ? null : Math.min(...startDelays),

123+

postWarmupP95StartDelaySeconds: percentile(startDelays, 0.95),

124+

postWarmupStartedWithinWindow: startDelays.filter((delay) => delay <= windowSeconds).length,

125+

preflightToWarmupCompleteSeconds: secondsBetween(

126+

preflight?.completed ?? null,

127+

warmup.completed,

128+

),

129+

preflightToWarmupStartSeconds: secondsBetween(preflight?.completed ?? null, warmup.started),

130+

warmupDurationSeconds: secondsBetween(warmup.started, warmup.completed),

131+

warmupResult: `${warmup.status}/${warmup.conclusion}`,

132+

windowSeconds,

133+

};

134+

}

135+72136

export function selectLatestMainPushCiRun(runs, headSha = null) {

73137

const pushRuns = runs.filter((run) => run.event === "push");

74138

if (headSha) {

@@ -193,15 +257,6 @@ function summarizeJobs(run) {

193257

};

194258

}

195259196-

function percentile(values, percentileValue) {

197-

if (values.length === 0) {

198-

return null;

199-

}

200-

const sorted = [...values].toSorted((left, right) => left - right);

201-

const index = Math.min(sorted.length - 1, Math.ceil(sorted.length * percentileValue) - 1);

202-

return sorted[index];

203-

}

204-205260

function printSection(title, jobs, metric) {

206261

console.log(title);

207262

for (const job of jobs) {

@@ -265,11 +320,32 @@ async function main() {

265320

return;

266321

}

267322

const runId = explicitRunId ?? (useLatestMain ? getLatestMainPushCiRunId() : getLatestCiRunId());

268-

const summary = summarizeRunTimings(loadRun(runId), limit);

323+

const run = loadRun(runId);

324+

const summary = summarizeRunTimings(run, limit);

325+

const warmupBarrier = summarizePnpmStoreWarmupBarrier(run);

269326270327

console.log(

271328

`CI run ${runId}: ${summary.status}/${summary.conclusion} wall=${formatSeconds(summary.wallSeconds)}`,

272329

);

330+

if (warmupBarrier) {

331+

console.log("\npnpm-store-warmup barrier");

332+

console.log(

333+

[

334+

`result=${warmupBarrier.warmupResult}`,

335+

`preflight->start=${formatSeconds(warmupBarrier.preflightToWarmupStartSeconds)}`,

336+

`duration=${formatSeconds(warmupBarrier.warmupDurationSeconds)}`,

337+

`preflight->complete=${formatSeconds(warmupBarrier.preflightToWarmupCompleteSeconds)}`,

338+

].join(" "),

339+

);

340+

console.log(

341+

[

342+

`active-post-warmup-jobs=${warmupBarrier.activePostWarmupJobCount}`,

343+

`first-start-delay=${formatSeconds(warmupBarrier.firstPostWarmupStartDelaySeconds)}`,

344+

`p95-start-delay=${formatSeconds(warmupBarrier.postWarmupP95StartDelaySeconds)}`,

345+

`started-within-${warmupBarrier.windowSeconds}s=${warmupBarrier.postWarmupStartedWithinWindow}`,

346+

].join(" "),

347+

);

348+

}

273349

printSection("\nSlowest jobs", summary.byDuration, "durationSeconds");

274350

printSection("\nLongest queues", summary.byQueue, "queueSeconds");

275351

if (summary.badJobs.length > 0) {