Skip to content

Commit

Permalink
feat(testworkflows): increase buffer size for logs buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 committed Jul 10, 2024
1 parent ead5e95 commit 5ff180f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/testworkflows/testworkflowcontroller/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

const (
FlushLogMaxSize = 100_000
FlushBufferSize = 65_536
FlushLogTime = 100 * time.Millisecond
)

Expand Down Expand Up @@ -218,7 +219,7 @@ func WatchContainerLogs(parentCtx context.Context, clientSet kubernetes.Interfac
defer flushLogBuffer()

// Parse and return the logs
reader := bufio.NewReader(stream)
reader := bufio.NewReaderSize(stream, FlushBufferSize)
tsReader := newTimestampReader()
isNewLine := false
isStarted := false
Expand Down

0 comments on commit 5ff180f

Please sign in to comment.