From c9dfefe543382004775abe0fda2ee0ed5a39ce74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Ciecierski?= Date: Thu, 29 Jan 2026 20:34:05 +0100 Subject: [PATCH] Fix task name truncation in ci_script plugin: use rstrip instead of rsplit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using rsplit("_", 1)[0] dropped the last segment when there was no trailing underscore (e.g. for short ansible task names like "Deploy ceph" became "deploy"). Use rstrip("_") so we only remove a trailing underscore at the end of string. Signed-off-by: MikoĊ‚aj Ciecierski --- plugins/action/ci_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/action/ci_script.py b/plugins/action/ci_script.py index e24151ade9..73f94a9f3a 100644 --- a/plugins/action/ci_script.py +++ b/plugins/action/ci_script.py @@ -194,7 +194,7 @@ def run(self, tmp=None, task_vars=None): t_name = ( re.sub(r"[^A-Za-z0-9_]+", "_", self._task.name) .lower()[:30] - .rsplit("_", 1)[0] + .rstrip("_") ) chdir_path = task_args.get("chdir", None) log_path = output_dir.parent.joinpath(