aboutsummaryrefslogtreecommitdiffstats
path: root/csit.infra.dash/app/cdash/news/layout.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2024-04-23 12:04:13 +0000
committerTibor Frank <tifrank@cisco.com>2024-04-25 10:02:19 +0000
commite6aa272b6aa501c2fec5790ca9d93bb7ffe4d638 (patch)
tree9f5bedfb0c2047121179c7c766702b9702d55455 /csit.infra.dash/app/cdash/news/layout.py
parentd29977e35bb15cd7df21c082432f03eab87e2e66 (diff)
C-Dash: Add soak tests
Change-Id: Ibe17b7dc2125fa6ace496897a7cf9115a5f2c736 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'csit.infra.dash/app/cdash/news/layout.py')
-rw-r--r--csit.infra.dash/app/cdash/news/layout.py18
1 files changed, 9 insertions, 9 deletions
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