Files
aigc-home/docs/hel-892/zimage-hd-document-evidence/backend-initial.txt
T
2026-10-31 16:53:27 +08:00

122 lines
7.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
........................................................................ [ 18%]
........................................................................ [ 36%]
........................................................................ [ 55%]
........................................................................ [ 73%]
........................................................................ [ 92%]
...F.............F............. [100%]
=================================== FAILURES ===================================
______________________ test_exact_build_and_qualification ______________________
def test_exact_build_and_qualification():
assert canonical(runpy.run_path(str(OUT / "build_definition.py"))["build"]()) == canonical(
BLOCK
)
assert len(DEFINITIONS) == 70 and doc()["fixed_version"]["matched"]
assert BLOCK["counts"]["saved_fields"] == BLOCK["counts"]["root_saved_fields"] == 114
assert BLOCK["counts"]["source_notes"] == 1 and len(BLOCK["comments"]) == 1
assert not doc()["status"]["doc_done"] and not doc()["status"]["exec_verified"]
sys.path.insert(0, str(OUT))
try:
> runpy.run_path(str(OUT / "verify_sources.py"))["main"]()
calliope-backend/tests/test_zimage_hd_fixed_document.py:96:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def main():
block, inv = build(), inventory()
rows = json.loads((REF / "sources.json").read_bytes())["sources"]
checks = []
for e in rows:
raw = (REF / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
if e["id"] == "litegraph":
root = REF / e["identity_root"]
assert (
json.loads((root / "litegraph__package__package.json").read_bytes())["version"]
== "0.15.15"
)
front = next(
x for x in rows if x["id"] == "frontend" and x["file"] == "package-lock.json"
)
lock = json.loads((REF / front["local_file"]).read_bytes())
assert (
lock["packages"]["node_modules/@comfyorg/litegraph"]["integrity"]
== "sha512-" + e["artifact_sha512_base64"]
)
proof = (
"Pinned frontend1.23.0 lock, exact0.15."
"15 member SHA; whole artifact digest r"
"eused, Git unknown"
)
elif "member_crc32" in e:
root=REF/e["identity_root"]
m=json.loads((root/(e["id"]+"-registry.json")).read_bytes())
members=json.loads((root/(e["id"]+"-members.json")).read_bytes())
member=next(x for x in members if x["name"]==e["file"])
assert m["version"]==e["tag"]
assert member["crc"]==e["member_crc32"]==zlib.crc32(raw)
assert e["package_sha256"].startswith("unknown")
proof="准确发布成员SHA/CRC;Range选定文本,完整包SHA与Git绑定未知"
else:
root = REF / e["identity_root"]
key = e["identity_key"]
commit = (root / (key + "-commit.txt")).read_bytes()
tree = json.loads((root / (key + "-tree.json")).read_bytes())
assert object_hash("commit", commit) == e["commit"]
assert commit.decode().splitlines()[0] == "tree " + e["tree"] == "tree " + tree["sha"]
assert not tree["truncated"]
assert (
next(t["sha"] for t in tree["tree"] if t["path"] == e["file"])
== e["git_blob_sha1"]
== object_hash("blob", raw)
)
tag = json.loads((root / (key + "-tag.json")).read_bytes())
tag_raw = (root / (key + "-tag.txt")).read_bytes()
assert tag["commit"] == e["commit"]
if tag["object"] == e["commit"]:
assert tag_raw == commit
else:
assert object_hash("tag", tag_raw) == tag["object"]
assert tag_raw.decode().startswith("object " + e["commit"] + "\n")
proof = (
"Rehashed commit/tag/selected blo"
"b; complete tree listing, not fu"
"ll tree-object rehash"
)
if not e["license_file"].startswith("未知"):
> license_row = next(
x for x in rows if x["id"] == e["id"] and x["local_file"] == e["license_file"]
)
E StopIteration
docs/hel-892/zimage-hd-document-evidence/verify_sources.py:78: StopIteration
______________ test_hd_graph_precise_values_and_override_branches ______________
def test_hd_graph_precise_values_and_override_branches():
ns={n["id"]:n for n in SOURCE["nodes"]}
assert ns[76]["widgets_values"][1]==0.5000000000000001
assert ns[80]["widgets_values"][1]==0.30000000000000004
assert ns[87]["widgets_values"][-2:]==["sdpa","sdpa"]
assert ns[79]["widgets_values"][8]=="false"
assert ns[64]["properties"]["cnr_id"]=="comfyui-workflow-encrypt"
assert sum(n["mode"]==4 for n in ns.values())==32
linked={f["node_id"]+"."+f["field"] for f in BLOCK["fields"] if f["role"]=="linked_saved_cache"}
assert linked=={"10.width","10.height","12.steps","12.end_at_step","13.steps","13.start_at_step","5.text","53.width","53.height","59.width","59.height","81.resolution"}
assert ns[48]["outputs"][1]["links"]==[]
assert ns[86]["inputs"][1]["link"]==148 and ns[105]["inputs"][1]["link"]==159
> assert len(ns[100]["widgets_values"][0])==370
E assert 359 == 370
E + where 359 = len('情绪化女友网格设计,杰作, 最高画质, 8K, 超写实, 角色设定参考图。\n顶部标题文字: "Moody Lovely GF Design", 粉蓝渐变柔和背景。\n标题下发标注文字:"身 高:158-162cm","性 格:情绪化...格:侧面视角(发丝飘动、背面图案)。保持人物一致性。\n右中下侧小网格分布特写:4张头部表情特写(冷艳坏笑、中性、锐利眼神、嘟嘴、温柔笑)。保持人物一致性。\n柔和影棚灯光, 干净纯白背景, 细腻皮肤质感, 清晰对焦, 专业人像摄影风格')
calliope-backend/tests/test_zimage_hd_fixed_document.py:158: AssertionError
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-8d94b12fc336/workdir/aigc-home/calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED calliope-backend/tests/test_zimage_hd_fixed_document.py::test_exact_build_and_qualification
FAILED calliope-backend/tests/test_zimage_hd_fixed_document.py::test_hd_graph_precise_values_and_override_branches
2 failed, 389 passed, 1 warning in 9.77s