aboutsummaryrefslogtreecommitdiffstats
path: root/csit.infra.dash/app/cdash/report
diff options
context:
space:
mode:
Diffstat (limited to 'csit.infra.dash/app/cdash/report')
-rw-r--r--csit.infra.dash/app/cdash/report/graphs.py6
-rw-r--r--csit.infra.dash/app/cdash/report/layout.py39
2 files changed, 27 insertions, 18 deletions
diff --git a/csit.infra.dash/app/cdash/report/graphs.py b/csit.infra.dash/app/cdash/report/graphs.py
index f45e17ff33..cff5bb6b02 100644
--- a/csit.infra.dash/app/cdash/report/graphs.py
+++ b/csit.infra.dash/app/cdash/report/graphs.py
@@ -128,6 +128,9 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict,
y_tput_max = max(max(y_data), y_tput_max)
nr_of_samples = len(y_data)
+ c_data = list()
+ for _, row in itm_data.iterrows():
+ c_data.append(f"{row['job']}/{row['build']}")
tput_kwargs = dict(
y=y_data,
name=(
@@ -139,7 +142,8 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict,
hoverinfo=u"y+name",
boxpoints="all",
jitter=0.3,
- marker=dict(color=get_color(idx))
+ marker=dict(color=get_color(idx)),
+ customdata=c_data
)
tput_traces.append(go.Box(**tput_kwargs))
show_tput = True
diff --git a/csit.infra.dash/app/cdash/report/layout.py b/csit.infra.dash/app/cdash/report/layout.py
index 06b5d467dc..fcea2ab3d0 100644
--- a/csit.infra.dash/app/cdash/report/layout.py
+++ b/csit.infra.dash/app/cdash/report/layout.py
@@ -1422,22 +1422,34 @@ class Layout:
if len(graph_data) == 1:
hdrh_data = graph_data[0].get("customdata", None)
if hdrh_data:
+ name = hdrh_data.pop("name")
graph = [dbc.Card(
class_name="gy-2 p-0",
children=[
- dbc.CardHeader(hdrh_data.pop("name")),
- dbc.CardBody(children=[
- dcc.Graph(
- id="hdrh-latency-graph",
- figure=graph_hdrh_latency(
- hdrh_data, self._graph_layout
- )
+ dbc.CardHeader(html.A(
+ name,
+ href=f"{C.URL_JENKINS}{name}",
+ target="_blank"
+ )),
+ dbc.CardBody(dcc.Graph(
+ id="hdrh-latency-graph",
+ figure=graph_hdrh_latency(
+ hdrh_data, self._graph_layout
)
- ])
+ ))
])
]
else:
raise PreventUpdate
+ list_group_items = list()
+ for k, v in _process_stats(graph_data, trigger.idx):
+ list_group_items.append(dbc.ListGroupItem([dbc.Badge(k), v]))
+ if trigger.idx == "tput" and len(list_group_items) == 1:
+ job = graph_data[0].get("customdata", "")
+ list_group_items.append(dbc.ListGroupItem([
+ dbc.Badge("csit-ref"),
+ html.A(job, href=f"{C.URL_JENKINS}{job}", target="_blank")
+ ]))
metadata = [
dbc.Card(
class_name="gy-2 p-0",
@@ -1451,16 +1463,9 @@ class Layout:
title
]),
dbc.CardBody(
+ dbc.ListGroup(list_group_items, flush=True),
id="tput-lat-metadata",
- class_name="p-0",
- children=[dbc.ListGroup(
- [
- dbc.ListGroupItem([dbc.Badge(k), v])
- for k, v in _process_stats(
- graph_data, trigger.idx)
- ],
- flush=True)
- ]
+ class_name="p-0"
)
]
)