From daff21ef55f33ddb44986833bcce351034cbc8ca Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Wed, 6 Jul 2022 23:19:53 -0300 Subject: [PATCH] ci/lava: Make hung job status yellow It will help to know what happened to a non-successful job. Signed-off-by: Guilherme Gallo Part-of: --- .gitlab-ci/lava/lava_job_submitter.py | 6 +++++- .gitlab-ci/lava/utils/console_format.py | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/lava/lava_job_submitter.py b/.gitlab-ci/lava/lava_job_submitter.py index 5385ebb9f9b..82a52a7f130 100755 --- a/.gitlab-ci/lava/lava_job_submitter.py +++ b/.gitlab-ci/lava/lava_job_submitter.py @@ -217,7 +217,11 @@ def _call_proxy(fn, *args): class LAVAJob: - COLOR_STATUS_MAP = {"pass": CONSOLE_LOG["FG_GREEN"]} + COLOR_STATUS_MAP = { + "pass": CONSOLE_LOG["FG_GREEN"], + "hung": CONSOLE_LOG["FG_YELLOW"], + "fail": CONSOLE_LOG["FG_RED"], + } def __init__(self, proxy, definition): self.job_id = None diff --git a/.gitlab-ci/lava/utils/console_format.py b/.gitlab-ci/lava/utils/console_format.py index e0bb638f31c..a665b2c23aa 100644 --- a/.gitlab-ci/lava/utils/console_format.py +++ b/.gitlab-ci/lava/utils/console_format.py @@ -1,6 +1,7 @@ CONSOLE_LOG = { "FG_GREEN": "\x1b[1;32;5;197m", "FG_RED": "\x1b[1;38;5;197m", + "FG_YELLOW": "\x1b[1;33;5;197m", "RESET": "\x1b[0m", "UNDERLINED": "\x1b[3m", "BOLD": "\x1b[1m",