Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix potential OOM when parsing logs in workflows #36

Merged
merged 1 commit into from
Sep 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,7 @@ private void parseLogBody(final Run<?, ?> build, final BufferedWriter writer, fi

// Read log file from start - line by line and apply the statuses as
// found by the threads.
final InputStreamReader streamReader = new InputStreamReader(
build.getLogInputStream(),
build.getCharset() );
final BufferedReader reader = new BufferedReader( streamReader );
final BufferedReader reader = new BufferedReader( build.getLogReader() );
String line;
String status;
int line_num = 0;
Expand Down