fix: bound branch follower gate evidence

This commit is contained in:
Codex
2026-07-04 06:06:14 +00:00
parent 01a2fcfd5e
commit d09765f0a3
3 changed files with 61 additions and 6 deletions
+2 -1
View File
@@ -60,6 +60,7 @@ async function main() {
const taskRunSteps = stepRows(status);
const containers = mergeContainerRows(taskRunSteps, podStatuses).slice(0, maxContainers);
const logContainers = selectLogContainers(containers);
const includeLogTails = process.env.INCLUDE_LOG_TAILS === "true" || condition?.status !== "True";
const logs = [];
const perContainerBytes = Math.max(1, Math.floor(maxLogBytes / Math.max(1, logContainers.length)));
for (const container of logContainers) {
@@ -75,7 +76,7 @@ async function main() {
container: name,
lineCount: text.length === 0 ? 0 : text.split(/\r?\n/u).filter((line) => line.length > 0).length,
bytes: Buffer.byteLength(text, "utf8"),
tail: text,
...(includeLogTails || read.ok === false ? { tail: text } : {}),
nodeCicdTiming: lastNodeCicdTiming(text),
});
}