ci/lava: Highlight kernel messages in bold
authorGuilherme Gallo <guilherme.gallo@collabora.com>
Thu, 30 Jun 2022 21:43:05 +0000 (18:43 -0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 7 Jul 2022 00:28:53 +0000 (00:28 +0000)
This will serve to warn the user that those messages are processed
differently, e.g. the kmsgs does not trigger heartbeats and maybe
eventual targets of hint to retry the job immediately.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16323>

.gitlab-ci/lava/utils/lava_log.py

index eeb3d4d..090c965 100644 (file)
@@ -264,7 +264,7 @@ class LogFollower:
 
         # we have a line, check if it is a kernel message
         if re.search(r"\[[\d\s]{5}\.[\d\s]{6}\] +\S{2,}", line["msg"]):
-            print_log(f"{line['msg']}")
+            print_log(f"{CONSOLE_LOG['BOLD']}{line['msg']}{CONSOLE_LOG['RESET']}")
             return True
 
         return False