fix: honor explicit CI timing run id · openclaw/openclaw@5feedbf
steipete
·
2026-04-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -173,6 +173,15 @@ async function main() {
|
173 | 173 | const args = process.argv.slice(2); |
174 | 174 | const recentIndex = args.indexOf("--recent"); |
175 | 175 | const limitIndex = args.indexOf("--limit"); |
| 176 | +const ignoredArgIndexes = new Set(); |
| 177 | +if (limitIndex !== -1) { |
| 178 | +ignoredArgIndexes.add(limitIndex); |
| 179 | +ignoredArgIndexes.add(limitIndex + 1); |
| 180 | +} |
| 181 | +if (recentIndex !== -1) { |
| 182 | +ignoredArgIndexes.add(recentIndex); |
| 183 | +ignoredArgIndexes.add(recentIndex + 1); |
| 184 | +} |
176 | 185 | const limit = |
177 | 186 | limitIndex === -1 ? 15 : Math.max(1, Number.parseInt(args[limitIndex + 1] ?? "", 10) || 15); |
178 | 187 | if (recentIndex !== -1) { |
@@ -196,14 +205,7 @@ async function main() {
|
196 | 205 | } |
197 | 206 | return; |
198 | 207 | } |
199 | | -const runId = |
200 | | -args.find( |
201 | | -(arg, index) => |
202 | | -index !== limitIndex && |
203 | | -index !== limitIndex + 1 && |
204 | | -index !== recentIndex && |
205 | | -index !== recentIndex + 1, |
206 | | -) ?? getLatestCiRunId(); |
| 208 | +const runId = args.find((_arg, index) => !ignoredArgIndexes.has(index)) ?? getLatestCiRunId(); |
207 | 209 | const summary = summarizeRunTimings(loadRun(runId), limit); |
208 | 210 | |
209 | 211 | console.log( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。