Mesa (main): ci/lava: Make hung job status yellow
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jul 8 12:54:57 UTC 2022
Module: Mesa
Branch: main
Commit: daff21ef55f33ddb44986833bcce351034cbc8ca
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=daff21ef55f33ddb44986833bcce351034cbc8ca
Author: Guilherme Gallo <guilherme.gallo at collabora.com>
Date: Wed Jul 6 23:19:53 2022 -0300
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 at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17389>
---
.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",
More information about the mesa-commit
mailing list