Files
workinf_Blender_Wasm/docs/web/P1424-MESH-SIMPLIFY-SUITE.md
mes123456 6168482828
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
test(web): close the P1424 suite against the current product entries
Share the Emscripten syscall-stub filter, save through the manual
download entry, select through the Outliner, and open the 集合 property
tab before the collection workbench (hidden until then). Add the suite
usage doc.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 05:41:24 +08:00

3.5 KiB
Raw Blame History

WBV2-P1424 网格简化 / 层级套件(有头)

桌面 Blender 简化、LOD 与层级工作的生产回归套件。四个 spec 共用 web/playwright.mesh-simplify.config.ts,默认对 web/dist 候选运行,可显式指定其它候选目录。

构成

文件 覆盖 夹具 / oracle
web/tests/e2e/mesh-simplify-production.spec.ts 预览/取消/应用/撤销重做、保存重开、LOD 缓存恢复与拒绝、三种 Decimate 模式 tests/files/web/mesh_simplify_high.blend 等;tests/golden/WBV2-P1424-001/{mesh-simplify-20261020,lod-current-main-20261021,...}
web/tests/e2e/mesh-lod-reader-production.spec.ts 凹形缺口按桌面三角化的 LOD 读回 tests/golden/WBV2-P1424-001/lod-current-main-20261021/desktop-concave.json
web/tests/e2e/object-hierarchy-production.spec.ts 父级/集合生命周期、撤销重做、保存重开 tests/golden/WBV2-P1424-001/object-hierarchy-20261021/desktop-hierarchy.json
web/tests/e2e/hierarchy-simplify-combined.spec.ts 层级 + 简化在 Worker 两次终止后仍可导出 tests/golden/WBV2-P1424-001/hierarchy-simplify-combined-20261021/desktop-combined.json

运行

cd /home/mes123456/workinf_Blender_Wasm/web
DISPLAY=:1 \
WBV2_PRODUCTION_CANDIDATE=/home/mes123456/workinf_Blender_Wasm/web/dist \
WEB_TEST_PORT=5620 \
npx playwright test --config playwright.mesh-simplify.config.ts --reporter=line
  • 有头:playwright.config.ts 依据 DISPLAY 选择 hardware 模式;本配置另以 swiftshader 参数启动 Chrome。视口渲染的是网格几何(?ui=web)。
  • 单文件:在命令末尾追加 spec 文件名。
  • 回执:按各 spec 的约定目录落盘(tests/golden/WBV2-P1424-001/**,按时间戳新建,不覆盖历史)。mesh-simplify-production 可用 WBV2_EVIDENCE_DIR 指向独立目录。
  • 候选绑定:回执 modules[] 记录 web_engine.wasm 与 manifest 的 sha256;报告只对该候选成立。

测试口径(与当前产品入口一致)

  • 控制台噪声:Emscripten 调试版 libc 的 __syscall_mprotect 桩返回成功并打印警告。共享夹具 web/tests/fixtures/runtime-console.ts 提供 RUNTIME_STUB_NOISE / runtimeNoise / productErrors;原始文本留在 consoleErrors,回执另存 consoleNoise 与 productConsoleErrors,真实控制台错误仍为硬失败。
  • 对象选择:对象名同时出现在视口侧栏与 Outliner,选择走 getByRole('treeitem', {name}) 的 .tree-node-name。
  • 保存:OPFS 保存(保存项目)不下载;需要本地文件时走用户可见的「下载 .blend」入口(同时持久化同一份字节)。
  • 属性工作台:*-workbench 区块在诊断面板关闭时被外壳隐藏;集合可见性等入口需先点属性标签(如「集合」),由 jumpToPropertySection 打开诊断并滚动到对应区块。
  • 简化契约:protocol/simplify.ts 与引擎都要求 ratio > 0;COLLAPSE 比例 0 断言为 INVALID_ARGUMENT。UI 滑杆最小值 0.05,用户不可达 0。
  • 快照比较:场景相等性剔除以数据块为单位的 revision、编辑器焦点与窗口管理器区域状态(sceneState)。
  • 项目动作锁:保存/打开未释放时产品会拒绝编辑并提示“请稍后再编辑”;测试按用户行为重试。

已知状态

  • 最近一次整套运行:4 个 spec 全部通过;候选 web_engine.wasm sha256 f0a528ae44be8335d4c340bcc5d08ffb1e450b9e5420318dba50370d4fab8280。
  • acceptance: NOT_CLAIMED:结果只代表该候选、该环境。