From e6aa272b6aa501c2fec5790ca9d93bb7ffe4d638 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Tue, 23 Apr 2024 12:04:13 +0000 Subject: C-Dash: Add soak tests Change-Id: Ibe17b7dc2125fa6ace496897a7cf9115a5f2c736 Signed-off-by: Tibor Frank --- csit.infra.dash/app/cdash/news/layout.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'csit.infra.dash/app/cdash/news') diff --git a/csit.infra.dash/app/cdash/news/layout.py b/csit.infra.dash/app/cdash/news/layout.py index b40db48605..ba4fc85163 100644 --- a/csit.infra.dash/app/cdash/news/layout.py +++ b/csit.infra.dash/app/cdash/news/layout.py @@ -182,20 +182,20 @@ class Layout: _create_test_name(test).replace("-ndrpdr", "-pdr"), x_axis[_get_rindex(anomalies, "regression")] )) - else: # mrr - tst_data = tst_data.dropna( - subset=["result_receive_rate_rate_avg", ] - ) + else: # mrr, hoststack, soak + if "soak" in test: + val = "result_critical_rate_lower_rate_value" + elif "hoststack" in test: + val = "result_rate_value" + else: # mrr + val = "result_receive_rate_rate_avg" + tst_data = tst_data.dropna(subset=[val, ]) if tst_data.empty: continue x_axis = tst_data["start_time"].tolist() try: anomalies, _, _ = classify_anomalies({ - k: v for k, v in zip( - x_axis, - tst_data["result_receive_rate_rate_avg"].\ - tolist() - ) + k: v for k, v in zip(x_axis, tst_data[val].tolist()) }) except ValueError: continue -- cgit 1.2.3-korg