🐛 fix(thirdparty): align human skill registry

This commit is contained in:
csh
2026-08-12 12:40:48 +08:00
parent 91b6f8453e
commit a0131f52c6
2 changed files with 54 additions and 0 deletions
+20
View File
@@ -51,6 +51,26 @@ def extract_workflow_region(name: str) -> str:
class ThirdpartySkillsPipelineTests(unittest.TestCase):
def test_human_registry_lists_the_same_sources_as_the_ci_manifest(self):
registry = (
ROOT / "skills" / "thirdparty" / "thirdparty-skills.yml"
).read_text(encoding="utf-8")
entries = {}
for chunk in registry.split("\n - id: ")[1:]:
source_id, _, body = chunk.partition("\n")
entries[source_id.strip()] = body
self.assertEqual(
sorted(entries),
sorted(entry["id"] for entry in load_manifest()["sources"]),
msg="SKILLS.md points at thirdparty-skills.yml as the human-readable "
"source registry, so it has to cover every source CI syncs",
)
for source_id, body in entries.items():
for field in ("upstream_repo", "selected_for", "playbook_fit"):
self.assertIn(
f"{field}:", body, msg=f"{source_id} is missing {field}"
)
def test_manifest_declares_all_thirdparty_sources(self):
data = load_manifest()