Cause: Log viewer was not accounting for multi-line or partial line responses.
Consequence: If a response contained a multiline message, it would be directly appended and treated as a single line, causing the line numbers to be incorrect. Similarly, if a partial line was received, it would be treated as a full line, causing longer log lines to sometimes be split into multiple lines, again making the line count incorrect.
Fix: Added logic in the log viewer to account for multiline and partial line responses.
Result: Line numbers are now accurate.
Created attachment 1469909[details]
build log with wrong line count
+++ This bug was initially created as a clone of Bug #1601832 +++
Description of problem:
The old console also marked the wrong total num of build log stream in build page.
Version-Release number of selected component (if applicable):
docker.io/openshift/origin-console latest 1f14ec53b95d
How reproducible:
Always
Steps to Reproduce:
1. oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git
2. check build log
Actual results:
The total num is 2 lines
Expected results:
Should be correct total num of lines.