ci: map volume creation and replication peer actions

This commit is contained in:
pingqiu committed 2026-11-25 18:20:45 -08:00
1 parent a1b0a6ff39
commit 585aafaafb
3 files changed
+54 -3

No files matched your search

+12
View File
@@ -35,6 +35,18 @@ class ModelTraceTests(unittest.TestCase):
def test_unmapped_files_keep_existing_policy(self):
self.assertEqual(checker.check("existing prose", ["docs/a.md", "core/a.go.bak"], self.mapping), [])
def test_repository_map_covers_claimed_head_create(self):
mapping = checker.read_mapping(SCRIPT.parent.parent / "model-code-trace.tsv")
paths = ["core/frontend/chunkstore/layout/create.go"]
self.assertEqual(checker.check("VolumeCreate.Claim", paths, mapping), [])
self.assertEqual(len(checker.check("VolumeCreate.Unknown", paths, mapping)), 1)
def test_repository_map_covers_the_replica_receiver(self):
mapping = checker.read_mapping(SCRIPT.parent.parent / "model-code-trace.tsv")
paths = ["core/transport/replica.go"]
self.assertEqual(checker.check("ReplicationPeer.Ship", paths, mapping), [])
self.assertEqual(len(checker.check("VolumeCreate.Claim", paths, mapping)), 1)
def test_cli_checks_nul_paths_and_model_citations(self):
with tempfile.TemporaryDirectory() as tmp:
mapping = Path(tmp) / "map.tsv"