Skip to content

Commit 2ff2d4f

Browse files
committed
handle log content processing errors and use correct param for maxjobloglines
1 parent 4e43327 commit 2ff2d4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/github/actions.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,10 @@ func downloadLogContent(logURL string, tailLines int) (string, int, *http.Respon
757757
tailLines = 1000
758758
}
759759

760-
processedInput, totalLines, httpResp, err := buffer.ProcessAsRingBufferToEnd(httpResp, tailLines)
760+
processedInput, totalLines, httpResp, err := buffer.ProcessAsRingBufferToEnd(httpResp, maxJobLogLines)
761+
if err != nil {
762+
return "", 0, httpResp, fmt.Errorf("failed to process log content: %w", err)
763+
}
761764

762765
if len(processedInput) > tailLines {
763766
processedInput = processedInput[len(processedInput)-tailLines:]

0 commit comments

Comments
 (0)