From 8f557b84f662cfb1c1fb19faac1293f7131437f6 Mon Sep 17 00:00:00 2001 From: Sergi Blanch-Torne Date: Fri, 13 Jun 2025 10:44:06 +0200 Subject: [PATCH] ci: crnm: fix hyperlink format While preparing a console link, if there is not padding defined and the text is not strictly a string, we can have an exception that is also finishing the execution. So, we need to strictly cast the text variable. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13342 Signed-off-by: Sergi Blanch-Torne Part-of: --- bin/ci/ci_run_n_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ci/ci_run_n_monitor.py b/bin/ci/ci_run_n_monitor.py index 1a22e43d05e..094929c9c90 100755 --- a/bin/ci/ci_run_n_monitor.py +++ b/bin/ci/ci_run_n_monitor.py @@ -611,7 +611,7 @@ def __job_duration_record(dict_item: tuple) -> str: def link2print(url: str, text: str, text_pad: int = 0) -> str: - text_pad = len(text) if text_pad < 1 else text_pad + text_pad = len(str(text)) if text_pad < 1 else text_pad return f"{URL_START}{url}\a{text:{text_pad}}{URL_END}"