Files
aigc-home/docs/hel-892/zimage-style-document-evidence/development-backend-failures.txt
T
2026-10-31 16:13:50 +08:00

97 lines
5.5 KiB
Plaintext

........................................................................ [ 40%]
........................................................................ [ 81%]
.........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) == 69 and doc()["fixed_version"]["matched"]
assert BLOCK["counts"]["saved_fields"] == 44 and BLOCK["counts"]["root_saved_fields"] == 24
assert BLOCK["counts"]["source_notes"] == 0 and not BLOCK["comments"]
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_style_fixed_document.py:95:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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"]
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-style-document-evidence/verify_sources.py:47: StopIteration
__________ test_nested_boundaries_and_reference_sampling_are_distinct __________
def test_nested_boundaries_and_reference_sampling_are_distinct():
root = {n["id"]: n for n in SOURCE["nodes"]}
outer, inner = SOURCE["definitions"]["subgraphs"]
ns = {n["id"]: n for n in outer["nodes"]}
assert root[75]["widgets_values"] == []
assert len(root[75]["properties"]["proxyWidgets"]) == 5
assert all(i["link"] is None for i in root[75]["inputs"][:5])
assert root[75]["inputs"][5]["link"] == 199
assert ns[79]["widgets_values"] == [] and ns[79]["properties"]["proxyWidgets"] == []
assert ns[82]["properties"]["ver"] == "0.9.1"
assert BLOCK["counts"]["linked_saved_fields"] == 4
assert BLOCK["counts"]["boundary_saved_fields"] == 5
assert {f["node_id"] for f in BLOCK["fields"] if f["role"] == "linked_saved_cache"} == {"75:62", "75:66"}
assert ns[64]["inputs"][4]["link"] == 146
assert {n["type"] for n in inner["nodes"]} == {"VAEEncode", "ReferenceLatent"}
assert root[100]["inputs"][0]["link"] == 200 and root[100]["inputs"][1]["link"] == 181
for nid in [109,111]:
> assert root[nid]["outputs"] == [{"name":"images", "type":"IMAGE", "links":None}]
E AssertionError: assert [{'localized_...links': None}] == [{'name': 'im...links': None}]
E
E At index 0 diff: {'localized_name': 'images', 'name': 'images', 'type': 'IMAGE', 'links': None} != {'name': 'images', 'type': 'IMAGE', 'links': None}
E Use -v to get more diff
calliope-backend/tests/test_zimage_style_fixed_document.py:143: 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_style_fixed_document.py::test_exact_build_and_qualification
FAILED calliope-backend/tests/test_zimage_style_fixed_document.py::test_nested_boundaries_and_reference_sampling_are_distinct
2 failed, 174 passed, 1 warning in 4.38s