monitoring(testing): cap history panel ranges
This commit is contained in:
parent
75d002dc88
commit
4fd8a00d4a
@ -4492,6 +4492,7 @@ def build_jobs_dashboard():
|
|||||||
legend_display="list",
|
legend_display="list",
|
||||||
legend_placement="bottom",
|
legend_placement="bottom",
|
||||||
legend_calcs=[],
|
legend_calcs=[],
|
||||||
|
time_from=PLATFORM_TEST_HISTORY_WINDOW,
|
||||||
)
|
)
|
||||||
run_volume_panel["description"] = (
|
run_volume_panel["description"] = (
|
||||||
"Twenty-four-hour rolling quality-gate run counts for the selected suite/branch scope. "
|
"Twenty-four-hour rolling quality-gate run counts for the selected suite/branch scope. "
|
||||||
@ -4507,8 +4508,7 @@ def build_jobs_dashboard():
|
|||||||
}
|
}
|
||||||
panels.append(run_volume_panel)
|
panels.append(run_volume_panel)
|
||||||
|
|
||||||
panels.append(
|
coverage_history_panel = state_timeline_panel(
|
||||||
state_timeline_panel(
|
|
||||||
13,
|
13,
|
||||||
"Coverage History by Suite",
|
"Coverage History by Suite",
|
||||||
coverage_history_by_suite,
|
coverage_history_by_suite,
|
||||||
@ -4519,9 +4519,9 @@ def build_jobs_dashboard():
|
|||||||
"from LOC compliance so one signal cannot hide the other."
|
"from LOC compliance so one signal cannot hide the other."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
)
|
coverage_history_panel["timeFrom"] = PLATFORM_TEST_HISTORY_WINDOW
|
||||||
panels.append(
|
panels.append(coverage_history_panel)
|
||||||
state_timeline_panel(
|
loc_history_panel = state_timeline_panel(
|
||||||
14,
|
14,
|
||||||
"Files <=500 LOC History by Suite",
|
"Files <=500 LOC History by Suite",
|
||||||
loc_limit_compliance_history,
|
loc_limit_compliance_history,
|
||||||
@ -4532,7 +4532,8 @@ def build_jobs_dashboard():
|
|||||||
"This uses the existing file-count telemetry; longest-file history needs a new publisher metric."
|
"This uses the existing file-count telemetry; longest-file history needs a new publisher metric."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
)
|
loc_history_panel["timeFrom"] = PLATFORM_TEST_HISTORY_WINDOW
|
||||||
|
panels.append(loc_history_panel)
|
||||||
|
|
||||||
check_dimensions = [
|
check_dimensions = [
|
||||||
("Tests", check_regex_tests),
|
("Tests", check_regex_tests),
|
||||||
@ -4562,6 +4563,7 @@ def build_jobs_dashboard():
|
|||||||
thresholds=trend_thresholds,
|
thresholds=trend_thresholds,
|
||||||
description=trend_description,
|
description=trend_description,
|
||||||
)
|
)
|
||||||
|
panel["timeFrom"] = PLATFORM_TEST_HISTORY_WINDOW
|
||||||
panels.append(panel)
|
panels.append(panel)
|
||||||
for index, (label, regex) in enumerate(check_dimensions[4:]):
|
for index, (label, regex) in enumerate(check_dimensions[4:]):
|
||||||
panel = state_timeline_panel(
|
panel = state_timeline_panel(
|
||||||
@ -4572,6 +4574,7 @@ def build_jobs_dashboard():
|
|||||||
thresholds=trend_thresholds,
|
thresholds=trend_thresholds,
|
||||||
description=trend_description,
|
description=trend_description,
|
||||||
)
|
)
|
||||||
|
panel["timeFrom"] = PLATFORM_TEST_HISTORY_WINDOW
|
||||||
panels.append(panel)
|
panels.append(panel)
|
||||||
|
|
||||||
_append_check_trends(130, "Failure Rate", True, 29)
|
_append_check_trends(130, "Failure Rate", True, 29)
|
||||||
@ -4672,6 +4675,7 @@ def build_jobs_dashboard():
|
|||||||
"project; skipped tests are healthy, while failures and errors lower the lane."
|
"project; skipped tests are healthy, while failures and errors lower the lane."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
category_pass_rate_panel["timeFrom"] = PLATFORM_TEST_HISTORY_WINDOW
|
||||||
category_pass_rate_panel["links"] = jenkins_suite_links()
|
category_pass_rate_panel["links"] = jenkins_suite_links()
|
||||||
panels.append(category_pass_rate_panel)
|
panels.append(category_pass_rate_panel)
|
||||||
|
|
||||||
@ -4813,8 +4817,7 @@ def build_jobs_dashboard():
|
|||||||
)
|
)
|
||||||
sonar_status_mix_panel["targets"][0]["legendFormat"] = "{{status}}"
|
sonar_status_mix_panel["targets"][0]["legendFormat"] = "{{status}}"
|
||||||
panels.append(sonar_status_mix_panel)
|
panels.append(sonar_status_mix_panel)
|
||||||
panels.append(
|
sonar_gate_project_panel = state_timeline_panel(
|
||||||
state_timeline_panel(
|
|
||||||
35,
|
35,
|
||||||
"Sonar Gate Health by Project",
|
"Sonar Gate Health by Project",
|
||||||
f'{PLATFORM_TEST_SONAR_HEALTH_ROLLUP}{{project_key=~"{suite_var}"}}',
|
f'{PLATFORM_TEST_SONAR_HEALTH_ROLLUP}{{project_key=~"{suite_var}"}}',
|
||||||
@ -4829,7 +4832,8 @@ def build_jobs_dashboard():
|
|||||||
"non-OK projects drop to red without disappearing."
|
"non-OK projects drop to red without disappearing."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
)
|
sonar_gate_project_panel["timeFrom"] = PLATFORM_TEST_HISTORY_WINDOW
|
||||||
|
panels.append(sonar_gate_project_panel)
|
||||||
panels.append(
|
panels.append(
|
||||||
bargauge_panel(
|
bargauge_panel(
|
||||||
148,
|
148,
|
||||||
|
|||||||
@ -1131,6 +1131,7 @@
|
|||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"timeFrom": "7d",
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"title": "Open Jenkins",
|
"title": "Open Jenkins",
|
||||||
@ -1291,6 +1292,7 @@
|
|||||||
"mode": "multi"
|
"mode": "multi"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"timeFrom": "7d",
|
||||||
"description": "Twenty-four-hour rolling quality-gate run counts for the selected suite/branch scope. This is volume, not a pass-rate percentage."
|
"description": "Twenty-four-hour rolling quality-gate run counts for the selected suite/branch scope. This is volume, not a pass-rate percentage."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1370,7 +1372,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 14,
|
"id": 14,
|
||||||
@ -1449,7 +1452,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Recent CI run, coverage, LOC, and raw test-result trends for selected suites."
|
"description": "Recent CI run, coverage, LOC, and raw test-result trends for selected suites."
|
||||||
@ -1543,7 +1547,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 131,
|
"id": 131,
|
||||||
@ -1622,7 +1627,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 132,
|
"id": 132,
|
||||||
@ -1701,7 +1707,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 133,
|
"id": 133,
|
||||||
@ -1780,7 +1787,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 134,
|
"id": 134,
|
||||||
@ -1859,7 +1867,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 135,
|
"id": 135,
|
||||||
@ -1938,7 +1947,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 136,
|
"id": 136,
|
||||||
@ -2017,7 +2027,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Failure percent by check family; blue is zero failures, warmer colors show blockers."
|
"description": "Failure percent by check family; blue is zero failures, warmer colors show blockers."
|
||||||
@ -2111,7 +2122,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 139,
|
"id": 139,
|
||||||
@ -2190,7 +2202,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 140,
|
"id": 140,
|
||||||
@ -2269,7 +2282,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 141,
|
"id": 141,
|
||||||
@ -2348,7 +2362,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 142,
|
"id": 142,
|
||||||
@ -2427,7 +2442,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 143,
|
"id": 143,
|
||||||
@ -2506,7 +2522,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 144,
|
"id": 144,
|
||||||
@ -2585,7 +2602,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Healthy percent by check family; blue means all selected checks are good."
|
"description": "Healthy percent by check family; blue means all selected checks are good."
|
||||||
@ -4620,7 +4638,8 @@
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "SonarQube availability, projects, fetch errors, and gate status."
|
"description": "SonarQube availability, projects, fetch errors, and gate status."
|
||||||
|
|||||||
@ -1140,6 +1140,7 @@ data:
|
|||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"timeFrom": "7d",
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"title": "Open Jenkins",
|
"title": "Open Jenkins",
|
||||||
@ -1300,6 +1301,7 @@ data:
|
|||||||
"mode": "multi"
|
"mode": "multi"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"timeFrom": "7d",
|
||||||
"description": "Twenty-four-hour rolling quality-gate run counts for the selected suite/branch scope. This is volume, not a pass-rate percentage."
|
"description": "Twenty-four-hour rolling quality-gate run counts for the selected suite/branch scope. This is volume, not a pass-rate percentage."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1379,7 +1381,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 14,
|
"id": 14,
|
||||||
@ -1458,7 +1461,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Recent CI run, coverage, LOC, and raw test-result trends for selected suites."
|
"description": "Recent CI run, coverage, LOC, and raw test-result trends for selected suites."
|
||||||
@ -1552,7 +1556,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 131,
|
"id": 131,
|
||||||
@ -1631,7 +1636,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 132,
|
"id": 132,
|
||||||
@ -1710,7 +1716,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 133,
|
"id": 133,
|
||||||
@ -1789,7 +1796,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 134,
|
"id": 134,
|
||||||
@ -1868,7 +1876,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 135,
|
"id": 135,
|
||||||
@ -1947,7 +1956,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 136,
|
"id": 136,
|
||||||
@ -2026,7 +2036,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Failure percent by check family; blue is zero failures, warmer colors show blockers."
|
"description": "Failure percent by check family; blue is zero failures, warmer colors show blockers."
|
||||||
@ -2120,7 +2131,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 139,
|
"id": 139,
|
||||||
@ -2199,7 +2211,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 140,
|
"id": 140,
|
||||||
@ -2278,7 +2291,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 141,
|
"id": 141,
|
||||||
@ -2357,7 +2371,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 142,
|
"id": 142,
|
||||||
@ -2436,7 +2451,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 143,
|
"id": 143,
|
||||||
@ -2515,7 +2531,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 144,
|
"id": 144,
|
||||||
@ -2594,7 +2611,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Healthy percent by check family; blue means all selected checks are good."
|
"description": "Healthy percent by check family; blue means all selected checks are good."
|
||||||
@ -4629,7 +4647,8 @@ data:
|
|||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"timeFrom": "7d"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "SonarQube availability, projects, fetch errors, and gate status."
|
"description": "SonarQube availability, projects, fetch errors, and gate status."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user