Split dashboard metric bar runtime owners

This commit is contained in:
rcourtman 2026-03-21 21:27:22 +00:00
parent 5117ed0abc
commit ce9974d1cf
9 changed files with 266 additions and 87 deletions

View file

@ -1981,6 +1981,36 @@ class SubsystemLookupTest(unittest.TestCase):
"dashboard-workload-hot-path",
)
def test_lookup_paths_assigns_dashboard_metric_bar_runtime_to_performance_and_scalability(self) -> None:
result = lookup_paths(
[
"frontend-modern/src/components/Dashboard/MetricBar.tsx",
"frontend-modern/src/components/Dashboard/metricBarModel.ts",
"frontend-modern/src/components/Dashboard/useMetricBarState.ts",
]
)
self.assertEqual(result["unowned_runtime_files"], [])
self.assertEqual(
{item["subsystem"] for item in result["impacted_subsystems"]},
{"performance-and-scalability"},
)
for file_entry in result["files"]:
self.assertEqual(file_entry["classification"], "runtime")
self.assertEqual(
{match["subsystem"] for match in file_entry["matches"]},
{"performance-and-scalability"},
)
match = file_entry["matches"][0]
self.assertEqual(
match["contract"],
"docs/release-control/v6/internal/subsystems/performance-and-scalability.md",
)
self.assertEqual(match["lane_context"]["lane_id"], "L10")
self.assertEqual(
match["verification_requirement"]["id"],
"dashboard-workload-hot-path",
)
def test_lookup_paths_assigns_settings_page_shell_to_frontend_primitives(self) -> None:
result = lookup_paths(["frontend-modern/src/components/Settings/SettingsPageShell.tsx"])
self.assertEqual(result["unowned_runtime_files"], [])