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 <sergi.blanch.torne@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35511>
This commit is contained in:
Sergi Blanch-Torne 2025-06-13 10:44:06 +02:00 committed by Marge Bot
parent c1cd28a6ab
commit 8f557b84f6

View file

@ -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}"