211 lines
13 KiB
Plaintext
211 lines
13 KiB
Plaintext
........................................................................ [ 7%]
|
|
........................................................................ [ 14%]
|
|
........................................F............................... [ 22%]
|
|
..................F..................................................... [ 29%]
|
|
F.........................................................F......F...... [ 36%]
|
|
..........................................................F............. [ 44%]
|
|
........................................................................ [ 51%]
|
|
......................F................................................. [ 59%]
|
|
.................................F...................................... [ 66%]
|
|
........................................................................ [ 73%]
|
|
........................................................................ [ 81%]
|
|
........................................................................ [ 88%]
|
|
........................................................................ [ 95%]
|
|
........................................ [100%]
|
|
=================================== FAILURES ===================================
|
|
_______ test_fixed_sources_and_original_profile_cohorts_remain_identical _______
|
|
|
|
def test_fixed_sources_and_original_profile_cohorts_remain_identical():
|
|
assert verify(REPO / "docs/hel-892/grid-reference")["sources_verified"]
|
|
old = json.loads((REPO / "docs/hel-892/scail-load-evidence/library.json").read_bytes())
|
|
profiles = tuple(old["profiles"])
|
|
> assert len(profiles) == 24 and tuple(audit.REFERENCE_PROFILES[:-1]) == profiles
|
|
E AssertionError: assert (24 == 24 and ('comfy-front...ference', ...) == ('comfy-front...ference', ...)
|
|
E + where 24 = len(('comfy-frontend-1.37.11-core-reference', 'comfy-frontend-1.37.11-controlnet-aux-e8b689a-reference', 'comfy-frontend-1...7.11-preview-reference', 'comfy-frontend-1.48.7-structure-reference', 'comfy-frontend-1.53.6-structure-reference', ...))
|
|
E
|
|
E Left contains one more item: 'comfy-frontend-1.41.20-core-0.17.0-grid-reference'
|
|
E Use -v to get more diff)
|
|
|
|
calliope-backend/tests/test_grid_reference.py:340: AssertionError
|
|
____________ test_exact_historical_emission_is_not_user_provenance _____________
|
|
|
|
def test_exact_historical_emission_is_not_user_provenance():
|
|
assert verify(ROOT)["sources_verified"]
|
|
old = (ROOT / "kj-276955e45fa48c794b47bf49dbc22f2d955d76a8__setgetnodes.js").read_text()
|
|
new = (ROOT / "kj-e56b3061ed49251a7b8a5450a2e18295548ea7a1__setgetnodes.js").read_text()
|
|
assert 'this.properties["aux_id"] = "SetNode"' in old
|
|
assert 'this.properties["aux_id"] = "GetNode"' in old
|
|
assert new.count('this.properties["aux_id"] = "kijai/ComfyUI-KJNodes"') == 2
|
|
assert 'this.properties["aux_id"] = "SetNode"' not in new
|
|
tree = ast.parse((ROOT / "videohelpersuite__load_video_nodes.py").read_text())
|
|
cls = next(n for n in tree.body if isinstance(n, ast.ClassDef) and n.name == "LoadVideoUpload")
|
|
assert cls.lineno > 0
|
|
assert '"VHS_LoadVideo": LoadVideoUpload,' in (ROOT / "videohelpersuite__nodes.py").read_text()
|
|
assert serialize_scail_load_node(loader())["custom_width"] == 0
|
|
> assert len([p for p in audit.REFERENCE_PROFILES if p != audit.GRID_PROFILE]) == 24
|
|
E AssertionError: assert 25 == 24
|
|
E + where 25 = len(['comfy-frontend-1.37.11-core-reference', 'comfy-frontend-1.37.11-controlnet-aux-e8b689a-reference', 'comfy-frontend-1...7.11-preview-reference', 'comfy-frontend-1.48.7-structure-reference', 'comfy-frontend-1.53.6-structure-reference', ...])
|
|
|
|
calliope-backend/tests/test_scail_load_reference.py:245: AssertionError
|
|
_____ test_real_entities_strict_source_schema_and_old_profiles_stay_frozen _____
|
|
|
|
def test_real_entities_strict_source_schema_and_old_profiles_stay_frozen():
|
|
old = json.loads((REPO / "docs/hel-892/setget-evidence/library.json").read_bytes())
|
|
for row in old["cases"]:
|
|
if "Scail-2" not in row["source_path"]:
|
|
continue
|
|
source = json.loads((REPO / row["source_path"]).read_bytes())
|
|
n = next(n for n in source["nodes"] if n["type"] == "VHS_VideoInfoLoaded")
|
|
assert serialize_videoinfo_node(n) == {}
|
|
result = convert_reference(source, PROFILE)
|
|
assert result.prompt is None and result.issues
|
|
assert all(a["status"] != "complete_reference_candidate" for a in row["attempts"])
|
|
> assert (
|
|
len(
|
|
[
|
|
p
|
|
for p in audit.REFERENCE_PROFILES
|
|
if p not in (*audit.SCAIL_LOAD_PROFILES, audit.GRID_PROFILE)
|
|
]
|
|
)
|
|
== 22
|
|
)
|
|
E AssertionError: assert 23 == 22
|
|
E + where 23 = len(['comfy-frontend-1.37.11-core-reference', 'comfy-frontend-1.37.11-controlnet-aux-e8b689a-reference', 'comfy-frontend-1...7.11-preview-reference', 'comfy-frontend-1.48.7-structure-reference', 'comfy-frontend-1.53.6-structure-reference', ...])
|
|
|
|
calliope-backend/tests/test_videoinfo_reference.py:278: AssertionError
|
|
___________ test_wrong_frontend_missing_policy_and_profile_inventory ___________
|
|
|
|
def test_wrong_frontend_missing_policy_and_profile_inventory():
|
|
p1486 = list(SETGET_PROFILES)[1]
|
|
assert convert_reference(synthetic(), p1486).prompt is None
|
|
for v in ["1.48.7", "1.53.6", "1.37.11-other"]:
|
|
g = synthetic()
|
|
g["extra"] = {"frontendVersion": v}
|
|
assert convert_reference(g, PROFILE).prompt is None
|
|
> assert (
|
|
len(
|
|
[
|
|
p
|
|
for p in audit.REFERENCE_PROFILES
|
|
if p
|
|
not in (*audit.VIDEOINFO_PROFILES, *audit.SCAIL_LOAD_PROFILES, audit.GRID_PROFILE)
|
|
]
|
|
)
|
|
== 20
|
|
)
|
|
E AssertionError: assert 21 == 20
|
|
E + where 21 = len(['comfy-frontend-1.37.11-core-reference', 'comfy-frontend-1.37.11-controlnet-aux-e8b689a-reference', 'comfy-frontend-1...7.11-preview-reference', 'comfy-frontend-1.48.7-structure-reference', 'comfy-frontend-1.53.6-structure-reference', ...])
|
|
|
|
calliope-backend/tests/test_setget_reference.py:333: AssertionError
|
|
___ test_historical_18_profiles_attempts_gaps_and_six_comparisons_unchanged ____
|
|
|
|
def test_historical_18_profiles_attempts_gaps_and_six_comparisons_unchanged():
|
|
old = json.loads((REPO / "docs/hel-892/vhs-evidence/library.json").read_bytes())
|
|
baseline = tuple(
|
|
p
|
|
for p in audit.REFERENCE_PROFILES
|
|
if p
|
|
not in (
|
|
*SETGET_PROFILES,
|
|
*audit.VIDEOINFO_PROFILES,
|
|
*audit.SCAIL_LOAD_PROFILES,
|
|
audit.GRID_PROFILE,
|
|
)
|
|
)
|
|
now = audit.audit_library(REPO, baseline_profiles=baseline)
|
|
actual_old = audit.audit_library(REPO, baseline)
|
|
> assert len(baseline) == 18
|
|
E AssertionError: assert 19 == 18
|
|
E + where 19 = len(('comfy-frontend-1.37.11-core-reference', 'comfy-frontend-1.37.11-controlnet-aux-e8b689a-reference', 'comfy-frontend-1...7.11-preview-reference', 'comfy-frontend-1.48.7-structure-reference', 'comfy-frontend-1.53.6-structure-reference', ...))
|
|
|
|
calliope-backend/tests/test_setget_reference.py:430: AssertionError
|
|
___ test_old_sixteen_attempts_gaps_candidates_and_six_comparisons_protected ____
|
|
|
|
def test_old_sixteen_attempts_gaps_candidates_and_six_comparisons_protected():
|
|
old = json.loads((REPO / "docs/hel-892/crop-split-evidence/library.json").read_bytes())
|
|
# Freeze this batch's 18-profile history; Set/Get has separate current protection.
|
|
historical_profiles = tuple(
|
|
p
|
|
for p in audit.REFERENCE_PROFILES
|
|
if p
|
|
not in (
|
|
*audit.SETGET_PROFILES,
|
|
*audit.VIDEOINFO_PROFILES,
|
|
*audit.SCAIL_LOAD_PROFILES,
|
|
audit.GRID_PROFILE,
|
|
)
|
|
)
|
|
profiles = tuple(p for p in historical_profiles if p not in VHS_PROFILES)
|
|
baseline = audit.audit_library(REPO, profiles)
|
|
now = audit.audit_library(REPO, historical_profiles, baseline_profiles=profiles)
|
|
> assert len(profiles) == 16 and len(now["profiles"]) == 18
|
|
E AssertionError: assert (17 == 16)
|
|
E + where 17 = len(('comfy-frontend-1.37.11-core-reference', 'comfy-frontend-1.37.11-controlnet-aux-e8b689a-reference', 'comfy-frontend-1...7.11-preview-reference', 'comfy-frontend-1.48.7-structure-reference', 'comfy-frontend-1.53.6-structure-reference', ...))
|
|
|
|
calliope-backend/tests/test_vhs_reference.py:303: AssertionError
|
|
__ test_all_old_fourteen_profiles_attempts_gaps_and_six_differences_unchanged __
|
|
|
|
def test_all_old_fourteen_profiles_attempts_gaps_and_six_differences_unchanged():
|
|
historical_profiles = tuple(
|
|
p
|
|
for p in audit.REFERENCE_PROFILES
|
|
if p
|
|
not in (
|
|
*VHS_PROFILES,
|
|
*audit.SETGET_PROFILES,
|
|
*audit.VIDEOINFO_PROFILES,
|
|
*audit.SCAIL_LOAD_PROFILES,
|
|
audit.GRID_PROFILE,
|
|
)
|
|
)
|
|
profiles = tuple(p for p in historical_profiles if p not in CROP_SPLIT_PROFILES)
|
|
historical = json.loads((REPO / "docs/hel-892/separation-evidence/library.json").read_bytes())
|
|
baseline = audit.audit_library(REPO, profiles)
|
|
current = audit.audit_library(REPO, historical_profiles)
|
|
assert baseline["gap_groups"] == historical["gap_groups"]
|
|
> assert len(profiles) == 14 and len(historical_profiles) == 16
|
|
E AssertionError: assert (15 == 14)
|
|
E + where 15 = len(('comfy-frontend-1.37.11-core-reference', 'comfy-frontend-1.37.11-controlnet-aux-e8b689a-reference', 'comfy-frontend-1...7.11-preview-reference', 'comfy-frontend-1.48.7-structure-reference', 'comfy-frontend-1.53.6-structure-reference', ...))
|
|
|
|
calliope-backend/tests/test_crop_split_reference.py:371: AssertionError
|
|
_ test_library_actual_delta_keeps_every_old_attempt_and_all_six_golden_comparisons _
|
|
|
|
def test_library_actual_delta_keeps_every_old_attempt_and_all_six_golden_comparisons():
|
|
previous = json.loads((REPO / "docs/hel-892/media-evidence/library.json").read_bytes())
|
|
profiles = tuple(
|
|
p
|
|
for p in audit.REFERENCE_PROFILES
|
|
if p
|
|
not in (
|
|
*audit.CROP_SPLIT_PROFILES,
|
|
*audit.VHS_PROFILES,
|
|
*audit.SETGET_PROFILES,
|
|
*audit.VIDEOINFO_PROFILES,
|
|
*audit.SCAIL_LOAD_PROFILES,
|
|
audit.GRID_PROFILE,
|
|
)
|
|
)
|
|
baseline = tuple(p for p in profiles if p != SEPARATION_PROFILE)
|
|
old = audit.audit_library(REPO, baseline)
|
|
current = audit.audit_library(REPO, profiles, baseline_profiles=baseline)
|
|
for historical, before, after in zip(previous["cases"], old["cases"], current["cases"]):
|
|
assert historical["source_path"] == before["source_path"] == after["source_path"]
|
|
> assert historical["attempts"] == before["attempts"] == after["attempts"][:-1]
|
|
E AssertionError: assert [{'profile': ...本不匹配'}]}, ...] == [{'profile': ...本不匹配'}]}, ...]
|
|
E
|
|
E Right contains one more item: {'profile': 'comfy-frontend-1.53.10-h3-a59888df-core-0.30.0-reference', 'assumptions': {'frontend': '1.53.10', 'unmodi...unknown', ...}, 'status': 'not_applicable', 'issues': [{'code': 'frontend_not_applicable', 'message': '前端声明缺失或版本不匹配'}]}
|
|
E Use -v to get more diff
|
|
|
|
calliope-backend/tests/test_audio_separation_reference.py:380: AssertionError
|
|
=========================== short test summary info ============================
|
|
FAILED calliope-backend/tests/test_grid_reference.py::test_fixed_sources_and_original_profile_cohorts_remain_identical
|
|
FAILED calliope-backend/tests/test_scail_load_reference.py::test_exact_historical_emission_is_not_user_provenance
|
|
FAILED calliope-backend/tests/test_videoinfo_reference.py::test_real_entities_strict_source_schema_and_old_profiles_stay_frozen
|
|
FAILED calliope-backend/tests/test_setget_reference.py::test_wrong_frontend_missing_policy_and_profile_inventory
|
|
FAILED calliope-backend/tests/test_setget_reference.py::test_historical_18_profiles_attempts_gaps_and_six_comparisons_unchanged
|
|
FAILED calliope-backend/tests/test_vhs_reference.py::test_old_sixteen_attempts_gaps_candidates_and_six_comparisons_protected
|
|
FAILED calliope-backend/tests/test_crop_split_reference.py::test_all_old_fourteen_profiles_attempts_gaps_and_six_differences_unchanged
|
|
FAILED calliope-backend/tests/test_audio_separation_reference.py::test_library_actual_delta_keeps_every_old_attempt_and_all_six_golden_comparisons
|
|
8 failed, 968 passed, 1 warning in 14.21s
|