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

推荐订阅源

小众软件
小众软件
B
Blog RSS Feed
美团技术团队
博客园 - 【当耐特】
C
Check Point Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
aimingoo的专栏
aimingoo的专栏
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 司徒正美
T
Tailwind CSS Blog
Last Week in AI
Last Week in AI
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
Vercel News
Vercel News
P
Proofpoint News Feed
IT之家
IT之家
I
InfoQ
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More

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: remove runner caps after timing review · openclaw/ope...
steipete · 2026-04-23 · via Recent Commits to openclaw:main

@@ -70,6 +70,28 @@ function getLatestCiRunId() {

7070

return String(runId);

7171

}

727273+

function listRecentSuccessfulCiRuns(limit) {

74+

const raw = execFileSync(

75+

"gh",

76+

[

77+

"run",

78+

"list",

79+

"--branch",

80+

"main",

81+

"--workflow",

82+

"CI",

83+

"--limit",

84+

String(Math.max(limit * 4, limit)),

85+

"--json",

86+

"databaseId,headSha,status,conclusion",

87+

],

88+

{ encoding: "utf8" },

89+

);

90+

return JSON.parse(raw)

91+

.filter((run) => run.status === "completed" && run.conclusion === "success")

92+

.slice(0, limit);

93+

}

94+7395

function loadRun(runId) {

7496

return JSON.parse(

7597

execFileSync(

@@ -82,6 +104,62 @@ function loadRun(runId) {

82104

);

83105

}

84106107+

function summarizeJobs(run) {

108+

const created = parseTime(run.createdAt);

109+

const updated = parseTime(run.updatedAt);

110+

const jobs = (run.jobs ?? [])

111+

.filter((job) => !job.name?.startsWith("matrix."))

112+

.map((job) => {

113+

const started = parseTime(job.startedAt);

114+

const completed = parseTime(job.completedAt);

115+

return {

116+

conclusion: job.conclusion ?? "",

117+

durationSeconds: secondsBetween(started, completed),

118+

name: job.name,

119+

queueSeconds: secondsBetween(created, started),

120+

started,

121+

completed,

122+

status: job.status,

123+

};

124+

})

125+

.filter((job) => job.started !== null && job.completed !== null);

126+

const successfulDurations = jobs

127+

.filter((job) => job.status === "completed" && job.conclusion === "success")

128+

.map((job) => job.durationSeconds)

129+

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

130+

const firstStart = Math.min(...jobs.map((job) => job.started));

131+

const lastComplete = Math.max(...jobs.map((job) => job.completed));

132+133+

return {

134+

avgDurationSeconds:

135+

successfulDurations.length === 0

136+

? null

137+

: Math.round(

138+

successfulDurations.reduce((sum, duration) => sum + duration, 0) /

139+

successfulDurations.length,

140+

),

141+

executionWindowSeconds:

142+

Number.isFinite(firstStart) && Number.isFinite(lastComplete)

143+

? secondsBetween(firstStart, lastComplete)

144+

: null,

145+

firstQueueSeconds: Number.isFinite(firstStart) ? secondsBetween(created, firstStart) : null,

146+

jobCount: successfulDurations.length,

147+

maxDurationSeconds: successfulDurations.length === 0 ? null : Math.max(...successfulDurations),

148+

p90DurationSeconds: percentile(successfulDurations, 0.9),

149+

p95DurationSeconds: percentile(successfulDurations, 0.95),

150+

wallSeconds: secondsBetween(created, updated),

151+

};

152+

}

153+154+

function percentile(values, percentileValue) {

155+

if (values.length === 0) {

156+

return null;

157+

}

158+

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

159+

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

160+

return sorted[index];

161+

}

162+85163

function printSection(title, jobs, metric) {

86164

console.log(title);

87165

for (const job of jobs) {

@@ -93,12 +171,39 @@ function printSection(title, jobs, metric) {

9317194172

async function main() {

95173

const args = process.argv.slice(2);

174+

const recentIndex = args.indexOf("--recent");

96175

const limitIndex = args.indexOf("--limit");

97176

const limit =

98177

limitIndex === -1 ? 15 : Math.max(1, Number.parseInt(args[limitIndex + 1] ?? "", 10) || 15);

178+

if (recentIndex !== -1) {

179+

const recentLimit = Math.max(1, Number.parseInt(args[recentIndex + 1] ?? "", 10) || 10);

180+

for (const run of listRecentSuccessfulCiRuns(recentLimit)) {

181+

const summary = summarizeJobs(loadRun(run.databaseId));

182+

console.log(

183+

[

184+

`CI run ${run.databaseId}`,

185+

run.headSha.slice(0, 10),

186+

`wall=${formatSeconds(summary.wallSeconds)}`,

187+

`exec=${formatSeconds(summary.executionWindowSeconds)}`,

188+

`firstQueue=${formatSeconds(summary.firstQueueSeconds)}`,

189+

`jobs=${summary.jobCount}`,

190+

`avg=${formatSeconds(summary.avgDurationSeconds)}`,

191+

`p90=${formatSeconds(summary.p90DurationSeconds)}`,

192+

`p95=${formatSeconds(summary.p95DurationSeconds)}`,

193+

`max=${formatSeconds(summary.maxDurationSeconds)}`,

194+

].join(" "),

195+

);

196+

}

197+

return;

198+

}

99199

const runId =

100-

args.find((arg, index) => index !== limitIndex && index !== limitIndex + 1) ??

101-

getLatestCiRunId();

200+

args.find(

201+

(arg, index) =>

202+

index !== limitIndex &&

203+

index !== limitIndex + 1 &&

204+

index !== recentIndex &&

205+

index !== recentIndex + 1,

206+

) ?? getLatestCiRunId();

102207

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

103208104209

console.log(