fix: bound branch follower gate evidence
This commit is contained in:
@@ -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),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user