mesa/.gitlab-ci/lava/utils
Guilherme Gallo 7600e2cca2 ci: Handle carriage return characters in LAVA logs
This commit updates LogFollower class to handle carriage return
characters in LAVA logs. LAVA treats carriage return characters as a
line break, so each carriage return in an output console is mapped to a
console line in LAVA.

The updated LogFollower class now merges lines that end with a carriage
return character into a single line, making the Gitlab sections work
correctly. In addition, the `remove_trailing_whitespace` method has been
updated to remove trailing `\r\n` characters from log lines.

The `test_lava_log_merge_carriage_return_lines` test function has also
been updated to test for carriage returns at the end of the previous
line.

Closes: #8242

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21614>
2023-03-06 17:17:32 +00:00
..
__init__.py ci/lava: Feed yaml.load with raw bytes data 2022-12-21 12:44:49 +00:00
console_format.py ci/lava: Add canceled job status 2022-07-08 12:26:05 +00:00
gitlab_section.py ci/lava: Split lava_log into modules 2022-07-08 12:26:05 +00:00
lava_farm.py ci/lava: Add LavaFarm class to find LAVA farm from runner tag 2023-02-16 13:08:41 +00:00
lava_log_hints.py ci/lava: Add canceled job status 2022-07-08 12:26:05 +00:00
log_follower.py ci: Handle carriage return characters in LAVA logs 2023-03-06 17:17:32 +00:00
log_section.py ci/lava: Add timeout header info for LAVA GL Sections 2022-08-03 21:50:34 +00:00