feat: complete production workflow migration

This commit is contained in:
2026-08-06 14:29:57 +08:00
parent 7f215e79c4
commit 8df5266abb
448 changed files with 56937 additions and 14619 deletions
+8 -3
View File
@@ -20,10 +20,14 @@ def test_workflow_catalog_uses_native_execution_schema() -> None:
(PROJECT_ROOT / "config" / "workflows.json").read_text(encoding="utf-8")
)
assert payload["schema_version"] == 2
assert payload["schema_version"] == 3
for workflow in payload["workflows"]:
assert "legacy" not in workflow
assert set(workflow["execution"]) >= {"entry"}
execution = workflow["execution"]
assert {"entry", "steps"} & set(execution)
if workflow["trigger"] == "scheduled":
assert execution.get("steps")
assert all(step.get("entry") for step in execution["steps"])
def test_every_available_workflow_entry_exists_inside_its_new_module() -> None:
@@ -33,7 +37,8 @@ def test_every_available_workflow_entry_exists_inside_its_new_module() -> None:
for workflow in catalog.workflows:
if workflow.trigger == "unavailable":
continue
entry = MODULE_SOURCE_ROOT / workflow.module / "runtime" / workflow.entry
module_root = MODULE_SOURCE_ROOT / workflow.module
entry = module_root / workflow.entry
if not entry.is_file():
missing.append(f"{workflow.workflow_id}: {entry}")