Guard browser OPFS saved text expected lines
This commit is contained in:
49
text8.txt
49
text8.txt
@@ -371,3 +371,52 @@ host_wasm_opfs_browser_smokes=ok
|
||||
继续沿 browser/OPFS boundary guard 方向推进,但进入更细一层的 load/save 对称收敛审视:
|
||||
检查 `opfs_saved_*_text` 与 `opfs_load_*` 附近是否还能抽出更小的 pair helper,前提是
|
||||
不让 helper 掩盖 expected text 或改变 direct-file 与 machine-file 的边界。
|
||||
|
||||
十、2026-06-14 继续执行记录:browser OPFS saved text expected lines guard
|
||||
|
||||
本轮按上一条下一步建议审视 load/save pair helper。结论是暂不抽更大的 pair helper,
|
||||
避免掩盖 parameter/tool-table、direct-file/machine-file 的边界;改为继续小范围收敛
|
||||
saved text 校验胶水。
|
||||
|
||||
完成内容:
|
||||
|
||||
- 将 `verifyOpfsSavedText(...)`、`verifyOpfsReadback(...)`、
|
||||
`verifyOpfsMachineFileReadback(...)` 统一为接收 expected lines 数组;
|
||||
- 移除 10 个 saved text/readback 调用点上的重复 `join("\n")` 胶水;
|
||||
- expected output 行内容仍全部外显,direct OPFS readback 与 machine-file readback
|
||||
helper 边界保持不变;
|
||||
- 未改变 OPFS bridge behavior、file-service、path-model、SDK planner、interpreter、
|
||||
INI、tool、parameter 或 LinuxCNC-owned runtime semantics。
|
||||
|
||||
验证已通过:
|
||||
|
||||
```bash
|
||||
git diff --check
|
||||
wasm-port/tools/verify_vendor_sync.sh
|
||||
wasm-port/tools/verify_no_standalone_cnc_semantics.sh
|
||||
SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_interp_wasm.sh
|
||||
SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_sim_configs_inventory_wasm.sh
|
||||
SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_interp_browser.sh
|
||||
wasm-port/tests/host/verify_host_smokes.sh
|
||||
```
|
||||
|
||||
关键输出:
|
||||
|
||||
```text
|
||||
vendor sync up to date
|
||||
standalone CNC semantics guard complete
|
||||
interp_wasm_node_smoke=ok
|
||||
sim_configs_wasm_node_inventory_executed=28
|
||||
sim_configs_wasm_node_inventory_passed=28
|
||||
sim_configs_wasm_node_inventory_skipped=131
|
||||
sim_configs_wasm_node_inventory_unexpected_fail=0
|
||||
browser_interp_smoke=ok
|
||||
host_wasm_opfs_browser_smokes=ok
|
||||
```
|
||||
|
||||
下一步建议:
|
||||
|
||||
继续保持小批量 browser/OPFS boundary guard。优先扫描 `interp_smoke.html` 中
|
||||
OPFS invalid INI session rejection helper 周边,确认是否还有重复的 invalid filename
|
||||
fixture 构造或 path guard 可收敛;只处理 browser test glue,不改变错误语义或
|
||||
runtime bridge。
|
||||
|
||||
Reference in New Issue
Block a user