diff options
author | Guilherme Gallo <guilherme.gallo@collabora.com> | 2022-07-06 23:19:53 -0300 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-07-08 12:26:05 +0000 |
commit | daff21ef55f33ddb44986833bcce351034cbc8ca (patch) | |
tree | 75417dbbb1f3ee348e0c7d4acee93c2b37f02c19 /.gitlab-ci | |
parent | 2c51b7a9c975199ea22b560efd2e2da94cdab47f (diff) |
ci/lava: Make hung job status yellow
It will help to know what happened to a non-successful job.
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17389>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/lava/lava_job_submitter.py | 6 | ||||
-rw-r--r-- | .gitlab-ci/lava/utils/console_format.py | 1 |
2 files changed, 6 insertions, 1 deletions
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", |