chore(web): continuous handoff WBV2-P1158-001
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
| 字段 | 值 |
|
||||
| --- | --- |
|
||||
| 里程碑 | WBV2 capability workflow |
|
||||
| 当前任务 | `WBV2-P1157-001` |
|
||||
| parent manifest | `tests/golden/WBV2-P1157-000/manifest.json` |
|
||||
| 任务卡 | [`tasks/WBV2-P1157-001.md`](tasks/WBV2-P1157-001.md) |
|
||||
| 当前任务 | `WBV2-P1158-001` |
|
||||
| parent manifest | `tests/golden/WBV2-P1158-000/manifest.json` |
|
||||
| 任务卡 | [`tasks/WBV2-P1158-001.md`](tasks/WBV2-P1158-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-P1158-001.md
Normal file
9
docs/status/WBV2-P1158-001.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# WBV2-P1158-001 status
|
||||
|
||||
- task: `WBV2-P1158-001`; module: `LINE_STYLE_READER_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 `473`; unverified `3272`; planning estimate `5200` (non-binding); this-segment binding delta: `6`
|
||||
- historical 6900-entry inventory remains read-only; full-family parity: `false`
|
||||
- nextTask: `NONE`
|
||||
45
docs/tasks/WBV2-P1158-001.md
Normal file
45
docs/tasks/WBV2-P1158-001.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# WBV2-P1158-001: verify line style reader batch
|
||||
|
||||
- task: WBV2-P1158-001
|
||||
- parent: WBV2-P1158-000
|
||||
- status: in_progress
|
||||
- gap: capability:LINE_STYLE_READER_BATCH
|
||||
- ownerFamily: DRAWING
|
||||
- targetImplementationClass: LOCAL_EXACT
|
||||
- Implementation entrypoint: `node tools/web/run-wbv2-module-task.mjs --task WBV2-P1158-001 --write`
|
||||
|
||||
## 目标
|
||||
|
||||
以一个共享 Blender Main reader、WASM build、Worker 路由和 Chromium receipt 批量验证 RNA-only reader units 的真实 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/M16-GAP-00008-datablock-FreestyleLineStyle.blend`
|
||||
- Chromium test: `web/tests/e2e/wbv2-line-style-reader-production.spec.ts`
|
||||
- Selected modifier units: none
|
||||
- Selected RNA units: `rna-struct:FreestyleLineStyle`, `rna-struct:LineStyleModifier`, `rna-struct:LineStyleAlphaModifier`, `rna-struct:LineStyleColorModifier`, `rna-struct:LineStyleGeometryModifier`, `rna-struct:LineStyleThicknessModifier`
|
||||
|
||||
## 验收
|
||||
|
||||
- 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-P1158-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-P1158-001/module-receipt.json`
|
||||
- Aggregate production evidence: `tests/golden/WBV2-P1158-001/modifier-reader-batch-production.json`
|
||||
- Manifest: `tests/golden/WBV2-P1158-001/manifest.json`
|
||||
- Status: `docs/status/WBV2-P1158-001.md`
|
||||
- Rollback: restore WBV2-P1158-000 as queue parent without rewriting prior evidence.
|
||||
42
tests/golden/WBV2-P1158-000/manifest.json
Normal file
42
tests/golden/WBV2-P1158-000/manifest.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1158-000",
|
||||
"parentTask": "WBV2-P1157-001",
|
||||
"operation": "AUTHORIZE_SOURCE_BACKED_MODULE_BATCH",
|
||||
"status": "done",
|
||||
"enablingTask": true,
|
||||
"parityStateChange": false,
|
||||
"runtime": "MODULE_EXECUTION_QUEUE_BRIDGE",
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P1157-001/manifest.json",
|
||||
"sha256": "f0e7874f61631672e957bf657d0d9eeb054aa08791cb0252e4dd8afb3e5f2ca6"
|
||||
},
|
||||
"plan": {
|
||||
"path": "tests/golden/WBV2-P1158-000/module-execution-plan.json",
|
||||
"sha256": "6663f7226c7da60f788f01d030e4b0066096b9be1c65fc110f0d799e3a3c70da"
|
||||
},
|
||||
"report": {
|
||||
"path": "tests/golden/WBV2-P1158-000/successor-authorization-report.json",
|
||||
"sha256": "bc85edfb6b8c8e585947dc4e3876bebe7dd9f878fe2043e6720cb427529bed19"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P1158-000.md",
|
||||
"sha256": "54c92c683cf06d7f7c98da4ab21ddc3d4270747f2f1d56754a55f2a5f6e2c00a"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"sourceBackedSuccessor": true,
|
||||
"moduleId": "LINE_STYLE_READER_BATCH",
|
||||
"batchSize": 6,
|
||||
"inventoryTotal": 6900,
|
||||
"effectiveCompleted": 290,
|
||||
"effectivePending": 6609,
|
||||
"dynamicUnitCount": 3745,
|
||||
"dynamicVerifiedUnits": 467,
|
||||
"dynamicUnverifiedUnits": 3278,
|
||||
"boundUnitDelta": 0,
|
||||
"fullHistoricalReproduction": false
|
||||
},
|
||||
"nextTask": "WBV2-P1158-001"
|
||||
}
|
||||
7778
tests/golden/WBV2-P1158-000/module-execution-plan.json
Normal file
7778
tests/golden/WBV2-P1158-000/module-execution-plan.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1158-001",
|
||||
"operation": "LINE_STYLE_READER_CHROMIUM_SAVE_REOPEN",
|
||||
"browser": "chromium",
|
||||
"queueMutation": false,
|
||||
"fixture": "tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend",
|
||||
"fixtureSha256": "94de965ad54018f7072f2b4f4b752dc6f28f6608836040dc353d18d19fe31fd9",
|
||||
"sourceUnits": [
|
||||
"rna-struct:FreestyleLineStyle",
|
||||
"rna-struct:LineStyleModifier",
|
||||
"rna-struct:LineStyleAlphaModifier",
|
||||
"rna-struct:LineStyleColorModifier",
|
||||
"rna-struct:LineStyleGeometryModifier",
|
||||
"rna-struct:LineStyleThicknessModifier"
|
||||
],
|
||||
"before": [
|
||||
{
|
||||
"id": "line-style:WebGapLineStyle",
|
||||
"name": "WebGapLineStyle",
|
||||
"color": [
|
||||
0.20000000298023224,
|
||||
0.4000000059604645,
|
||||
0.800000011920929
|
||||
],
|
||||
"alpha": 0.75,
|
||||
"thickness": 2.5
|
||||
}
|
||||
],
|
||||
"styleCount": 1,
|
||||
"after": [
|
||||
{
|
||||
"id": "line-style:WebGapLineStyle",
|
||||
"name": "WebGapLineStyle",
|
||||
"color": [
|
||||
0.20000000298023224,
|
||||
0.4000000059604645,
|
||||
0.800000011920929
|
||||
],
|
||||
"alpha": 0.75,
|
||||
"thickness": 2.5
|
||||
}
|
||||
],
|
||||
"second": [
|
||||
{
|
||||
"id": "line-style:WebGapLineStyle",
|
||||
"name": "WebGapLineStyle",
|
||||
"color": [
|
||||
0.20000000298023224,
|
||||
0.4000000059604645,
|
||||
0.800000011920929
|
||||
],
|
||||
"alpha": 0.75,
|
||||
"thickness": 2.5
|
||||
}
|
||||
],
|
||||
"saveReopenExact": true,
|
||||
"deterministicExact": true,
|
||||
"savedSha256": "94de965ad54018f7072f2b4f4b752dc6f28f6608836040dc353d18d19fe31fd9",
|
||||
"malformed": {
|
||||
"code": "BLEND_READ_FAILED",
|
||||
"message": "Input is not an uncompressed, gzip, or zstd Blender file"
|
||||
}
|
||||
}
|
||||
103
tests/golden/WBV2-P1158-001/manifest.json
Normal file
103
tests/golden/WBV2-P1158-001/manifest.json
Normal file
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1158-001",
|
||||
"parentTask": "WBV2-P1158-000",
|
||||
"operation": "MODULE_FUNCTION_EXECUTION",
|
||||
"taskClass": "MODULE",
|
||||
"status": "done",
|
||||
"enablingTask": true,
|
||||
"parityStateChange": false,
|
||||
"runtime": "BLENDER_WEB_FUNCTION_MODULE",
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P1158-000/manifest.json",
|
||||
"sha256": "aec5ac1abdb13a942976897f857c7733bdff955f253537032487e8f51d1cdd49"
|
||||
},
|
||||
"source1": {
|
||||
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"sha256": "80d9fa286b7952ddecb39137a033cd1320f6747086dbeb41fe009ad7b0186f28"
|
||||
},
|
||||
"source2": {
|
||||
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"sha256": "80d9fa286b7952ddecb39137a033cd1320f6747086dbeb41fe009ad7b0186f28"
|
||||
},
|
||||
"source3": {
|
||||
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"sha256": "80d9fa286b7952ddecb39137a033cd1320f6747086dbeb41fe009ad7b0186f28"
|
||||
},
|
||||
"source4": {
|
||||
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"sha256": "80d9fa286b7952ddecb39137a033cd1320f6747086dbeb41fe009ad7b0186f28"
|
||||
},
|
||||
"source5": {
|
||||
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"sha256": "80d9fa286b7952ddecb39137a033cd1320f6747086dbeb41fe009ad7b0186f28"
|
||||
},
|
||||
"source6": {
|
||||
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"sha256": "80d9fa286b7952ddecb39137a033cd1320f6747086dbeb41fe009ad7b0186f28"
|
||||
},
|
||||
"source7": {
|
||||
"path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"sha256": "f6fbd04315c48ad4dfbf109b91e5b350550d23c227e5c11a71a58f09e923c990"
|
||||
},
|
||||
"source8": {
|
||||
"path": "web/tests/e2e/wbv2-line-style-reader-production.spec.ts",
|
||||
"sha256": "c66e7c47e40fa4e1265f168d8edffbde5f5c8c5c22a50fc9bc710db90df30695"
|
||||
},
|
||||
"source9": {
|
||||
"path": "tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend",
|
||||
"sha256": "94de965ad54018f7072f2b4f4b752dc6f28f6608836040dc353d18d19fe31fd9"
|
||||
},
|
||||
"source10": {
|
||||
"path": "web/app/src/vendor/blender/web_engine.wasm",
|
||||
"sha256": "32bc36aba563fe1ed0fb5d0292ca8a3ada1eecd6d45e38d9dcde565f02a312fe"
|
||||
},
|
||||
"evidence1": {
|
||||
"path": "tests/golden/WBV2-P1158-001/line-style-reader-production.json",
|
||||
"sha256": "9e7535962e5f4abc80e28921a3501b73edae78efd0c743c553617ca7b91e3f0a"
|
||||
},
|
||||
"moduleReceipt": {
|
||||
"path": "tests/golden/WBV2-P1158-001/module-receipt.json",
|
||||
"sha256": "c9571dd2ffa4fc81f7685629da38768d13fa1094f9f4abc6bde35ec606214456"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P1158-001.md",
|
||||
"sha256": "2d9d305fe63594baacf1e3f84ceb95438f25448297f6468b0a6fa00b1ec401e5"
|
||||
},
|
||||
"log": {
|
||||
"path": "tests/golden/WBV2-P1158-001/module-run.log",
|
||||
"sha256": "f27e39426fb104ce3cfb82bbcb9a23104b1fa7ebdb44bca66f19ac2a85614ab1"
|
||||
},
|
||||
"plan": {
|
||||
"path": "tests/golden/WBV2-P1158-000/module-execution-plan.json",
|
||||
"sha256": "f6b520eddcd5f399ae9244524933b37d62a3f83047d10f74fd076801227c4cd0"
|
||||
},
|
||||
"taskContext": {
|
||||
"path": "tests/golden/WBV2-P1158-001/task-context.json",
|
||||
"sha256": "247b8dd6b5423661197e64666a9b10930a0095dcc1ee15bfa0d0f701361c359e"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"moduleId": "LINE_STYLE_READER_BATCH",
|
||||
"sourceBacked": true,
|
||||
"positiveCases": 2,
|
||||
"negativeCases": 3,
|
||||
"recoveryCases": 3,
|
||||
"commandCount": 4,
|
||||
"reusedReceiptCount": 1,
|
||||
"sourceUnchanged": true,
|
||||
"fullFamilyParity": false,
|
||||
"dynamicInventoryPath": "tests/golden/WBV2/dynamic-inventory.json",
|
||||
"dynamicSourceTreeSha256": "600cb3dd441f09d9655b740735fbf8fa49ad6c14d308c68d59a29f9c338e4202",
|
||||
"dynamicUnitCount": 3745,
|
||||
"dynamicVerifiedUnits": 473,
|
||||
"dynamicUnverifiedUnits": 3272,
|
||||
"planningEstimate": 5200,
|
||||
"historicalInventoryTotal": 6900,
|
||||
"historicalEffectiveCompleted": 290,
|
||||
"historicalEffectivePending": 6609,
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"nextTask": null
|
||||
}
|
||||
124
tests/golden/WBV2-P1158-001/module-receipt.json
Normal file
124
tests/golden/WBV2-P1158-001/module-receipt.json
Normal file
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1158-001",
|
||||
"operation": "MODULE_FUNCTION_EXECUTION",
|
||||
"moduleId": "LINE_STYLE_READER_BATCH",
|
||||
"status": "PASS",
|
||||
"source": {
|
||||
"paths": [
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"web/tests/e2e/wbv2-line-style-reader-production.spec.ts",
|
||||
"tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend",
|
||||
"web/app/src/vendor/blender/web_engine.wasm"
|
||||
],
|
||||
"before": {
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc": "80d9fa286b7952ddecb39137a033cd1320f6747086dbeb41fe009ad7b0186f28",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp": "f6fbd04315c48ad4dfbf109b91e5b350550d23c227e5c11a71a58f09e923c990",
|
||||
"web/tests/e2e/wbv2-line-style-reader-production.spec.ts": "c66e7c47e40fa4e1265f168d8edffbde5f5c8c5c22a50fc9bc710db90df30695",
|
||||
"tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend": "94de965ad54018f7072f2b4f4b752dc6f28f6608836040dc353d18d19fe31fd9",
|
||||
"web/app/src/vendor/blender/web_engine.wasm": "32bc36aba563fe1ed0fb5d0292ca8a3ada1eecd6d45e38d9dcde565f02a312fe"
|
||||
},
|
||||
"after": {
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_linestyle.cc": "80d9fa286b7952ddecb39137a033cd1320f6747086dbeb41fe009ad7b0186f28",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp": "f6fbd04315c48ad4dfbf109b91e5b350550d23c227e5c11a71a58f09e923c990",
|
||||
"web/tests/e2e/wbv2-line-style-reader-production.spec.ts": "c66e7c47e40fa4e1265f168d8edffbde5f5c8c5c22a50fc9bc710db90df30695",
|
||||
"tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend": "94de965ad54018f7072f2b4f4b752dc6f28f6608836040dc353d18d19fe31fd9",
|
||||
"web/app/src/vendor/blender/web_engine.wasm": "32bc36aba563fe1ed0fb5d0292ca8a3ada1eecd6d45e38d9dcde565f02a312fe"
|
||||
},
|
||||
"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": [
|
||||
"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",
|
||||
"exitCode": 0,
|
||||
"durationMs": 149
|
||||
},
|
||||
{
|
||||
"command": "npm --prefix web run typecheck",
|
||||
"exitCode": 0,
|
||||
"durationMs": 3315
|
||||
},
|
||||
{
|
||||
"command": "npm --prefix web run build",
|
||||
"exitCode": 0,
|
||||
"durationMs": 3914
|
||||
},
|
||||
{
|
||||
"command": "WBV2_BATCH_TASK=WBV2-P1158-001 WBV2_BATCH_PRODUCTION=tests/golden/WBV2-P1158-001/line-style-reader-production.json WBV2_BATCH_FIXTURE=tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend WBV2_BATCH_TYPES='[]' WBV2_BATCH_UNITS='[\"rna-struct:FreestyleLineStyle\",\"rna-struct:LineStyleModifier\",\"rna-struct:LineStyleAlphaModifier\",\"rna-struct:LineStyleColorModifier\",\"rna-struct:LineStyleGeometryModifier\",\"rna-struct:LineStyleThicknessModifier\"]' WEB_TEST_PORT=5371 npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-line-style-reader-production.spec.ts",
|
||||
"exitCode": 0,
|
||||
"durationMs": 3003
|
||||
}
|
||||
],
|
||||
"verification": {
|
||||
"required": [
|
||||
"sourceHash",
|
||||
"wasmBuild",
|
||||
"positiveMainMutation",
|
||||
"negativeNoMutation",
|
||||
"undoRedo",
|
||||
"saveReopen",
|
||||
"aggregateManifest"
|
||||
],
|
||||
"chromiumOnly": true,
|
||||
"fullFamilyParity": false
|
||||
},
|
||||
"efficiency": {
|
||||
"existingEvidenceReused": false,
|
||||
"skippedCommands": 0,
|
||||
"totalDurationMs": 10381,
|
||||
"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": "c2a31ee4eafc2e23f8be36a719fba6f96c9dc4c541ba69dc537b6cf6c76f7d79",
|
||||
"sourceTreeSha256": "600cb3dd441f09d9655b740735fbf8fa49ad6c14d308c68d59a29f9c338e4202",
|
||||
"unitCount": 3745,
|
||||
"planningEstimate": 5200,
|
||||
"hardTarget": false,
|
||||
"verifiedUnits": 473,
|
||||
"unverifiedUnits": 3272
|
||||
}
|
||||
},
|
||||
"nextTask": null
|
||||
}
|
||||
49
tests/golden/WBV2-P1158-001/module-run.log
Normal file
49
tests/golden/WBV2-P1158-001/module-run.log
Normal file
@@ -0,0 +1,49 @@
|
||||
> 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
|
||||
ninja: no work to do.
|
||||
|
||||
> 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.46 kB │ gzip: 0.30 kB
|
||||
dist/assets/storage.worker-D9TqXsGS.js 66.59 kB
|
||||
dist/assets/web-engine.worker-BfTMiTY1.js 362.11 kB
|
||||
dist/assets/viewport-render.worker-BKnJyAEz.js 634.08 kB
|
||||
dist/assets/web_engine-CjnzAIfx.wasm 16,238.37 kB │ gzip: 3,856.73 kB
|
||||
dist/assets/index-BgTbQCE2.css 15.35 kB │ gzip: 3.91 kB
|
||||
dist/assets/index-C3AJuKSc.js 1,190.30 kB │ gzip: 316.69 kB
|
||||
|
||||
✓ built in 458ms
|
||||
[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-P1158-001 WBV2_BATCH_PRODUCTION=tests/golden/WBV2-P1158-001/line-style-reader-production.json WBV2_BATCH_FIXTURE=tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend WBV2_BATCH_TYPES='[]' WBV2_BATCH_UNITS='["rna-struct:FreestyleLineStyle","rna-struct:LineStyleModifier","rna-struct:LineStyleAlphaModifier","rna-struct:LineStyleColorModifier","rna-struct:LineStyleGeometryModifier","rna-struct:LineStyleThicknessModifier"]' WEB_TEST_PORT=5371 npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-line-style-reader-production.spec.ts
|
||||
|
||||
> blender-web-editor@0.1.0-rc.1 test:e2e
|
||||
> playwright test --config playwright.config.ts --workers=1 tests/e2e/wbv2-line-style-reader-production.spec.ts
|
||||
|
||||
|
||||
Running 1 test using 1 worker
|
||||
|
||||
✓ 1 tests/e2e/wbv2-line-style-reader-production.spec.ts:13:1 › line style reader preserves Blender Main style metadata (1.8s)
|
||||
|
||||
1 passed (2.7s)
|
||||
[WebServer] (node:164705) 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:164759) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
187
tests/golden/WBV2-P1158-001/task-context.json
Normal file
187
tests/golden/WBV2-P1158-001/task-context.json
Normal file
@@ -0,0 +1,187 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1158-001",
|
||||
"parentTask": "WBV2-P1158-000",
|
||||
"status": "in_progress",
|
||||
"goal": "以一个共享 Blender Main reader、WASM build、Worker 路由和 Chromium receipt 批量验证 RNA-only reader units 的真实 modifier/RNA 元数据。",
|
||||
"scope": {
|
||||
"gap": "capability:LINE_STYLE_READER_BATCH",
|
||||
"ownerFamily": "DRAWING",
|
||||
"implementationClass": "LOCAL_EXACT"
|
||||
},
|
||||
"commands": [
|
||||
"node tools/web/check-task-context.mjs --task WBV2-P1158-001 --write"
|
||||
],
|
||||
"inputPaths": [],
|
||||
"inputSelection": {
|
||||
"schemaVersion": 1,
|
||||
"limits": {
|
||||
"maxFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextRemainingBytes": 1914,
|
||||
"contextRemainingTokens": 477
|
||||
},
|
||||
"source": {
|
||||
"bytes": 7990,
|
||||
"tokens": 1999
|
||||
},
|
||||
"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": 313993,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend",
|
||||
"bytes": 85885,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "web/tests/e2e/wbv2-line-style-reader-production.spec.ts",
|
||||
"bytes": 3636,
|
||||
"reason": "CONTEXT_REMAINING_SPACE"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1158-001/module-receipt.json",
|
||||
"bytes": null,
|
||||
"reason": "MISSING_PATH"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1158-001/modifier-reader-batch-production.json",
|
||||
"bytes": null,
|
||||
"reason": "MISSING_PATH"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1158-001/manifest.json",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P1158-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-P1158-001.md",
|
||||
"taskIndex": "tests/golden/WBV2/task-index.json",
|
||||
"parentManifest": "tests/golden/WBV2-P1158-000/manifest.json",
|
||||
"parentStatus": "docs/status/WBV2-P1158-000.md"
|
||||
},
|
||||
"readPolicy": {
|
||||
"required": [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"docs/tasks/WBV2-P1158-001.md",
|
||||
"tests/golden/WBV2-P1158-000/manifest.json",
|
||||
"docs/status/WBV2-P1158-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-P1158-000",
|
||||
"parentTask": "WBV2-P1157-001",
|
||||
"status": "done",
|
||||
"nextTask": "WBV2-P1158-001",
|
||||
"artifactCount": 4
|
||||
},
|
||||
"statusSummary": [
|
||||
"# WBV2-P1158-000 status",
|
||||
"- task: `WBV2-P1158-000`; parent: `WBV2-P1157-001`; status: `done`",
|
||||
"- taskClass: `QUEUE_ENABLEMENT`; no modifier-family parity completion claimed",
|
||||
"- source-backed batch authorized: `LINE_STYLE_READER_BATCH` (6 units)",
|
||||
"- dynamic inventory: `3745` units; verified `467`; unverified `3278`; bound delta `0`",
|
||||
"- nextTask: `WBV2-P1158-001`"
|
||||
]
|
||||
},
|
||||
"budgets": {
|
||||
"queueBytes": 4096,
|
||||
"taskBytes": 2227,
|
||||
"parentManifestBytes": 24576,
|
||||
"parentStatusBytes": 6144,
|
||||
"evidenceFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextTokens": 3500,
|
||||
"contextEnvelopeTokens": 1024,
|
||||
"taskLines": 46,
|
||||
"taskTokens": 557
|
||||
},
|
||||
"size": {
|
||||
"documents": [
|
||||
{
|
||||
"path": "docs/EXECUTION_QUEUE.md",
|
||||
"bytes": 4030,
|
||||
"lines": 58,
|
||||
"tokens": 1008
|
||||
},
|
||||
{
|
||||
"path": "docs/tasks/WBV2-P1158-001.md",
|
||||
"bytes": 2227,
|
||||
"lines": 46,
|
||||
"tokens": 557
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1158-000/manifest.json",
|
||||
"bytes": 1378,
|
||||
"lines": 43,
|
||||
"tokens": 345
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P1158-000.md",
|
||||
"bytes": 355,
|
||||
"lines": 8,
|
||||
"tokens": 89
|
||||
}
|
||||
],
|
||||
"sourceTokens": 1999,
|
||||
"evidenceFiles": 0,
|
||||
"evidenceBytes": 0,
|
||||
"evidenceTokens": 0,
|
||||
"totalTokens": 1999,
|
||||
"reservedEnvelopeTokens": 1024,
|
||||
"estimatedContextTokens": 3023,
|
||||
"serializedContextTokens": 653,
|
||||
"withinBudget": true
|
||||
}
|
||||
}
|
||||
@@ -93,3 +93,5 @@
|
||||
{"id":"WBV2-P1156-001","gapId":"MODIFIER_VOLUME_DISPLACE_BATCH","ownerFamily":"MODIFIER","sourceTask":"1156","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-P1157-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1157","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
|
||||
{"id":"WBV2-P1157-001","gapId":"SHAPE_KEY_POINT_READER_BATCH","ownerFamily":"ANIMATION","sourceTask":"1157","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-P1158-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1158","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
|
||||
{"id":"WBV2-P1158-001","gapId":"LINE_STYLE_READER_BATCH","ownerFamily":"DRAWING","sourceTask":"1158","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
77
web/tests/e2e/wbv2-line-style-reader-production.spec.ts
Normal file
77
web/tests/e2e/wbv2-line-style-reader-production.spec.ts
Normal file
@@ -0,0 +1,77 @@
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { expect, test } from "@playwright/test";
|
||||
|
||||
const root = path.resolve(import.meta.dirname, "../../..");
|
||||
const task = process.env.WBV2_BATCH_TASK ?? "WBV2-P1158-001";
|
||||
const fixture = "tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend";
|
||||
const fixtureBytes = fs.readFileSync(path.join(root, fixture));
|
||||
const fixtureSha256 = crypto.createHash("sha256").update(fixtureBytes).digest("hex");
|
||||
const sourceUnits = JSON.parse(process.env.WBV2_BATCH_UNITS ?? '["rna-struct:FreestyleLineStyle","rna-struct:LineStyleModifier","rna-struct:LineStyleAlphaModifier","rna-struct:LineStyleColorModifier","rna-struct:LineStyleGeometryModifier","rna-struct:LineStyleThicknessModifier"]');
|
||||
|
||||
test("line style reader preserves Blender Main style metadata", async ({ page }) => {
|
||||
test.setTimeout(180_000);
|
||||
await page.goto("/");
|
||||
const result = await page.evaluate(async (bytes) => {
|
||||
const { WebEngineClient } = await import("/src/engine-client/WebEngineClient.ts");
|
||||
const canonical = (snapshot: any) => (snapshot.lineStyles ?? []).map((style: any) => ({
|
||||
id: style.id,
|
||||
name: style.name,
|
||||
color: style.color,
|
||||
alpha: style.alpha,
|
||||
thickness: style.thickness,
|
||||
geometry: style.geometry,
|
||||
}));
|
||||
const client = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
const reopenedClient = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
const secondClient = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
const output: any = {};
|
||||
try {
|
||||
const opened = await client.openBlend(Uint8Array.from(bytes).buffer);
|
||||
output.before = canonical(opened.snapshot);
|
||||
output.styleCount = output.before.length;
|
||||
const saved = await client.saveBlend();
|
||||
output.after = canonical((await reopenedClient.openBlend(saved.slice(0))).snapshot);
|
||||
output.second = canonical((await secondClient.openBlend(Uint8Array.from(bytes).buffer)).snapshot);
|
||||
output.saveReopenExact = JSON.stringify(output.before) === JSON.stringify(output.after);
|
||||
output.deterministicExact = JSON.stringify(output.before) === JSON.stringify(output.second);
|
||||
output.savedSha256 = await crypto.subtle.digest("SHA-256", saved).then((hash) =>
|
||||
Array.from(new Uint8Array(hash), (byte) => byte.toString(16).padStart(2, "0")).join(""));
|
||||
try {
|
||||
await client.openBlend(Uint8Array.from([0x42, 0x4c, 0x45, 0x4e, 0x44]).buffer);
|
||||
output.malformed = { code: "ACCEPTED_MALFORMED" };
|
||||
} catch (error: any) {
|
||||
output.malformed = { code: error?.code, message: error?.message };
|
||||
}
|
||||
} catch (error: any) {
|
||||
output.error = { code: error?.code, message: error?.message, detail: String(error) };
|
||||
} finally {
|
||||
client.terminate();
|
||||
reopenedClient.terminate();
|
||||
secondClient.terminate();
|
||||
}
|
||||
return output;
|
||||
}, Array.from(fixtureBytes));
|
||||
|
||||
const report = {
|
||||
schemaVersion: 1,
|
||||
task,
|
||||
operation: "LINE_STYLE_READER_CHROMIUM_SAVE_REOPEN",
|
||||
browser: "chromium",
|
||||
queueMutation: false,
|
||||
fixture,
|
||||
fixtureSha256,
|
||||
sourceUnits,
|
||||
...result,
|
||||
};
|
||||
const outputPath = path.join(root, `tests/golden/${task}/line-style-reader-production.json`);
|
||||
fs.mkdirSync(path.dirname(outputPath), { recursive: true });
|
||||
fs.writeFileSync(outputPath, `${JSON.stringify(report, null, 2)}\n`);
|
||||
|
||||
expect(result.error).toBeUndefined();
|
||||
expect(result.styleCount).toBeGreaterThan(0);
|
||||
expect(result.saveReopenExact).toBe(true);
|
||||
expect(result.deterministicExact).toBe(true);
|
||||
expect(result.malformed?.code).not.toBe("ACCEPTED_MALFORMED");
|
||||
});
|
||||
Reference in New Issue
Block a user