[gitlab ci] ANSI escape code parser ignoring line clears in build trace
Using git clone
in a build script results in lots of output in the build trace due to the progress bar repeating.
The issue is that git
emits ANSI escape codes to clear the line, but the GitLab CI ignores them when converting to HTML with Ansi2html
.
Any other control sequence gets stripped (including stuff like "delete last line")
The comment was originally added in 29a55fd, but the behavior seems to have always implicitly ignored other escape codes even though they affect presentation.
I would consider using an ANSI to HTML converter that supports a more complete set of escape codes.
terminal is the only gem I could find that handles most escape codes. screen.go#L137 is how they handle line clears.
Moved here from gitlab-ci issue #409.