Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Map integration browser defaults into installability ownership

rcourtman7496b74885ab
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index d5cf6ce275..a90588ccd5 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -2158,7 +2158,12 @@
"scripts/release_control/resolve_release_promotion.py",
"scripts/release_ldflags.sh",
"scripts/toggle-mock.sh",
- "tests/integration/scripts/managed-dev-runtime.mjs"
+ "tests/integration/playwright.config.ts",
+ "tests/integration/QUICK_START.md",
+ "tests/integration/README.md",
+ "tests/integration/scripts/managed-dev-runtime.mjs",
+ "tests/integration/tests/helpers.ts",
+ "tests/integration/tests/runtime-defaults.ts"
],
"verification": {
"allow_same_subsystem_tests": false,
@@ -2260,7 +2265,12 @@
"scripts/hot-dev-bg.sh",
"scripts/hot-dev.sh",
"scripts/toggle-mock.sh",
- "tests/integration/scripts/managed-dev-runtime.mjs"
+ "tests/integration/playwright.config.ts",
+ "tests/integration/QUICK_START.md",
+ "tests/integration/README.md",
+ "tests/integration/scripts/managed-dev-runtime.mjs",
+ "tests/integration/tests/helpers.ts",
+ "tests/integration/tests/runtime-defaults.ts"
],
"allow_same_subsystem_tests": false,
"test_prefixes": [],
diff --git a/scripts/release_control/dev_runtime_governance_test.py b/scripts/release_control/dev_runtime_governance_test.py
new file mode 100644
index 0000000000..84610f6925
--- /dev/null
+++ b/scripts/release_control/dev_runtime_governance_test.py
@@ -0,0 +1,76 @@
+import unittest
+
+from canonical_completion_guard import infer_impacted_subsystems, is_test_or_fixture
+from subsystem_lookup import lookup_paths
+
+
+class DevRuntimeGovernanceTest(unittest.TestCase):
+ def test_shell_smoke_tests_are_classified_as_tests(self) -> None:
+ self.assertTrue(is_test_or_fixture("scripts/tests/test-hot-dev-bg.sh"))
+ self.assertEqual(infer_impacted_subsystems(["scripts/tests/test-hot-dev-bg.sh"]), {})
+
+ def test_lookup_leaves_unmatched_tests_without_matches(self) -> None:
+ result = lookup_paths(["tests/example.spec.ts"])
+ self.assertEqual(result["files"][0]["classification"], "test-or-fixture")
+ self.assertEqual(result["files"][0]["matches"], [])
+
+ def test_lookup_maps_hot_dev_bg_proof_file_to_installability(self) -> None:
+ result = lookup_paths(["scripts/tests/test-hot-dev-bg.sh"])
+ self.assertEqual(result["unowned_runtime_files"], [])
+ self.assertEqual(result["impacted_subsystems"], [])
+
+ file_entry = result["files"][0]
+ self.assertEqual(file_entry["classification"], "test-or-fixture")
+ self.assertEqual(
+ {match["subsystem"] for match in file_entry["matches"]},
+ {"deployment-installability"},
+ )
+ match = file_entry["matches"][0]
+ self.assertEqual(
+ match["contract"],
+ "docs/release-control/v6/internal/subsystems/deployment-installability.md",
+ )
+ self.assertEqual(match["lane_context"]["lane_id"], "L1")
+ self.assertEqual(match["verification_requirement"]["id"], "dev-runtime-orchestration")
+ self.assertIn(
+ "scripts/tests/test-hot-dev-bg.sh",
+ match["verification_requirement"]["exact_files"],
+ )
+
+ def test_lookup_maps_integration_browser_default_surfaces_to_installability(self) -> None:
+ result = lookup_paths(
+ [
+ "tests/integration/README.md",
+ "tests/integration/QUICK_START.md",
+ "tests/integration/playwright.config.ts",
+ "tests/integration/tests/helpers.ts",
+ "tests/integration/tests/runtime-defaults.ts",
+ ]
+ )
+ self.assertEqual(result["unowned_runtime_files"], [])
+ self.assertEqual(
+ {entry["subsystem"] for entry in result["impacted_subsystems"]},
+ {"deployment-installability"},
+ )
+
+ for file_entry in result["files"]:
+ self.assertEqual(file_entry["classification"], "runtime")
+ self.assertEqual(
+ {match["subsystem"] for match in file_entry["matches"]},
+ {"deployment-installability"},
+ )
+ match = file_entry["matches"][0]
+ self.assertEqual(
+ match["contract"],
+ "docs/release-control/v6/internal/subsystems/deployment-installability.md",
+ )
+ self.assertEqual(match["lane_context"]["lane_id"], "L1")
+ self.assertEqual(match["verification_requirement"]["id"], "dev-runtime-orchestration")
+ self.assertIn(
+ "scripts/tests/test-hot-dev-bg.sh",
+ match["verification_requirement"]["exact_files"],
+ )
+
+
+if __name__ == "__main__":
+ unittest.main()