diff --git a/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/commands-executed.json b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/commands-executed.json new file mode 100644 index 00000000..f8d34ed3 --- /dev/null +++ b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/commands-executed.json @@ -0,0 +1,21 @@ +{ + "commands": [ + { + "name": "pytest", + "command": "PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_zimage_style_fixed_document.py calliope-backend/tests/test_workflow_library.py -q", + "exit_code": 0 + }, + { + "name": "ruff-check", + "command": "uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/zimage-style-document-evidence/*.py calliope-backend/tests/test_zimage_style_fixed_document.py e2e/run-zimage-style-document.py calliope-backend/src/calliope/comfyui/fixed_document.py", + "exit_code": 0 + }, + { + "name": "ruff-format-check", + "command": "uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/zimage-style-document-evidence/*.py calliope-backend/tests/test_zimage_style_fixed_document.py e2e/run-zimage-style-document.py calliope-backend/src/calliope/comfyui/fixed_document.py", + "exit_code": 0 + } + ], + "exact_three_replacements": true, + "old_module_not_referenced": true +} diff --git a/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/correction.md b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/correction.md new file mode 100644 index 00000000..5e1e13ed --- /dev/null +++ b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/correction.md @@ -0,0 +1,17 @@ +第88批复现入口更正,基线 `e3a7ccc89012d86ddcc616f9d904fa3809b16b4b`。 + +原交付入口的 pytest、Ruff check、Ruff format --check 三行误留了 `test_zimage_wash_fixed_document.py`。这会选择上一图模块,不能复现本批 style 结果;本次只将这三个路径改为 `test_zimage_style_fixed_document.py`,库回归、显式后台项目配置和其它命令原样保留。 + +错误入口已用旧模块的 `test_exact_build_and_qualification` 单项实际复现:69 个定义与旧断言 68 不符,退出码 1,完整日志保留在 `wrong-entry-failure.txt`。这是本批交付入口错误,不属于历史业务失败,也不是 style 产品专项失败;未修改旧 wash 测试或任何原失败日志。 + +实际从更正后的入口读取并执行三条原命令,结果: + +- pytest:style 专项及库回归共 189 通过,保留已有 Starlette/anyio 弃用警告。 +- Ruff check:All checks passed。 +- Ruff format --check:13 files already formatted。 + +准确命令和退出码见 `commands-executed.json`,输出分别为 `pytest.txt`、`ruff-check.txt`、`ruff-format-check.txt`。本次 189 不与此前结果叠加。 + +产品代码、source_reviews、fixed_document、定义摘要、实际 doc、完整中文、原图、来源、转换执行、Drawer/CSS/依赖字节均保持基线;差集及关键摘要见 `unchanged.json`。原 2708 浏览、构建、包、导入保护、双次生成和来源证据沿用已审 e3a7ccc,本次没有重跑或覆盖它们。本目录是窄范围更正补充,原交付包不倒改。 + +附件含更正入口、这次失败和通过记录、逐文件用途/SHA、完整修正补丁、最终提交/远端/PR/定义摘要。继续原 PR25/main,不合并部署、不扩下一图。69 图 2914 位置+75 注释仍仅参考;155 最终定稿、可靠转换、环境核对及必要实跑未完成。 diff --git a/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/pytest.txt b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/pytest.txt new file mode 100644 index 00000000..7b8799e8 --- /dev/null +++ b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/pytest.txt @@ -0,0 +1,10 @@ +........................................................................ [ 38%] +........................................................................ [ 76%] +............................................. [100%] +=============================== 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 +189 passed, 1 warning in 8.53s diff --git a/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/ruff-check.txt b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/ruff-check.txt new file mode 100644 index 00000000..1f5f344d --- /dev/null +++ b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/ruff-check.txt @@ -0,0 +1 @@ +All checks passed! diff --git a/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/ruff-format-check.txt b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/ruff-format-check.txt new file mode 100644 index 00000000..f0778478 --- /dev/null +++ b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/ruff-format-check.txt @@ -0,0 +1 @@ +13 files already formatted diff --git a/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/unchanged.json b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/unchanged.json new file mode 100644 index 00000000..d4561571 --- /dev/null +++ b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/unchanged.json @@ -0,0 +1,56 @@ +{ + "base": "e3a7ccc89012d86ddcc616f9d904fa3809b16b4b", + "existing_tracked_changes": [ + "docs/hel-892/zimage-style-document-evidence/validation-commands.txt" + ], + "other_existing_tracked_files_unchanged": 6991, + "product_code_resources_source_ui_unchanged": true, + "definition_pins": { + "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json": "7fd417675ba6da62005755ba97e90fff75a9536b999011b81172646b076bf50a" + }, + "critical_files": [ + { + "path": "calliope-backend/src/calliope/comfyui/source_reviews.json", + "sha256": "048c5f0221c664f85e3c1a58db6174ad93bab24d91c12139b188336af054a1a2", + "unchanged": true + }, + { + "path": "calliope-backend/src/calliope/comfyui/fixed_document.py", + "sha256": "b754321f0aad1f7ccf41bee7de76f82d79bbda0794cc39e69e191911d17f23ac", + "unchanged": true + }, + { + "path": "calliope-backend/tests/test_zimage_wash_fixed_document.py", + "sha256": "80e8eaec16b174e84155f5c530a80401d82cce0519ea0e6e96bc119984fa390e", + "unchanged": true + }, + { + "path": "docs/hel-892/zimage-style-document-evidence/pins.json", + "sha256": "410b73ac0664396bb845c4e0fe2c2ee9db61882a8569df7c8c3cd3d448ab11aa", + "unchanged": true + }, + { + "path": "docs/hel-892/zimage-style-document-evidence/definition-0.json", + "sha256": "b9995212342a5bb854889fe000e0129ca06d5b6bcfd38c9eb465285051feb70e", + "unchanged": true + }, + { + "path": "docs/hel-892/zimage-style-document-evidence/actual-9_Z-Image+Flux2-Klein_风格重新编辑.json", + "sha256": "d7b87d2f0ba0babf8464f29059051c478b84e6904579180ee57dd0a8fa57ec15", + "unchanged": true + }, + { + "path": "docs/hel-892/ZImage与Flux2风格编辑固定参考中文说明.md", + "sha256": "71e47cbddc1bbceb85b61ff135c4657971740669b9be444efae9cec207f4f6f1", + "unchanged": true + }, + { + "path": "calliope-web/src/lib/components/WorkflowDocumentDrawer.svelte", + "sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1", + "unchanged": true + } + ], + "inherited_evidence_commit": "e3a7ccc89012d86ddcc616f9d904fa3809b16b4b", + "inherited_browser_assertions": 2708, + "browser_build_package_import_protection_rerun": false +} diff --git a/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/wrong-entry-failure.txt b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/wrong-entry-failure.txt new file mode 100644 index 00000000..c6f3a7fd --- /dev/null +++ b/docs/hel-892/zimage-style-document-evidence/reproduction-fix-evidence/wrong-entry-failure.txt @@ -0,0 +1,22 @@ +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) == 68 and doc()["fixed_version"]["matched"] +E AssertionError: assert (69 == 68) +E + where 69 = len({'example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json': '7fd417675ba6da62005755ba97e90fff75a953...workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json': 'f77d2387a242346c82be09f1b3795f24a8531876e7f4dceabd46297aedf5979d', ...}) + +calliope-backend/tests/test_zimage_wash_fixed_document.py:90: 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_wash_fixed_document.py::test_exact_build_and_qualification +1 failed, 1 warning in 0.68s diff --git a/docs/hel-892/zimage-style-document-evidence/validation-commands.txt b/docs/hel-892/zimage-style-document-evidence/validation-commands.txt index 2a1ebfd2..e6173acb 100644 --- a/docs/hel-892/zimage-style-document-evidence/validation-commands.txt +++ b/docs/hel-892/zimage-style-document-evidence/validation-commands.txt @@ -10,9 +10,9 @@ PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-style-document-evidence/ve PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-style-document-evidence/rebuild.py uv run --project calliope-backend --offline ruff format --config calliope-backend/pyproject.toml calliope-backend/src/calliope/comfyui/fixed_document.py PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-style-document-evidence/repeat.py -PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_zimage_wash_fixed_document.py calliope-backend/tests/test_workflow_library.py -q -uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/zimage-style-document-evidence/*.py calliope-backend/tests/test_zimage_wash_fixed_document.py e2e/run-zimage-style-document.py calliope-backend/src/calliope/comfyui/fixed_document.py -uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/zimage-style-document-evidence/*.py calliope-backend/tests/test_zimage_wash_fixed_document.py e2e/run-zimage-style-document.py calliope-backend/src/calliope/comfyui/fixed_document.py +PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_zimage_style_fixed_document.py calliope-backend/tests/test_workflow_library.py -q +uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/zimage-style-document-evidence/*.py calliope-backend/tests/test_zimage_style_fixed_document.py e2e/run-zimage-style-document.py calliope-backend/src/calliope/comfyui/fixed_document.py +uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/zimage-style-document-evidence/*.py calliope-backend/tests/test_zimage_style_fixed_document.py e2e/run-zimage-style-document.py calliope-backend/src/calliope/comfyui/fixed_document.py node --check e2e/zimage-style-document.mjs PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/zimage-style-document-evidence/recompute.py