diff options
author | Tibor Frank <tifrank@cisco.com> | 2023-12-04 14:59:00 +0000 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2023-12-06 08:45:51 +0000 |
commit | 97cedafe3b50a543a0e5c9f5a8d9fdb932f4a142 (patch) | |
tree | 62c76857c97590a22bd8439c3a497883385f53ea /csit.infra.dash/app/cdash/report | |
parent | 1dad21302fa326f06f662de70161604cbbae57f6 (diff) |
C-Dash: Process iterative mrr data
Change-Id: I56ddc9b341848428384fbedc094571d6f2d58a55
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'csit.infra.dash/app/cdash/report')
-rw-r--r-- | csit.infra.dash/app/cdash/report/graphs.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/csit.infra.dash/app/cdash/report/graphs.py b/csit.infra.dash/app/cdash/report/graphs.py index ff1428eef1..175de0f759 100644 --- a/csit.infra.dash/app/cdash/report/graphs.py +++ b/csit.infra.dash/app/cdash/report/graphs.py @@ -91,9 +91,12 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict, :rtype: tuple(plotly.graph_objects.Figure, plotly.graph_objects.Figure) """ - def get_y_values(data, y_data_max, param, norm_factor): - if "receive_rate" in param: - y_vals_raw = data[param].to_list()[0] + def get_y_values(data, y_data_max, param, norm_factor, release=str()): + if param == "result_receive_rate_rate_values": + if release == "rls2402": + y_vals_raw = data["result_receive_rate_rate_avg"].to_list() + else: + y_vals_raw = data[param].to_list()[0] else: y_vals_raw = data[param].to_list() y_data = [(y * norm_factor) for y in y_vals_raw] @@ -138,8 +141,9 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict, y_units.update(itm_data[C.UNIT[ttype]].unique().tolist()) - y_data, y_tput_max = \ - get_y_values(itm_data, y_tput_max, C.VALUE_ITER[ttype], norm_factor) + y_data, y_tput_max = get_y_values( + itm_data, y_tput_max, C.VALUE_ITER[ttype], norm_factor, itm["rls"] + ) nr_of_samples = len(y_data) @@ -156,12 +160,15 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict, } if itm["testtype"] == "mrr": + # and itm["rls"] in ("rls2306", "rls2310"): + trial_run = "trial" metadata["csit-ref"] = ( f"{itm_data['job'].to_list()[0]}/", f"{itm_data['build'].to_list()[0]}" ) customdata = [{"metadata": metadata}, ] * nr_of_samples else: + trial_run = "run" for _, row in itm_data.iterrows(): metadata["csit-ref"] = f"{row['job']}/{row['build']}" customdata.append({"metadata": deepcopy(metadata)}) @@ -170,7 +177,7 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict, name=( f"{idx + 1}. " f"({nr_of_samples:02d} " - f"run{'s' if nr_of_samples > 1 else ''}) " + f"{trial_run}{'s' if nr_of_samples > 1 else ''}) " f"{itm['id']}" ), hoverinfo=u"y+name", |