HEL-892: normalize evidence log whitespace
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -2,37 +2,16 @@ diff --git a/calliope-backend/scripts/audit_reference_conversion.py b/calliope-b
|
||||
index 6d816e4..b7b5f18 100644
|
||||
--- a/calliope-backend/scripts/audit_reference_conversion.py
|
||||
+++ b/calliope-backend/scripts/audit_reference_conversion.py
|
||||
@@ -41,6 +41,7 @@ from calliope.comfyui.serialization_reference import (
|
||||
)
|
||||
from calliope.comfyui.structure_reference import (
|
||||
GRID_PROFILE,
|
||||
@@ -43,0 +44 @@ from calliope.comfyui.structure_reference import (
|
||||
+ H3_PROFILE,
|
||||
PROMOTED_PROFILES,
|
||||
SCAIL_LOAD_PROFILES,
|
||||
SETGET_COMMIT,
|
||||
@@ -305,6 +306,7 @@ REFERENCE_PROFILES = (
|
||||
*VIDEOINFO_PROFILES,
|
||||
*SCAIL_LOAD_PROFILES,
|
||||
GRID_PROFILE,
|
||||
@@ -307,0 +309 @@ REFERENCE_PROFILES = (
|
||||
+ H3_PROFILE,
|
||||
)
|
||||
|
||||
|
||||
@@ -339,7 +341,9 @@ def node_inventory(source, *, include_aux=False):
|
||||
or (props.get("aux_id") if include_aux else None),
|
||||
"version": props.get("ver"),
|
||||
"mode": node.get("mode", 0),
|
||||
@@ -342 +344,3 @@ def node_inventory(source, *, include_aux=False):
|
||||
- "widget_count": len(node.get("widgets_values", [])),
|
||||
+ "widget_count": len(node["widgets_values"])
|
||||
+ if isinstance(node.get("widgets_values"), (list, dict))
|
||||
+ else 0,
|
||||
"widget_layout": type(node.get("widgets_values", [])).__name__,
|
||||
"ue_version": (props.get("ue_properties") or {}).get("version"),
|
||||
}
|
||||
@@ -551,12 +555,59 @@ def grid_field_evidence(source, prompt):
|
||||
return fields
|
||||
|
||||
|
||||
@@ -553,0 +558,46 @@ def grid_field_evidence(source, prompt):
|
||||
+def h3_field_evidence(source, prompt):
|
||||
+ """Exact typed dual-save pointers or physical links; no generated text."""
|
||||
+ from calliope.comfyui.serialization_reference import H3_CHECK_LAYOUT, H3_WRITER_LAYOUT
|
||||
@@ -79,20 +58,9 @@ index 6d816e4..b7b5f18 100644
|
||||
+ return fields
|
||||
+
|
||||
+
|
||||
def profile_attempt(source, profile):
|
||||
expected = {
|
||||
**STRUCTURE_PROFILES,
|
||||
**PROMOTED_PROFILES,
|
||||
CASE04_PROFILE: "1.53.6",
|
||||
GRID_PROFILE: "1.41.20",
|
||||
@@ -559,0 +610 @@ def profile_attempt(source, profile):
|
||||
+ H3_PROFILE: "1.53.10",
|
||||
**VHS_PROFILES,
|
||||
**SETGET_PROFILES,
|
||||
**VIDEOINFO_PROFILES,
|
||||
@@ -737,6 +788,13 @@ def profile_attempt(source, profile):
|
||||
if profile in VHS_PROFILES
|
||||
else "crop-split-reference/verified-facts.json"
|
||||
)
|
||||
@@ -739,0 +791,7 @@ def profile_attempt(source, profile):
|
||||
+ if profile == H3_PROFILE:
|
||||
+ assumptions["h3_contract"] = "h3-reference/sources.json"
|
||||
+ assumptions["reference_sources"] = ["h3-reference/sources.json"]
|
||||
@@ -100,47 +68,23 @@ index 6d816e4..b7b5f18 100644
|
||||
+ assumptions["h3_commit"] = "a59888df88a69385d429b6865ea441e7844f49c9"
|
||||
+ assumptions["restoration_policy"] = "named_and_positional_exact_typed_agreement"
|
||||
+ assumptions["model_library_and_inference"] = "not_checked_or_executed"
|
||||
if profile == GRID_PROFILE:
|
||||
assumptions["grid_contract"] = "grid-reference/sources.json"
|
||||
assumptions["core_version"] = "0.17.0"
|
||||
@@ -838,7 +896,9 @@ def profile_attempt(source, profile):
|
||||
else {}
|
||||
),
|
||||
**(
|
||||
@@ -841 +899,3 @@ def profile_attempt(source, profile):
|
||||
- {"field_evidence": grid_field_evidence(source, result.prompt)}
|
||||
+ {"field_evidence": h3_field_evidence(source, result.prompt)}
|
||||
+ if profile == H3_PROFILE
|
||||
+ else {"field_evidence": grid_field_evidence(source, result.prompt)}
|
||||
if profile == GRID_PROFILE
|
||||
else {"field_evidence": asr_field_evidence(source, result.prompt)}
|
||||
if profile == ASR_PROFILE
|
||||
@@ -956,7 +1016,9 @@ def audit_library(repo: Path, profiles=REFERENCE_PROFILES, *, baseline_profiles=
|
||||
}
|
||||
if baseline_profiles is None:
|
||||
excluded_profiles = (
|
||||
@@ -959 +1019,3 @@ def audit_library(repo: Path, profiles=REFERENCE_PROFILES, *, baseline_profiles=
|
||||
- (GRID_PROFILE,)
|
||||
+ (H3_PROFILE,)
|
||||
+ if H3_PROFILE in profiles
|
||||
+ else (GRID_PROFILE,)
|
||||
if GRID_PROFILE in profiles
|
||||
else SCAIL_LOAD_PROFILES
|
||||
if any(p in SCAIL_LOAD_PROFILES for p in profiles)
|
||||
diff --git a/calliope-backend/src/calliope/comfyui/serialization_reference.py b/calliope-backend/src/calliope/comfyui/serialization_reference.py
|
||||
index 1e0b06a..862eab5 100644
|
||||
--- a/calliope-backend/src/calliope/comfyui/serialization_reference.py
|
||||
+++ b/calliope-backend/src/calliope/comfyui/serialization_reference.py
|
||||
@@ -16,6 +16,7 @@ from typing import Any
|
||||
|
||||
from .structure_reference import (
|
||||
GRID_PROFILE,
|
||||
@@ -18,0 +19 @@ from .structure_reference import (
|
||||
+ H3_PROFILE,
|
||||
SCAIL_LOAD_DELEGATES,
|
||||
SCAIL_LOAD_PROFILES,
|
||||
SETGET_PROFILES,
|
||||
@@ -97,6 +98,191 @@ _LAYOUTS = {
|
||||
}
|
||||
|
||||
|
||||
@@ -99,0 +101,185 @@ _LAYOUTS = {
|
||||
+H3_COMMIT = "a59888df88a69385d429b6865ea441e7844f49c9"
|
||||
+# INPUT_TYPES required then optional order, with the seed's linked control.
|
||||
+# Frontend1.53.10 separates widget.serialize (workflow) from options.serialize
|
||||
@@ -326,50 +270,22 @@ index 1e0b06a..862eab5 100644
|
||||
+ return out
|
||||
+
|
||||
+
|
||||
def grid_definitions():
|
||||
"""Pinned core 0.17.0, only the scale-dimensions IMAGE specialization.
|
||||
|
||||
@@ -302,6 +488,8 @@ def reference_definitions(profile: str = PROFILE) -> dict[str, Any]:
|
||||
"output": outputs,
|
||||
}
|
||||
|
||||
@@ -304,0 +491,2 @@ def reference_definitions(profile: str = PROFILE) -> dict[str, Any]:
|
||||
+ if profile == H3_PROFILE:
|
||||
+ return h3_definitions()
|
||||
if profile == GRID_PROFILE:
|
||||
return grid_definitions()
|
||||
if profile in SCAIL_LOAD_PROFILES:
|
||||
@@ -386,6 +574,8 @@ def reference_definitions(profile: str = PROFILE) -> dict[str, Any]:
|
||||
|
||||
def serialize_reference_widgets(node: dict[str, Any], profile: str = PROFILE) -> dict[str, Any]:
|
||||
"""Apply only the pinned identity serializers; reject any extra/missing value."""
|
||||
@@ -388,0 +577,2 @@ def serialize_reference_widgets(node: dict[str, Any], profile: str = PROFILE) ->
|
||||
+ if profile == H3_PROFILE:
|
||||
+ return serialize_h3_node(node)
|
||||
if profile == GRID_PROFILE:
|
||||
return serialize_grid_node(node)
|
||||
if profile in SCAIL_LOAD_PROFILES:
|
||||
diff --git a/calliope-backend/src/calliope/comfyui/structure_reference.py b/calliope-backend/src/calliope/comfyui/structure_reference.py
|
||||
index 2e7512b..748ab47 100644
|
||||
--- a/calliope-backend/src/calliope/comfyui/structure_reference.py
|
||||
+++ b/calliope-backend/src/calliope/comfyui/structure_reference.py
|
||||
@@ -14,6 +14,7 @@ from typing import Any
|
||||
from uuid import UUID
|
||||
|
||||
GRID_PROFILE = "comfy-frontend-1.41.20-core-0.17.0-grid-reference"
|
||||
@@ -16,0 +17 @@ GRID_PROFILE = "comfy-frontend-1.41.20-core-0.17.0-grid-reference"
|
||||
+H3_PROFILE = "comfy-frontend-1.53.10-h3-a59888df-core-0.30.0-reference"
|
||||
|
||||
SETGET_COMMIT = "ab72eda7ffad6280422d71ab7d54d3fb87c0ba18"
|
||||
SETGET_PROFILES = {
|
||||
@@ -806,22 +807,27 @@ def _expand(source, profile, widgets=False, case04=False):
|
||||
return Structure(graph, issues, unresolved, resolved)
|
||||
|
||||
|
||||
@@ -809 +810 @@ def _expand(source, profile, widgets=False, case04=False):
|
||||
-def validate_grid_structure(source):
|
||||
+def validate_grid_structure(source, *, frontend="1.41.20", preview_any=False):
|
||||
"""Only direct root links under the pinned 1.41.20 reference premise.
|
||||
|
||||
IMAGE -> IMAGE,MASK is the single supported MatchType specialization.
|
||||
No UE implementation identity is inferred from an empty saved mapping.
|
||||
"""
|
||||
@@ -815,2 +816,7 @@ def validate_grid_structure(source):
|
||||
- if (source.get("extra") or {}).get("frontendVersion") != "1.41.20":
|
||||
- raise ValueError("四宫格参考需要显式前端1.41.20")
|
||||
+ scope = "四宫格" if frontend == "1.41.20" else "H3"
|
||||
@@ -379,80 +295,36 @@ index 2e7512b..748ab47 100644
|
||||
+ if frontend == "1.41.20"
|
||||
+ else f"H3直接连线参考需要显式前端{frontend}"
|
||||
+ )
|
||||
if (source.get("definitions") or {}).get("subgraphs"):
|
||||
@@ -818 +824 @@ def validate_grid_structure(source):
|
||||
- raise ValueError("四宫格参考不覆盖子图")
|
||||
+ raise ValueError(f"{scope}参考不覆盖子图")
|
||||
extra = source.get("extra") or {}
|
||||
if extra.get("workflowRendererVersion", "LG") != "LG":
|
||||
@@ -821 +827 @@ def validate_grid_structure(source):
|
||||
- raise ValueError("四宫格只覆盖LG保存态")
|
||||
+ raise ValueError(f"{scope}只覆盖LG保存态")
|
||||
for key in ("ue_links", "links_added_by_ue"):
|
||||
if key in extra and extra[key] != []:
|
||||
@@ -824 +830 @@ def validate_grid_structure(source):
|
||||
- raise ValueError("四宫格参考只覆盖空UE连线数组")
|
||||
+ raise ValueError(f"{scope}参考只覆盖空UE连线数组")
|
||||
nodes = {}
|
||||
for node in source["nodes"]:
|
||||
nid = _id(node["id"])
|
||||
@@ -829,7 +835,7 @@ def validate_grid_structure(source):
|
||||
raise ValueError("重复节点ID")
|
||||
nodes[nid] = node
|
||||
if type(node.get("mode", 0)) is not int or node.get("mode", 0) != 0:
|
||||
@@ -832 +838 @@ def validate_grid_structure(source):
|
||||
- raise ValueError("四宫格仅正常mode=0")
|
||||
+ raise ValueError(f"{scope}仅正常mode=0")
|
||||
if node.get("type") in ("Note", "MarkdownNote") and (
|
||||
node.get("inputs") or node.get("outputs")
|
||||
):
|
||||
@@ -837,7 +843,7 @@ def validate_grid_structure(source):
|
||||
links = {}
|
||||
for edge in source.get("links", []):
|
||||
if not isinstance(edge, list) or len(edge) != 6:
|
||||
@@ -840 +846 @@ def validate_grid_structure(source):
|
||||
- raise ValueError("四宫格只接受六字段连线")
|
||||
+ raise ValueError(f"{scope}只接受六字段连线")
|
||||
lid, a, oslot, b, islot, typ = edge
|
||||
if type(lid) is not int or lid < 0 or lid in links:
|
||||
raise ValueError("重复或非法连线ID")
|
||||
@@ -851,6 +857,8 @@ def validate_grid_structure(source):
|
||||
raise ValueError("连线原槽缺失或非法")
|
||||
origin, target = nodes[a]["outputs"][oslot], nodes[b]["inputs"][islot]
|
||||
accepted = origin.get("type") == target.get("type") == typ
|
||||
@@ -853,0 +860,2 @@ def validate_grid_structure(source):
|
||||
+ if preview_any and nodes[b].get("type") == "PreviewAny":
|
||||
+ accepted = typ == origin.get("type") == "STRING" and target.get("type") == "*"
|
||||
if nodes[b].get("type") == "ResizeImageMaskNode" and target.get("name") == "input":
|
||||
accepted = typ == origin.get("type") == "IMAGE" and target.get("type") == "IMAGE,MASK"
|
||||
if not accepted:
|
||||
@@ -883,7 +891,7 @@ def validate_grid_structure(source):
|
||||
|
||||
def visit(nid):
|
||||
if nid in visiting:
|
||||
@@ -886 +894 @@ def validate_grid_structure(source):
|
||||
- raise ValueError("四宫格参考不支持环")
|
||||
+ raise ValueError(f"{scope}参考不支持环")
|
||||
if nid in visited:
|
||||
return
|
||||
visiting.add(nid)
|
||||
diff --git a/calliope-backend/src/calliope/comfyui/ui2api.py b/calliope-backend/src/calliope/comfyui/ui2api.py
|
||||
index 43ce5bc..4993c95 100644
|
||||
--- a/calliope-backend/src/calliope/comfyui/ui2api.py
|
||||
+++ b/calliope-backend/src/calliope/comfyui/ui2api.py
|
||||
@@ -37,6 +37,7 @@ from .serialization_reference import (
|
||||
)
|
||||
from .structure_reference import (
|
||||
GRID_PROFILE,
|
||||
@@ -39,0 +40 @@ from .structure_reference import (
|
||||
+ H3_PROFILE,
|
||||
PROMOTED_PROFILES,
|
||||
SCAIL_LOAD_PROFILES,
|
||||
SETGET_PROFILES,
|
||||
@@ -75,6 +76,7 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
|
||||
not in (
|
||||
PROFILE,
|
||||
GRID_PROFILE,
|
||||
@@ -77,0 +79 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
|
||||
+ H3_PROFILE,
|
||||
ASR_PROFILE,
|
||||
*MEDIA_PROFILES,
|
||||
SEPARATION_PROFILE,
|
||||
@@ -101,6 +103,19 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
|
||||
try:
|
||||
if profile == GRID_PROFILE:
|
||||
validate_grid_structure(source)
|
||||
@@ -103,0 +106,13 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
|
||||
+ if profile == H3_PROFILE:
|
||||
+ validate_grid_structure(source, frontend="1.53.10", preview_any=True)
|
||||
+ if any(n.get("type") not in reference_definitions(H3_PROFILE) for n in source["nodes"]):
|
||||
@@ -466,81 +338,36 @@ index 43ce5bc..4993c95 100644
|
||||
+ )
|
||||
+ ):
|
||||
+ raise ValueError("H3未知整图UE覆盖")
|
||||
if profile in (*SETGET_PROFILES, *VIDEOINFO_PROFILES, *SCAIL_LOAD_PROFILES):
|
||||
expected = {**SETGET_PROFILES, **VIDEOINFO_PROFILES, **SCAIL_LOAD_PROFILES}[profile]
|
||||
declared = (source.get("extra") or {}).get("frontendVersion")
|
||||
@@ -218,11 +233,12 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
|
||||
result.diagnostic_graph = source
|
||||
except (ValueError, TypeError, KeyError, AttributeError, IndexError) as exc:
|
||||
issue = {"code": "invalid_reference_contract", "message": str(exc)}
|
||||
@@ -221 +236 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
|
||||
- if profile == GRID_PROFILE:
|
||||
+ if profile in (GRID_PROFILE, H3_PROFILE):
|
||||
issue["pointer"] = "/"
|
||||
return Conversion(None, [issue], True)
|
||||
result.reference_only = True
|
||||
if profile in (
|
||||
@@ -225,0 +241 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
|
||||
+ H3_PROFILE,
|
||||
GRID_PROFILE,
|
||||
ASR_PROFILE,
|
||||
*MEDIA_PROFILES,
|
||||
@@ -241,7 +257,7 @@ def _convert(
|
||||
|
||||
def fail(code: str, message: str, node_id: Any = "") -> None:
|
||||
issue = {"code": code, "message": message, "node_id": str(node_id)}
|
||||
@@ -244 +260 @@ def _convert(
|
||||
- if reference and reference_profile == GRID_PROFILE:
|
||||
+ if reference and reference_profile in (GRID_PROFILE, H3_PROFILE):
|
||||
issue["pointer"] = next(
|
||||
(
|
||||
f"/nodes/{i}"
|
||||
@@ -301,6 +317,7 @@ def _convert(
|
||||
**PROMOTED_PROFILES,
|
||||
CASE04_PROFILE: "1.53.6",
|
||||
GRID_PROFILE: "1.41.20",
|
||||
@@ -303,0 +320 @@ def _convert(
|
||||
+ H3_PROFILE: "1.53.10",
|
||||
**VHS_PROFILES,
|
||||
**SETGET_PROFILES,
|
||||
**VIDEOINFO_PROFILES,
|
||||
@@ -449,7 +466,7 @@ def _convert(
|
||||
# Custom unions/wildcards need frontend evidence; do not guess coercions.
|
||||
if expected != actual and not (
|
||||
reference
|
||||
@@ -452 +469 @@ def _convert(
|
||||
- and reference_profile in (PREVIEW_PROFILE, CASE04_PROFILE, ASR_PROFILE)
|
||||
+ and reference_profile in (PREVIEW_PROFILE, CASE04_PROFILE, ASR_PROFILE, H3_PROFILE)
|
||||
and ct == "PreviewAny"
|
||||
and name == "source"
|
||||
and expected == "*"
|
||||
diff --git a/calliope-backend/tests/test_audio_separation_reference.py b/calliope-backend/tests/test_audio_separation_reference.py
|
||||
index 324bd32..ee8b49c 100644
|
||||
--- a/calliope-backend/tests/test_audio_separation_reference.py
|
||||
+++ b/calliope-backend/tests/test_audio_separation_reference.py
|
||||
@@ -370,6 +370,7 @@ def test_library_actual_delta_keeps_every_old_attempt_and_all_six_golden_compari
|
||||
*audit.VIDEOINFO_PROFILES,
|
||||
*audit.SCAIL_LOAD_PROFILES,
|
||||
audit.GRID_PROFILE,
|
||||
@@ -372,0 +373 @@ def test_library_actual_delta_keeps_every_old_attempt_and_all_six_golden_compari
|
||||
+ audit.H3_PROFILE,
|
||||
)
|
||||
)
|
||||
baseline = tuple(p for p in profiles if p != SEPARATION_PROFILE)
|
||||
diff --git a/calliope-backend/tests/test_crop_split_reference.py b/calliope-backend/tests/test_crop_split_reference.py
|
||||
index bdbed6f..e2a9715 100644
|
||||
--- a/calliope-backend/tests/test_crop_split_reference.py
|
||||
+++ b/calliope-backend/tests/test_crop_split_reference.py
|
||||
@@ -361,6 +361,7 @@ def test_all_old_fourteen_profiles_attempts_gaps_and_six_differences_unchanged()
|
||||
*audit.VIDEOINFO_PROFILES,
|
||||
*audit.SCAIL_LOAD_PROFILES,
|
||||
audit.GRID_PROFILE,
|
||||
@@ -363,0 +364 @@ def test_all_old_fourteen_profiles_attempts_gaps_and_six_differences_unchanged()
|
||||
+ audit.H3_PROFILE,
|
||||
)
|
||||
)
|
||||
profiles = tuple(p for p in historical_profiles if p not in CROP_SPLIT_PROFILES)
|
||||
diff --git a/calliope-backend/tests/test_grid_reference.py b/calliope-backend/tests/test_grid_reference.py
|
||||
index 270f780..319af04 100644
|
||||
--- a/calliope-backend/tests/test_grid_reference.py
|
||||
+++ b/calliope-backend/tests/test_grid_reference.py
|
||||
@@ -337,8 +337,12 @@ 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"])
|
||||
@@ -340,2 +340,6 @@ def test_fixed_sources_and_original_profile_cohorts_remain_identical():
|
||||
- assert len(profiles) == 24 and tuple(audit.REFERENCE_PROFILES[:-1]) == profiles
|
||||
- current = audit.audit_library(REPO, baseline_profiles=profiles)
|
||||
+ assert (
|
||||
@@ -549,9 +376,6 @@ index 270f780..319af04 100644
|
||||
+ == profiles
|
||||
+ )
|
||||
+ current = audit.audit_library(REPO, (*profiles, GRID_PROFILE), baseline_profiles=profiles)
|
||||
for before, after in zip(old["cases"], current["cases"]):
|
||||
assert before["source_path"] == after["source_path"]
|
||||
assert before["attempts"] == after["attempts"][:24]
|
||||
diff --git a/calliope-backend/tests/test_h3_reference.py b/calliope-backend/tests/test_h3_reference.py
|
||||
new file mode 100644
|
||||
index 0000000..ac681f8
|
||||
@@ -892,10 +716,7 @@ diff --git a/calliope-backend/tests/test_scail_load_reference.py b/calliope-back
|
||||
index 5ebab09..349bc42 100644
|
||||
--- a/calliope-backend/tests/test_scail_load_reference.py
|
||||
+++ b/calliope-backend/tests/test_scail_load_reference.py
|
||||
@@ -242,7 +242,12 @@ def test_exact_historical_emission_is_not_user_provenance():
|
||||
assert cls.lineno > 0
|
||||
assert '"VHS_LoadVideo": LoadVideoUpload,' in (ROOT / "videohelpersuite__nodes.py").read_text()
|
||||
assert serialize_scail_load_node(loader())["custom_width"] == 0
|
||||
@@ -245 +245,6 @@ def test_exact_historical_emission_is_not_user_provenance():
|
||||
- assert len([p for p in audit.REFERENCE_PROFILES if p != audit.GRID_PROFILE]) == 24
|
||||
+ assert (
|
||||
+ len(
|
||||
@@ -903,17 +724,11 @@ index 5ebab09..349bc42 100644
|
||||
+ )
|
||||
+ == 24
|
||||
+ )
|
||||
|
||||
|
||||
def test_named_map_order_external_removal_and_old_contracts():
|
||||
diff --git a/calliope-backend/tests/test_setget_reference.py b/calliope-backend/tests/test_setget_reference.py
|
||||
index cc9f3cf..65bff83 100644
|
||||
--- a/calliope-backend/tests/test_setget_reference.py
|
||||
+++ b/calliope-backend/tests/test_setget_reference.py
|
||||
@@ -336,7 +336,12 @@ def test_wrong_frontend_missing_policy_and_profile_inventory():
|
||||
p
|
||||
for p in audit.REFERENCE_PROFILES
|
||||
if p
|
||||
@@ -339 +339,6 @@ def test_wrong_frontend_missing_policy_and_profile_inventory():
|
||||
- not in (*audit.VIDEOINFO_PROFILES, *audit.SCAIL_LOAD_PROFILES, audit.GRID_PROFILE)
|
||||
+ not in (
|
||||
+ *audit.VIDEOINFO_PROFILES,
|
||||
@@ -921,50 +736,28 @@ index cc9f3cf..65bff83 100644
|
||||
+ audit.GRID_PROFILE,
|
||||
+ audit.H3_PROFILE,
|
||||
+ )
|
||||
]
|
||||
)
|
||||
== 20
|
||||
@@ -423,9 +428,14 @@ def test_historical_18_profiles_attempts_gaps_and_six_comparisons_unchanged():
|
||||
*audit.VIDEOINFO_PROFILES,
|
||||
*audit.SCAIL_LOAD_PROFILES,
|
||||
audit.GRID_PROFILE,
|
||||
@@ -425,0 +431 @@ def test_historical_18_profiles_attempts_gaps_and_six_comparisons_unchanged():
|
||||
+ audit.H3_PROFILE,
|
||||
)
|
||||
)
|
||||
@@ -428 +434,5 @@ def test_historical_18_profiles_attempts_gaps_and_six_comparisons_unchanged():
|
||||
- now = audit.audit_library(REPO, baseline_profiles=baseline)
|
||||
+ now = audit.audit_library(
|
||||
+ REPO,
|
||||
+ tuple(p for p in audit.REFERENCE_PROFILES if p != audit.H3_PROFILE),
|
||||
+ baseline_profiles=baseline,
|
||||
+ )
|
||||
actual_old = audit.audit_library(REPO, baseline)
|
||||
assert len(baseline) == 18
|
||||
assert actual_old["gap_groups"] == old["gap_groups"]
|
||||
diff --git a/calliope-backend/tests/test_vhs_reference.py b/calliope-backend/tests/test_vhs_reference.py
|
||||
index 6953e49..3c09f1b 100644
|
||||
--- a/calliope-backend/tests/test_vhs_reference.py
|
||||
+++ b/calliope-backend/tests/test_vhs_reference.py
|
||||
@@ -295,6 +295,7 @@ def test_old_sixteen_attempts_gaps_candidates_and_six_comparisons_protected():
|
||||
*audit.VIDEOINFO_PROFILES,
|
||||
*audit.SCAIL_LOAD_PROFILES,
|
||||
audit.GRID_PROFILE,
|
||||
@@ -297,0 +298 @@ def test_old_sixteen_attempts_gaps_candidates_and_six_comparisons_protected():
|
||||
+ audit.H3_PROFILE,
|
||||
)
|
||||
)
|
||||
profiles = tuple(p for p in historical_profiles if p not in VHS_PROFILES)
|
||||
diff --git a/calliope-backend/tests/test_videoinfo_reference.py b/calliope-backend/tests/test_videoinfo_reference.py
|
||||
index d2e9790..9070345 100644
|
||||
--- a/calliope-backend/tests/test_videoinfo_reference.py
|
||||
+++ b/calliope-backend/tests/test_videoinfo_reference.py
|
||||
@@ -280,7 +280,7 @@ def test_real_entities_strict_source_schema_and_old_profiles_stay_frozen():
|
||||
[
|
||||
p
|
||||
for p in audit.REFERENCE_PROFILES
|
||||
@@ -283 +283 @@ def test_real_entities_strict_source_schema_and_old_profiles_stay_frozen():
|
||||
- if p not in (*audit.SCAIL_LOAD_PROFILES, audit.GRID_PROFILE)
|
||||
+ if p not in (*audit.SCAIL_LOAD_PROFILES, audit.GRID_PROFILE, audit.H3_PROFILE)
|
||||
]
|
||||
)
|
||||
== 22
|
||||
diff --git a/docs/hel-892/h3-evidence/recompute.py b/docs/hel-892/h3-evidence/recompute.py
|
||||
new file mode 100644
|
||||
index 0000000..bc9164b
|
||||
|
||||
Reference in New Issue
Block a user