From 5e111af7d2eebe5c70cb629481dd2d4d72795f50 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Tue, 10 Sep 2024 12:25:17 +0000 Subject: fix(c-dash): fix the name of infra and test in hover - in trending - make it more flexible Change-Id: Ic7b6f4f9413df420b14fc0681011e6c0bc46c57c Signed-off-by: Tibor Frank --- csit.infra.dash/app/cdash/trending/graphs.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/csit.infra.dash/app/cdash/trending/graphs.py b/csit.infra.dash/app/cdash/trending/graphs.py index 7417fc1733..816b28e9af 100644 --- a/csit.infra.dash/app/cdash/trending/graphs.py +++ b/csit.infra.dash/app/cdash/trending/graphs.py @@ -237,10 +237,17 @@ def graph_trending( hosts = f"
hosts: {', '.join(row['hosts'])}" except (KeyError, TypeError): hosts = str() + + for drv in C.DRIVERS: + if drv in name_lst: + split_idx = name_lst.index(drv) + 1 + break + else: + split_idx = 5 hover_itm = ( f"dut: {name_lst[0]}
" - f"infra: {'-'.join(name_lst[1:5])}
" - f"test: {'-'.join(name_lst[5:])}
" + f"infra: {'-'.join(name_lst[1:split_idx])}
" + f"test: {'-'.join(name_lst[split_idx:])}
" f"date: {row['start_time'].strftime('%Y-%m-%d %H:%M:%S')}
" f"{h_tput}{h_tput_trials}{h_band}{h_band_trials}{h_lat}" f"{row['dut_type']}-ref: {row['dut_version']}
" -- cgit 1.2.3-korg