chore(web): continuous handoff WBV2-P1278-001
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
| 字段 | 值 |
|
||||
| --- | --- |
|
||||
| 里程碑 | WBV2 capability workflow |
|
||||
| 当前任务 | `WBV2-P1276-001` |
|
||||
| parent manifest | `tests/golden/WBV2-P1276-000/manifest.json` |
|
||||
| 任务卡 | [`tasks/WBV2-P1276-001.md`](tasks/WBV2-P1276-001.md) |
|
||||
| 当前任务 | `WBV2-P1278-001` |
|
||||
| parent manifest | `tests/golden/WBV2-P1278-000/manifest.json` |
|
||||
| 任务卡 | [`tasks/WBV2-P1278-001.md`](tasks/WBV2-P1278-001.md) |
|
||||
| 专项验收 | `node tools/web/check-execution-control-plane.mjs` |
|
||||
| legacy coverage checkpoint | `M16-GAP-00282` |
|
||||
| legacy coverage parent | `tests/golden/M16-GAP-00281/manifest.json` |
|
||||
|
||||
9
docs/status/WBV2-P1278-001.md
Normal file
9
docs/status/WBV2-P1278-001.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# WBV2-P1278-001 status
|
||||
|
||||
- task: `WBV2-P1278-001`; module: `MESH_INSET_OPERATOR_BATCH`; status: `done`
|
||||
- source hashes stable: `true`; commands passed: `4`
|
||||
- existing production evidence reused: `false`; skipped commands: `0`
|
||||
- positive Main mutation, negative no-mutation, recovery and Chromium gates are recorded in the module receipt
|
||||
- dynamic source inventory: `3745` units; verified `1012`; unverified `2733`; planning estimate `5200` (non-binding); this-segment binding delta: `1`
|
||||
- historical 6900-entry inventory remains read-only; full-family parity: `false`
|
||||
- nextTask: `NONE`
|
||||
48
docs/tasks/WBV2-P1278-001.md
Normal file
48
docs/tasks/WBV2-P1278-001.md
Normal file
@@ -0,0 +1,48 @@
|
||||
# WBV2-P1278-001: verify mesh inset operator through native Main
|
||||
|
||||
- task: WBV2-P1278-001
|
||||
- parent: WBV2-P1278-000
|
||||
- status: in_progress
|
||||
- gap: capability:MESH_INSET_OPERATOR_BATCH
|
||||
- ownerFamily: MESH
|
||||
- targetImplementationClass: LOCAL_EXACT
|
||||
- batchId: WBV2-P1278-001:MESH_INSET_OPERATOR_BATCH:152b6ff293359f2b
|
||||
- selectedRecordIds: ["operator:MESH_OT_inset"]
|
||||
- commandBudget: max=48; read/exploration max=16
|
||||
- Implementation entrypoint: `node tools/web/run-wbv2-module-task.mjs --task WBV2-P1278-001 --write`
|
||||
|
||||
## 目标
|
||||
|
||||
以一个共享 Blender Main reader、WASM build、Worker 路由和 Chromium receipt 批量验证 MESH_OT_inset 的真实 modifier/RNA 元数据。
|
||||
|
||||
## 输入与范围
|
||||
|
||||
- Blender modifier sources: `blender-5.2.0/source/blender/modifiers/intern/`
|
||||
- RNA source: `blender-5.2.0/source/blender/makesrna/intern/rna_modifier.cc`
|
||||
- Native reader: `blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp`
|
||||
- Fixtures: `tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend`
|
||||
- Chromium test: `web/tests/e2e/wbv2-mesh-topology-production.spec.ts`
|
||||
- Selected modifier units: `modifier-source:MESH_OT_inset`
|
||||
- Selected RNA units: none (source-only dependency batch)
|
||||
|
||||
## 验收
|
||||
|
||||
- one shared Main/WASM/Worker/Chromium chain observes every selected type
|
||||
- malformed input is rejected without Main mutation
|
||||
- save/reopen and deterministic second read are exact
|
||||
- only Chromium is used; JS simulation and per-API duplicate workers are forbidden
|
||||
- each selected source unit receives an explicit hash-bound coverage binding
|
||||
- `node tools/web/check-task-context.mjs --task WBV2-P1278-001 --write`
|
||||
|
||||
## 失败边界
|
||||
|
||||
- any missing source, unsupported type, hash drift, malformed data or non-exact recovery keeps the batch `in_progress`/`blocked`
|
||||
- partial batch success never claims the omitted family; historical inventory remains read-only
|
||||
|
||||
## 交付与回滚
|
||||
|
||||
- Receipt: `tests/golden/WBV2-P1278-001/module-receipt.json`
|
||||
- Aggregate production evidence: `tests/golden/WBV2-P1278-001/modifier-reader-batch-production.json`
|
||||
- Manifest: `tests/golden/WBV2-P1278-001/manifest.json`
|
||||
- Status: `docs/status/WBV2-P1278-001.md`
|
||||
- Rollback: restore WBV2-P1278-000 as queue parent without rewriting prior evidence.
|
||||
46
tests/golden/WBV2-P1278-000/manifest.json
Normal file
46
tests/golden/WBV2-P1278-000/manifest.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1278-000",
|
||||
"parentTask": "WBV2-P1277-001",
|
||||
"operation": "AUTHORIZE_SOURCE_BACKED_MODULE_BATCH",
|
||||
"status": "done",
|
||||
"enablingTask": true,
|
||||
"parityStateChange": false,
|
||||
"runtime": "MODULE_EXECUTION_QUEUE_BRIDGE",
|
||||
"batchId": "WBV2-P1278-001:MESH_INSET_OPERATOR_BATCH:152b6ff293359f2b",
|
||||
"selectedRecordIds": [
|
||||
"operator:MESH_OT_inset"
|
||||
],
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P1277-001/manifest.json",
|
||||
"sha256": "9ddba3f91e4fcb007bd71871ac4402cca9c445b9e8225d8c83874f003912b18a"
|
||||
},
|
||||
"plan": {
|
||||
"path": "tests/golden/WBV2-P1278-000/module-execution-plan.json",
|
||||
"sha256": "6c4ae4ec9f37fa7c92905f8ae7ad7da8b40dfb364f2d66ab62b86e9a8c15f51a"
|
||||
},
|
||||
"report": {
|
||||
"path": "tests/golden/WBV2-P1278-000/successor-authorization-report.json",
|
||||
"sha256": "cd2867db55b11ad82430cff7b75320ed854f6589d6102b2fedb1a97e850f0dfe"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P1278-000.md",
|
||||
"sha256": "50115f459426eeb565ed5081d57917500c46d2ed8b832392b503ae3d4d3faddd"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"sourceBackedSuccessor": true,
|
||||
"moduleId": "MESH_INSET_OPERATOR_BATCH",
|
||||
"batchSize": 1,
|
||||
"inventoryTotal": 6900,
|
||||
"effectiveCompleted": 290,
|
||||
"effectivePending": 6609,
|
||||
"dynamicUnitCount": 3745,
|
||||
"dynamicVerifiedUnits": 1011,
|
||||
"dynamicUnverifiedUnits": 2734,
|
||||
"boundUnitDelta": 0,
|
||||
"fullHistoricalReproduction": false
|
||||
},
|
||||
"nextTask": "WBV2-P1278-001"
|
||||
}
|
||||
29694
tests/golden/WBV2-P1278-000/module-execution-plan.json
Normal file
29694
tests/golden/WBV2-P1278-000/module-execution-plan.json
Normal file
File diff suppressed because it is too large
Load Diff
108
tests/golden/WBV2-P1278-001/manifest.json
Normal file
108
tests/golden/WBV2-P1278-001/manifest.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1278-001",
|
||||
"parentTask": "WBV2-P1278-000",
|
||||
"operation": "MODULE_FUNCTION_EXECUTION",
|
||||
"phase": "CONTINUE",
|
||||
"taskClass": "MODULE",
|
||||
"status": "done",
|
||||
"enablingTask": true,
|
||||
"parityStateChange": false,
|
||||
"runtime": "BLENDER_WEB_FUNCTION_MODULE",
|
||||
"batchId": "WBV2-P1278-001:MESH_INSET_OPERATOR_BATCH:152b6ff293359f2b",
|
||||
"selectedRecordIds": [
|
||||
"operator:MESH_OT_inset"
|
||||
],
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P1278-000/manifest.json",
|
||||
"sha256": "9bc38c14c8fba99ba2c076408a07f7f3b553c17419b098bff4760bf1ff555e96"
|
||||
},
|
||||
"source1": {
|
||||
"path": "blender-5.2.0/source/blender/editors/mesh/mesh_ops.cc",
|
||||
"sha256": "d475de09707f939e958d66a5dd78f8ef2d6177073e66cfe27d7ab7b3207adf04"
|
||||
},
|
||||
"source2": {
|
||||
"path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"sha256": "8a9b46e8f5f9c4b30ad7818fac6fbd64b20dc2d0a962630f50c8f352bdf230d3"
|
||||
},
|
||||
"source3": {
|
||||
"path": "web/tests/e2e/wbv2-mesh-topology-production.spec.ts",
|
||||
"sha256": "26ee511882607f419cdfdb112b0c7a6ec65a13fbc977dd3baa7bfce37813fd62"
|
||||
},
|
||||
"source4": {
|
||||
"path": "tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend",
|
||||
"sha256": "1a9a894c4106d73a4533485d9fdddfe2883f75e4692b8e53dc174308e12fe60b"
|
||||
},
|
||||
"source5": {
|
||||
"path": "web/app/src/vendor/blender/web_engine.wasm",
|
||||
"sha256": "66fc59cba55a8c17d398b74d12ea4a9f09746c0f30c40f579c44aa34956e3072"
|
||||
},
|
||||
"source6": {
|
||||
"path": "web/app/public/vendor/blender/web_engine.wasm",
|
||||
"sha256": "66fc59cba55a8c17d398b74d12ea4a9f09746c0f30c40f579c44aa34956e3072"
|
||||
},
|
||||
"source7": {
|
||||
"path": "web/app/public/wasm-module-manifest.json",
|
||||
"sha256": "d0743b712bac64fb15e37561fb09e79bf908b532bb73132c544784b2e1158dbf"
|
||||
},
|
||||
"source8": {
|
||||
"path": "web/app/public/vendor/blender/modules/single/web_engine.secondary.wasm",
|
||||
"sha256": "b862e9be41ce56d59c08e3be053498abf7ef8ba5b62b8e844f28c4030ed12390"
|
||||
},
|
||||
"source9": {
|
||||
"path": "web/app/public/vendor/blender/modules/pthread/web_engine.secondary.wasm",
|
||||
"sha256": "93a44bbb96c751218e4c00d479e4c14358122a389acca16205b1e4d0dc5f9476"
|
||||
},
|
||||
"evidence1": {
|
||||
"path": "tests/golden/WBV2-P1278-001/mesh-topology-production.json",
|
||||
"sha256": "ffb7c3b56635f24599a66fb3ff7382436b7ad0d6bba347b06dd2e16b32823ea8"
|
||||
},
|
||||
"moduleReceipt": {
|
||||
"path": "tests/golden/WBV2-P1278-001/module-receipt.json",
|
||||
"sha256": "2c05731999715864c51a1c7d4e8e41f8bc731f88ae01e4abd46c8c05275d61fd"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P1278-001.md",
|
||||
"sha256": "91b24ff9e64b7f9cb8b252e8e56a789c4a88aec47bdfe87e6588bf44ce3cecae"
|
||||
},
|
||||
"log": {
|
||||
"path": "tests/golden/WBV2-P1278-001/module-run.log",
|
||||
"sha256": "3755b6962ab07ff1894864dc361c18ae714c22a7d954c3ceb13902d6a4c692fd"
|
||||
},
|
||||
"plan": {
|
||||
"path": "tests/golden/WBV2-P1278-000/module-execution-plan.json",
|
||||
"sha256": "a2c798bff5538b5ca2c885d724b86c563a2b00821d64beb96aa616f6b460c549"
|
||||
},
|
||||
"taskContext": {
|
||||
"path": "tests/golden/WBV2-P1278-001/task-context.json",
|
||||
"sha256": "13dbc4df2acbb4f0841e400de58e671657b6d6d644ede522f61938a9055b0ec8"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"moduleId": "MESH_INSET_OPERATOR_BATCH",
|
||||
"batchId": "WBV2-P1278-001:MESH_INSET_OPERATOR_BATCH:152b6ff293359f2b",
|
||||
"selectedRecordIds": [
|
||||
"operator:MESH_OT_inset"
|
||||
],
|
||||
"sourceBacked": true,
|
||||
"positiveCases": 3,
|
||||
"negativeCases": 3,
|
||||
"recoveryCases": 3,
|
||||
"commandCount": 4,
|
||||
"reusedReceiptCount": 1,
|
||||
"sourceUnchanged": true,
|
||||
"fullFamilyParity": false,
|
||||
"dynamicInventoryPath": "tests/golden/WBV2/dynamic-inventory.json",
|
||||
"dynamicSourceTreeSha256": "600cb3dd441f09d9655b740735fbf8fa49ad6c14d308c68d59a29f9c338e4202",
|
||||
"dynamicUnitCount": 3745,
|
||||
"dynamicVerifiedUnits": 1012,
|
||||
"dynamicUnverifiedUnits": 2733,
|
||||
"planningEstimate": 5200,
|
||||
"historicalInventoryTotal": 6900,
|
||||
"historicalEffectiveCompleted": 290,
|
||||
"historicalEffectivePending": 6609,
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"nextTask": null
|
||||
}
|
||||
79
tests/golden/WBV2-P1278-001/mesh-topology-production.json
Normal file
79
tests/golden/WBV2-P1278-001/mesh-topology-production.json
Normal file
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1278-001",
|
||||
"operation": "MESH_TOPOLOGY_OPERATION_FAMILY_CHROMIUM",
|
||||
"browser": "chromium",
|
||||
"queueMutation": false,
|
||||
"fixture": "tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend",
|
||||
"fixtureSha256": "1a9a894c4106d73a4533485d9fdddfe2883f75e4692b8e53dc174308e12fe60b",
|
||||
"sourceUnits": [
|
||||
"operator:MESH_OT_inset"
|
||||
],
|
||||
"sourceSha256": "1a9a894c4106d73a4533485d9fdddfe2883f75e4692b8e53dc174308e12fe60b",
|
||||
"operations": [
|
||||
{
|
||||
"operation": "INSET",
|
||||
"meshId": "mesh:WBV2P2003InsetMesh",
|
||||
"baseRevision": 1,
|
||||
"afterRevision": 2,
|
||||
"before": {
|
||||
"id": "mesh:WBV2P2003InsetMesh",
|
||||
"vertexCount": 4,
|
||||
"edgeCount": 4,
|
||||
"faceCount": 1,
|
||||
"triangleCount": 2,
|
||||
"topology": "triangles"
|
||||
},
|
||||
"after": {
|
||||
"id": "mesh:WBV2P2003InsetMesh",
|
||||
"vertexCount": 8,
|
||||
"edgeCount": 12,
|
||||
"faceCount": 5,
|
||||
"triangleCount": 10,
|
||||
"topology": "triangles"
|
||||
},
|
||||
"reopened": {
|
||||
"id": "mesh:WBV2P2003InsetMesh",
|
||||
"vertexCount": 8,
|
||||
"edgeCount": 12,
|
||||
"faceCount": 5,
|
||||
"triangleCount": 10,
|
||||
"topology": "triangles"
|
||||
},
|
||||
"savedSha256": "a789d7c8e538288d26026d2c1ecd58b57bd3a48d24aec47c3ae8c6de3051d6c4",
|
||||
"exactSaveReopen": true
|
||||
}
|
||||
],
|
||||
"negative": {
|
||||
"invalidSelection": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "meshEdit contains an invalid selection mode or element index"
|
||||
},
|
||||
"incompatible": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "MESH_EDIT_CONFIGURATION_UNSUPPORTED: operation and selection mode are incompatible"
|
||||
},
|
||||
"stale": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "REVISION_CONFLICT: command base revision does not match the current SceneIR"
|
||||
},
|
||||
"before": {
|
||||
"id": "mesh:WBV2P2003MergeMesh",
|
||||
"vertexCount": 4,
|
||||
"edgeCount": 4,
|
||||
"faceCount": 1,
|
||||
"triangleCount": 2,
|
||||
"topology": "triangles"
|
||||
},
|
||||
"after": {
|
||||
"id": "mesh:WBV2P2003MergeMesh",
|
||||
"vertexCount": 4,
|
||||
"edgeCount": 4,
|
||||
"faceCount": 1,
|
||||
"triangleCount": 2,
|
||||
"topology": "triangles"
|
||||
},
|
||||
"revisionBefore": 1,
|
||||
"revisionAfter": 1
|
||||
}
|
||||
}
|
||||
134
tests/golden/WBV2-P1278-001/module-receipt.json
Normal file
134
tests/golden/WBV2-P1278-001/module-receipt.json
Normal file
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1278-001",
|
||||
"operation": "MODULE_FUNCTION_EXECUTION",
|
||||
"phase": "CONTINUE",
|
||||
"moduleId": "MESH_INSET_OPERATOR_BATCH",
|
||||
"batchId": "WBV2-P1278-001:MESH_INSET_OPERATOR_BATCH:152b6ff293359f2b",
|
||||
"selectedRecordIds": [
|
||||
"operator:MESH_OT_inset"
|
||||
],
|
||||
"commandBudget": {
|
||||
"maxCommands": 48,
|
||||
"maxReadCommands": 16,
|
||||
"commandCount": 4,
|
||||
"readCommandCount": 0,
|
||||
"withinBudget": true
|
||||
},
|
||||
"status": "PASS",
|
||||
"source": {
|
||||
"paths": [
|
||||
"blender-5.2.0/source/blender/editors/mesh/mesh_ops.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"web/tests/e2e/wbv2-mesh-topology-production.spec.ts",
|
||||
"tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend",
|
||||
"web/app/src/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/wasm-module-manifest.json",
|
||||
"web/app/public/vendor/blender/modules/single/web_engine.secondary.wasm",
|
||||
"web/app/public/vendor/blender/modules/pthread/web_engine.secondary.wasm"
|
||||
],
|
||||
"auditedPaths": [
|
||||
"blender-5.2.0/source/blender/editors/mesh/mesh_ops.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"
|
||||
],
|
||||
"before": {
|
||||
"blender-5.2.0/source/blender/editors/mesh/mesh_ops.cc": "d475de09707f939e958d66a5dd78f8ef2d6177073e66cfe27d7ab7b3207adf04",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp": "8a9b46e8f5f9c4b30ad7818fac6fbd64b20dc2d0a962630f50c8f352bdf230d3"
|
||||
},
|
||||
"after": {
|
||||
"blender-5.2.0/source/blender/editors/mesh/mesh_ops.cc": "d475de09707f939e958d66a5dd78f8ef2d6177073e66cfe27d7ab7b3207adf04",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp": "8a9b46e8f5f9c4b30ad7818fac6fbd64b20dc2d0a962630f50c8f352bdf230d3"
|
||||
},
|
||||
"unchanged": true
|
||||
},
|
||||
"reusedReceipts": [
|
||||
{
|
||||
"manifest": "tests/golden/WBV2-P1107-000/manifest.json",
|
||||
"report": "tests/golden/WBV2-P1107-000/module-receipt.json",
|
||||
"manifestSha256": "a53ebdc52db5dcf27d44e938e5551f1ee2adae8e46c3fe8661604ee6b1000f8c",
|
||||
"reportSha256": "6dd419799e1a4b9251328d9496f2459d148cd89118740a06b0ee6ffb78e0b1d2"
|
||||
}
|
||||
],
|
||||
"cases": {
|
||||
"positive": [
|
||||
"MESH_OT_inset type is read from Blender Main",
|
||||
"shared RNA metadata is preserved",
|
||||
"save/reopen preserves the batch metadata"
|
||||
],
|
||||
"negative": [
|
||||
"malformed blend is rejected without Main mutation",
|
||||
"unsupported batch data fails closed",
|
||||
"non-finite metadata is not synthesized"
|
||||
],
|
||||
"recovery": [
|
||||
"save/reopen",
|
||||
"worker termination",
|
||||
"deterministic second read"
|
||||
]
|
||||
},
|
||||
"commands": [
|
||||
{
|
||||
"command": "source tools/web/emscripten-env.sh && cmake --build build_web_blender6 --target web_engine -- -j8 && cp build_web_blender6/bin/web_engine.wasm web/app/src/vendor/blender/web_engine.wasm && cp build_web_blender6/bin/web_engine.wasm web/app/public/vendor/blender/web_engine.wasm && node tools/web/split-wbv2-wasm.mjs --input web/app/public/vendor/blender/web_engine.wasm --output-dir web/app/public/vendor/blender/modules/single --split-funcs web_engine_get_live_handles && node tools/web/split-wbv2-wasm.mjs --input web/app/public/vendor/blender/pthread/web_engine.wasm --output-dir web/app/public/vendor/blender/modules/pthread --split-funcs web_engine_get_live_handles",
|
||||
"exitCode": 0,
|
||||
"durationMs": 1147
|
||||
},
|
||||
{
|
||||
"command": "npm --prefix web run typecheck",
|
||||
"exitCode": 0,
|
||||
"durationMs": 3333
|
||||
},
|
||||
{
|
||||
"command": "npm --prefix web run build",
|
||||
"exitCode": 0,
|
||||
"durationMs": 3905
|
||||
},
|
||||
{
|
||||
"command": "WBV2_BATCH_TASK=WBV2-P1278-001 WBV2_BATCH_PRODUCTION=tests/golden/WBV2-P1278-001/mesh-topology-production.json WBV2_BATCH_FIXTURE=tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend WBV2_BATCH_OPERATION=INSET WBV2_BATCH_TYPES='[]' WBV2_BATCH_UNITS='[\"operator:MESH_OT_inset\"]' WEB_TEST_PORT=5371 npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-mesh-topology-production.spec.ts",
|
||||
"exitCode": 0,
|
||||
"durationMs": 3103
|
||||
}
|
||||
],
|
||||
"verification": {
|
||||
"required": [
|
||||
"sourceHash",
|
||||
"wasmBuild",
|
||||
"positiveMainMutation",
|
||||
"negativeNoMutation",
|
||||
"undoRedo",
|
||||
"saveReopen",
|
||||
"aggregateManifest"
|
||||
],
|
||||
"chromiumOnly": true,
|
||||
"fullFamilyParity": false
|
||||
},
|
||||
"efficiency": {
|
||||
"existingEvidenceReused": false,
|
||||
"skippedCommands": 0,
|
||||
"totalDurationMs": 11488,
|
||||
"reusePolicy": "hash_bound_receipt"
|
||||
},
|
||||
"inventory": {
|
||||
"historical": {
|
||||
"path": "tests/golden/WBV2-P0-002/parity-map.json",
|
||||
"sha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"total": 6900,
|
||||
"legacyCompleted": 281,
|
||||
"legacyPending": 6618,
|
||||
"effectiveCompleted": 290,
|
||||
"effectivePending": 6609,
|
||||
"mutation": "forbidden_by_module_execution"
|
||||
},
|
||||
"dynamic": {
|
||||
"path": "tests/golden/WBV2/dynamic-inventory.json",
|
||||
"sha256": "ae4044c0adb2e94cecf388dbde7c3d46fac3b23df28360e72eb524d6c870d23a",
|
||||
"sourceTreeSha256": "600cb3dd441f09d9655b740735fbf8fa49ad6c14d308c68d59a29f9c338e4202",
|
||||
"unitCount": 3745,
|
||||
"planningEstimate": 5200,
|
||||
"hardTarget": false,
|
||||
"verifiedUnits": 1012,
|
||||
"unverifiedUnits": 2733
|
||||
}
|
||||
},
|
||||
"nextTask": null
|
||||
}
|
||||
83
tests/golden/WBV2-P1278-001/module-run.log
Normal file
83
tests/golden/WBV2-P1278-001/module-run.log
Normal file
@@ -0,0 +1,83 @@
|
||||
> source tools/web/emscripten-env.sh && cmake --build build_web_blender6 --target web_engine -- -j8 && cp build_web_blender6/bin/web_engine.wasm web/app/src/vendor/blender/web_engine.wasm && cp build_web_blender6/bin/web_engine.wasm web/app/public/vendor/blender/web_engine.wasm && node tools/web/split-wbv2-wasm.mjs --input web/app/public/vendor/blender/web_engine.wasm --output-dir web/app/public/vendor/blender/modules/single --split-funcs web_engine_get_live_handles && node tools/web/split-wbv2-wasm.mjs --input web/app/public/vendor/blender/pthread/web_engine.wasm --output-dir web/app/public/vendor/blender/modules/pthread --split-funcs web_engine_get_live_handles
|
||||
ninja: no work to do.
|
||||
{
|
||||
"status": "PASS",
|
||||
"input": "web/app/public/vendor/blender/web_engine.wasm",
|
||||
"splitFunctions": [
|
||||
"web_engine_get_live_handles"
|
||||
],
|
||||
"primary": {
|
||||
"path": "web/app/public/vendor/blender/modules/single/web_engine.primary.wasm",
|
||||
"bytes": 11746913,
|
||||
"sha256": "b8e4b1f3932e5dfeca0698cbc52c1e4a2c9a6fbc3f90fbad0924c9082529649d"
|
||||
},
|
||||
"secondary": {
|
||||
"path": "web/app/public/vendor/blender/modules/single/web_engine.secondary.wasm",
|
||||
"bytes": 80,
|
||||
"sha256": "b862e9be41ce56d59c08e3be053498abf7ef8ba5b62b8e844f28c4030ed12390"
|
||||
}
|
||||
}
|
||||
{
|
||||
"status": "PASS",
|
||||
"input": "web/app/public/vendor/blender/pthread/web_engine.wasm",
|
||||
"splitFunctions": [
|
||||
"web_engine_get_live_handles"
|
||||
],
|
||||
"primary": {
|
||||
"path": "web/app/public/vendor/blender/modules/pthread/web_engine.primary.wasm",
|
||||
"bytes": 383080,
|
||||
"sha256": "8da4edd76f69803af66f8684a8e7a59cca33ee7ed2337bc15d1a6369d5269e47"
|
||||
},
|
||||
"secondary": {
|
||||
"path": "web/app/public/vendor/blender/modules/pthread/web_engine.secondary.wasm",
|
||||
"bytes": 8,
|
||||
"sha256": "93a44bbb96c751218e4c00d479e4c14358122a389acca16205b1e4d0dc5f9476"
|
||||
}
|
||||
}
|
||||
|
||||
> npm --prefix web run typecheck
|
||||
|
||||
> blender-web-editor@0.1.0-rc.1 typecheck
|
||||
> tsc -p tsconfig.json --noEmit
|
||||
|
||||
|
||||
> npm --prefix web run build
|
||||
|
||||
> blender-web-editor@0.1.0-rc.1 build
|
||||
> tsc -p tsconfig.json && vite build --config app/vite.config.ts
|
||||
|
||||
vite v8.2.0 building client environment for production...
|
||||
[2K
|
||||
transforming...✓ 102 modules transformed.
|
||||
rendering chunks...
|
||||
computing gzip size...
|
||||
dist/index.html 0.58 kB │ gzip: 0.35 kB
|
||||
dist/assets/storage.worker-D9TqXsGS.js 66.59 kB
|
||||
dist/assets/web-engine.worker-ZZYyTnr9.js 365.44 kB
|
||||
dist/assets/viewport-render.worker-BKnJyAEz.js 634.08 kB
|
||||
dist/assets/web_engine-C04Dp4ba.wasm 16,243.50 kB │ gzip: 3,858.52 kB
|
||||
dist/assets/index-BgTbQCE2.css 15.35 kB │ gzip: 3.91 kB
|
||||
dist/assets/index-CKyN7I-M.js 1,190.53 kB │ gzip: 316.75 kB
|
||||
|
||||
✓ built in 471ms
|
||||
[plugin rolldown:vite-resolve] Module "module" has been externalized for browser compatibility, imported by "/home/mes123456/workinf_Blender_Wasm/web/app/src/vendor/blender/web_engine.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
|
||||
[plugin builtin:vite-reporter]
|
||||
(!) Some chunks are larger than 500 kB after minification. Consider:
|
||||
- Using dynamic import() to code-split the application
|
||||
- Use build.rolldownOptions.output.codeSplitting to improve chunking: https://rolldown.rs/reference/OutputOptions.codeSplitting
|
||||
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
|
||||
|
||||
> WBV2_BATCH_TASK=WBV2-P1278-001 WBV2_BATCH_PRODUCTION=tests/golden/WBV2-P1278-001/mesh-topology-production.json WBV2_BATCH_FIXTURE=tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend WBV2_BATCH_OPERATION=INSET WBV2_BATCH_TYPES='[]' WBV2_BATCH_UNITS='["operator:MESH_OT_inset"]' WEB_TEST_PORT=5371 npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-mesh-topology-production.spec.ts
|
||||
|
||||
> blender-web-editor@0.1.0-rc.1 test:e2e
|
||||
> playwright test --config playwright.config.ts --workers=1 tests/e2e/wbv2-mesh-topology-production.spec.ts
|
||||
|
||||
|
||||
Running 1 test using 1 worker
|
||||
|
||||
✓ 1 tests/e2e/wbv2-mesh-topology-production.spec.ts:17:1 › WBV2-P11-001 executes the six Mesh topology operations through compiled WASM Main (2.0s)
|
||||
|
||||
1 passed (2.8s)
|
||||
[WebServer] (node:1604785) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
[WebServer] (Use `node --trace-warnings ...` to show where the warning was created)
|
||||
(node:1604839) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
217
tests/golden/WBV2-P1278-001/task-context.json
Normal file
217
tests/golden/WBV2-P1278-001/task-context.json
Normal file
@@ -0,0 +1,217 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1278-001",
|
||||
"parentTask": "WBV2-P1278-000",
|
||||
"status": "in_progress",
|
||||
"goal": "以一个共享 Blender Main reader、WASM build、Worker 路由和 Chromium receipt 批量验证 MESH_OT_inset 的真实 modifier/RNA 元数据。",
|
||||
"scope": {
|
||||
"gap": "capability:MESH_INSET_OPERATOR_BATCH",
|
||||
"ownerFamily": "MESH",
|
||||
"implementationClass": "LOCAL_EXACT"
|
||||
},
|
||||
"commands": [
|
||||
"node tools/web/check-task-context.mjs --task WBV2-P1278-001 --write"
|
||||
],
|
||||
"inputPaths": [],
|
||||
"inputMetadata": {
|
||||
"docs/EXECUTION_QUEUE.md": {
|
||||
"path": "docs/EXECUTION_QUEUE.md",
|
||||
"exists": true,
|
||||
"bytes": 4030,
|
||||
"mtime_ns": "1788510966776334773",
|
||||
"sha256": "1748c31e601c015630db88819d0d69e95db87a32d2a6aff21c6596d9c114fc76"
|
||||
},
|
||||
"docs/tasks/WBV2-P1278-001.md": {
|
||||
"path": "docs/tasks/WBV2-P1278-001.md",
|
||||
"exists": true,
|
||||
"bytes": 2224,
|
||||
"mtime_ns": "1788510954782506419",
|
||||
"sha256": "ce40ea5c2f9f5580ec65676bd3bce00ad74393652bdbfdf4204f04b70678dd83"
|
||||
},
|
||||
"tests/golden/WBV2-P1278-000/manifest.json": {
|
||||
"path": "tests/golden/WBV2-P1278-000/manifest.json",
|
||||
"exists": true,
|
||||
"bytes": 1514,
|
||||
"mtime_ns": "1788510954783411089",
|
||||
"sha256": "9bc38c14c8fba99ba2c076408a07f7f3b553c17419b098bff4760bf1ff555e96"
|
||||
},
|
||||
"docs/status/WBV2-P1278-000.md": {
|
||||
"path": "docs/status/WBV2-P1278-000.md",
|
||||
"exists": true,
|
||||
"bytes": 358,
|
||||
"mtime_ns": "1788510954782670097",
|
||||
"sha256": "50115f459426eeb565ed5081d57917500c46d2ed8b832392b503ae3d4d3faddd"
|
||||
}
|
||||
},
|
||||
"inputSelection": {
|
||||
"schemaVersion": 1,
|
||||
"limits": {
|
||||
"maxFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextRemainingBytes": 1778,
|
||||
"contextRemainingTokens": 443
|
||||
},
|
||||
"source": {
|
||||
"bytes": 8126,
|
||||
"tokens": 2033
|
||||
},
|
||||
"selected": [],
|
||||
"excluded": [
|
||||
{
|
||||
"path": "blender-5.2.0/source/blender/modifiers/intern/",
|
||||
"bytes": 10155,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_modifier.cc",
|
||||
"bytes": 521651,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"bytes": 314614,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend",
|
||||
"bytes": 88023,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "web/tests/e2e/wbv2-mesh-topology-production.spec.ts",
|
||||
"bytes": 7246,
|
||||
"reason": "CONTEXT_REMAINING_SPACE"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1278-001/module-receipt.json",
|
||||
"bytes": 5393,
|
||||
"reason": "CONTEXT_REMAINING_SPACE"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1278-001/modifier-reader-batch-production.json",
|
||||
"bytes": null,
|
||||
"reason": "MISSING_PATH"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1278-001/manifest.json",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P1278-001.md",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
}
|
||||
],
|
||||
"totals": {
|
||||
"files": 0,
|
||||
"bytes": 0,
|
||||
"tokens": 0
|
||||
}
|
||||
},
|
||||
"exitCriteria": [
|
||||
"source and protocol hashes are bound",
|
||||
"every selected Main reader type is proven",
|
||||
"negative no-mutation and recovery are proven",
|
||||
"Chromium and save/reopen evidence are exact"
|
||||
],
|
||||
"nextTask": null,
|
||||
"sourceDocuments": {
|
||||
"queue": "docs/EXECUTION_QUEUE.md",
|
||||
"taskCard": "docs/tasks/WBV2-P1278-001.md",
|
||||
"taskIndex": "tests/golden/WBV2/task-index.json",
|
||||
"parentManifest": "tests/golden/WBV2-P1278-000/manifest.json",
|
||||
"parentStatus": "docs/status/WBV2-P1278-000.md"
|
||||
},
|
||||
"readPolicy": {
|
||||
"required": [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"docs/tasks/WBV2-P1278-001.md",
|
||||
"tests/golden/WBV2-P1278-000/manifest.json",
|
||||
"docs/status/WBV2-P1278-000.md"
|
||||
],
|
||||
"machineOnly": [
|
||||
"tests/golden/WBV2/task-index.json",
|
||||
"tests/golden/M15-03A/task-catalog.jsonl"
|
||||
],
|
||||
"optionalByNeed": [
|
||||
"docs/WEB_BLENDER_MODELER_V1_SCOPE.md",
|
||||
"任务卡列出的精确协议/生产路径",
|
||||
"任务卡明确命名的长期计划小节"
|
||||
],
|
||||
"forbiddenByDefault": [
|
||||
"完整 CURRENT_EXECUTION_PLAN.md",
|
||||
"完整 PROJECT_STATUS_AND_NEXT_WORK.md",
|
||||
"全部 docs/status/*.md",
|
||||
"完整 parity/WBS 计划",
|
||||
"README 历史和 test-results/"
|
||||
]
|
||||
},
|
||||
"parent": {
|
||||
"manifest": {
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1278-000",
|
||||
"parentTask": "WBV2-P1277-001",
|
||||
"status": "done",
|
||||
"nextTask": "WBV2-P1278-001",
|
||||
"artifactCount": 4
|
||||
},
|
||||
"statusSummary": [
|
||||
"# WBV2-P1278-000 status",
|
||||
"- task: `WBV2-P1278-000`; parent: `WBV2-P1277-001`; status: `done`",
|
||||
"- taskClass: `QUEUE_ENABLEMENT`; no modifier-family parity completion claimed",
|
||||
"- source-backed batch authorized: `MESH_INSET_OPERATOR_BATCH` (1 units)",
|
||||
"- dynamic inventory: `3745` units; verified `1011`; unverified `2734`; bound delta `0`",
|
||||
"- nextTask: `WBV2-P1278-001`"
|
||||
]
|
||||
},
|
||||
"budgets": {
|
||||
"queueBytes": 4096,
|
||||
"taskBytes": 2224,
|
||||
"parentManifestBytes": 24576,
|
||||
"parentStatusBytes": 6144,
|
||||
"evidenceFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextTokens": 3500,
|
||||
"contextEnvelopeTokens": 1024,
|
||||
"taskLines": 49,
|
||||
"taskTokens": 556
|
||||
},
|
||||
"size": {
|
||||
"documents": [
|
||||
{
|
||||
"path": "docs/EXECUTION_QUEUE.md",
|
||||
"bytes": 4030,
|
||||
"lines": 58,
|
||||
"tokens": 1008
|
||||
},
|
||||
{
|
||||
"path": "docs/tasks/WBV2-P1278-001.md",
|
||||
"bytes": 2224,
|
||||
"lines": 49,
|
||||
"tokens": 556
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1278-000/manifest.json",
|
||||
"bytes": 1514,
|
||||
"lines": 47,
|
||||
"tokens": 379
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P1278-000.md",
|
||||
"bytes": 358,
|
||||
"lines": 8,
|
||||
"tokens": 90
|
||||
}
|
||||
],
|
||||
"sourceTokens": 2033,
|
||||
"evidenceFiles": 0,
|
||||
"evidenceBytes": 0,
|
||||
"evidenceTokens": 0,
|
||||
"totalTokens": 2033,
|
||||
"reservedEnvelopeTokens": 1024,
|
||||
"estimatedContextTokens": 3057,
|
||||
"serializedContextTokens": 650,
|
||||
"withinBudget": true
|
||||
}
|
||||
}
|
||||
@@ -331,3 +331,7 @@
|
||||
{"id":"WBV2-P1275-001","gapId":"OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH","ownerFamily":"OBJECT","sourceTask":"1275","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["source and protocol hashes are bound","every selected Main reader type is proven","negative no-mutation and recovery are proven","Chromium and save/reopen evidence are exact"]}
|
||||
{"id":"WBV2-P1276-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1276","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
|
||||
{"id":"WBV2-P1276-001","gapId":"OBJECT_TRANSFORM_APPLY_OPERATOR_BATCH","ownerFamily":"OBJECT","sourceTask":"1276","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["source and protocol hashes are bound","every selected Main reader type is proven","negative no-mutation and recovery are proven","Chromium and save/reopen evidence are exact"]}
|
||||
{"id":"WBV2-P1277-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1277","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
|
||||
{"id":"WBV2-P1277-001","gapId":"MESH_BEVEL_OPERATOR_BATCH","ownerFamily":"MESH","sourceTask":"1277","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["source and protocol hashes are bound","every selected Main reader type is proven","negative no-mutation and recovery are proven","Chromium and save/reopen evidence are exact"]}
|
||||
{"id":"WBV2-P1278-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1278","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
|
||||
{"id":"WBV2-P1278-001","gapId":"MESH_INSET_OPERATOR_BATCH","ownerFamily":"MESH","sourceTask":"1278","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["source and protocol hashes are bound","every selected Main reader type is proven","negative no-mutation and recovery are proven","Chromium and save/reopen evidence are exact"]}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -5,16 +5,22 @@ import { expect, test } from "@playwright/test";
|
||||
|
||||
const root = path.resolve(import.meta.dirname, "../../..");
|
||||
const evidenceRoot = path.join(root, "tests/golden/WBV2-P11-001");
|
||||
const fixturePath = path.join(root, "tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend");
|
||||
const fixtureName = process.env.WBV2_BATCH_FIXTURE ?? "tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend";
|
||||
const fixturePath = path.join(root, fixtureName);
|
||||
const fixture = fs.readFileSync(fixturePath);
|
||||
const sourceSha256 = crypto.createHash("sha256").update(fixture).digest("hex");
|
||||
const batchOperation = process.env.WBV2_BATCH_OPERATION;
|
||||
const task = process.env.WBV2_BATCH_TASK ?? "WBV2-P11-001";
|
||||
const productionPath = process.env.WBV2_BATCH_PRODUCTION ?? `tests/golden/${task}/mesh-topology-production.json`;
|
||||
const sourceUnits = JSON.parse(process.env.WBV2_BATCH_UNITS ?? "[]") as string[];
|
||||
|
||||
test("WBV2-P11-001 executes the six Mesh topology operations through compiled WASM Main", async ({ page }) => {
|
||||
test.setTimeout(240_000);
|
||||
await page.goto("/");
|
||||
const result = await page.evaluate(async (input) => {
|
||||
const { WebEngineClient } = await import("/src/engine-client/WebEngineClient.ts");
|
||||
const operations = [
|
||||
const batchOperation = input.batchOperation;
|
||||
const allOperations = [
|
||||
{ label: "MERGE", meshId: "mesh:WBV2P2003MergeMesh", selectionMode: "VERT", elementIndices: [0, 1] },
|
||||
{ label: "DISSOLVE", meshId: "mesh:WBV2P2003DissolveMesh", selectionMode: "EDGE", elementIndices: [0] },
|
||||
{ label: "EXTRUDE", meshId: "mesh:WBV2P2003ExtrudeMesh", selectionMode: "FACE", elementIndices: [0], offset: [0, 0, 1] },
|
||||
@@ -22,6 +28,7 @@ test("WBV2-P11-001 executes the six Mesh topology operations through compiled WA
|
||||
{ label: "BEVEL", meshId: "mesh:WBV2P2003BevelMesh", selectionMode: "EDGE", elementIndices: [0], amount: 0.1, segments: 2 },
|
||||
{ label: "LOOP_CUT", meshId: "mesh:WBV2P2003LoopCutMesh", selectionMode: "EDGE", elementIndices: [0], segments: 1 },
|
||||
];
|
||||
const operations = batchOperation ? allOperations.filter((operation) => operation.label === batchOperation) : allOperations;
|
||||
const summary = (snapshot: any, meshId: string) => {
|
||||
const mesh = snapshot.meshes.find((candidate: any) => candidate.id === meshId);
|
||||
if (!mesh) throw new Error(`mesh missing: ${meshId}`);
|
||||
@@ -69,15 +76,14 @@ test("WBV2-P11-001 executes the six Mesh topology operations through compiled WA
|
||||
return { sourceSha256: input.sourceSha256, operations: positive, negative: { invalidSelection, incompatible, stale, before, after, revisionBefore: revision, revisionAfter: (await negativeClient.snapshot()).snapshot.revision } };
|
||||
}
|
||||
finally { negativeClient.terminate(); }
|
||||
}, { bytes: Array.from(fixture), sourceSha256 });
|
||||
}, { bytes: Array.from(fixture), sourceSha256, batchOperation });
|
||||
|
||||
fs.mkdirSync(evidenceRoot, { recursive: true });
|
||||
const output = process.env.WBV2_MESH_TOPOLOGY_REPORT ?? "mesh-topology-production.json";
|
||||
fs.writeFileSync(path.join(evidenceRoot, output), `${JSON.stringify({ schemaVersion: 1, task: "WBV2-P11-001", operation: "MESH_TOPOLOGY_OPERATION_FAMILY_CHROMIUM", browser: "chromium", queueMutation: false, ...result }, null, 2)}\n`);
|
||||
fs.mkdirSync(path.dirname(path.join(root, productionPath)), { recursive: true });
|
||||
fs.writeFileSync(path.join(root, productionPath), `${JSON.stringify({ schemaVersion: 1, task, operation: "MESH_TOPOLOGY_OPERATION_FAMILY_CHROMIUM", browser: "chromium", queueMutation: false, fixture: fixtureName, fixtureSha256: sourceSha256, sourceUnits, ...result }, null, 2)}\n`);
|
||||
expect(result.sourceSha256).toBe(sourceSha256);
|
||||
expect(result.operations).toHaveLength(6);
|
||||
expect(result.operations).toHaveLength(batchOperation ? 1 : 6);
|
||||
expect(result.operations.every((entry) => entry.afterRevision === entry.baseRevision + 1 && entry.exactSaveReopen && entry.after.vertexCount > 0 && entry.after.edgeCount > 0 && entry.after.faceCount > 0)).toBe(true);
|
||||
expect(result.operations.map((entry) => entry.operation)).toEqual(["MERGE", "DISSOLVE", "EXTRUDE", "INSET", "BEVEL", "LOOP_CUT"]);
|
||||
expect(result.operations.map((entry) => entry.operation)).toEqual(batchOperation ? [batchOperation] : ["MERGE", "DISSOLVE", "EXTRUDE", "INSET", "BEVEL", "LOOP_CUT"]);
|
||||
expect(result.negative.invalidSelection?.code).toBe("INVALID_ARGUMENT");
|
||||
expect(result.negative.incompatible?.code).toBe("INVALID_ARGUMENT");
|
||||
expect(result.negative.stale?.code).toBe("INVALID_ARGUMENT");
|
||||
|
||||
Reference in New Issue
Block a user