HEL-892: document frame extraction with exact mixed node versions

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-30 19:55:54 +08:00
co-authored by multica-agent
parent 9db8857228
commit 19a7e42bb8
73 changed files with 26271 additions and 13 deletions
@@ -202,6 +202,8 @@ def test_exact_document_topology_and_preservation():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO))
current = json.loads((REPO / resource).read_bytes())
later = next(p for p in current if p.endswith("/截取视频每一帧.json"))
current[later].pop("fixed_version_document")
for added in [
p
for p in current
@@ -215,7 +217,7 @@ def test_exact_document_topology_and_preservation():
nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json"))
current[nlf].pop("fixed_version_document")
assert current[PATH].pop("fixed_version_document") == BLOCK
assert current == previous and len(DEFINITIONS) == 21
assert current == previous and len(DEFINITIONS) == 22
old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r]
assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394
assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note
@@ -223,6 +225,8 @@ def test_exact_document_topology_and_preservation():
assert d["dependencies"]["check_state"] == "unchecked"
assert not doc(path="untrusted.json").get("fixed_version")
for p in DEFINITIONS:
if p.endswith("/截取视频每一帧.json"):
continue
if p.endswith(
("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json")
):