继续推进浏览器 ini-named readback path 组 guard

This commit is contained in:
2026-06-14 14:14:34 +08:00
parent c0bce74cf2
commit 0b7771b595
2 changed files with 60 additions and 3 deletions

View File

@@ -2648,3 +2648,57 @@ host_wasm_opfs_browser_smokes=ok
继续小批量 browser test glue guard。优先扫描 remaining OPFS readback path groups 或
machine text store path assertion groups 是否还能进一步局部常量化或复用 existing
helpers只改测试胶水不改变输入、OPFS path、WASM path 字符串或保存/读取行为。
五十一、2026-06-14 继续执行记录browser ini-named readback path groups guard
本轮按上一条下一步建议继续收敛 remaining OPFS readback path groups范围仍只触及
`wasm-port/tests/browser/interp_smoke.html` 的 browser/OPFS test glue。
完成内容:
- 新增 `iniNamedSavedParameterTextPath` 局部常量,承载 ini-named parameter saved
text readback path
- 新增 `iniNamedSavedParameterBackupPath` 局部常量,承载 ini-named parameter backup
text readback path
- 新增 `iniNamedSavedToolTableTextPath` 局部常量,承载 ini-named tool-table saved text
readback path
- ini-named parameter/tool-table saved readback 断言改为复用上述 path groups
- 保持 ini-named saved file expected OPFS path、WASM path、machine id、filename 与
readback text 不变;
- 未改变任何 expected 字符串、输入、OPFS path、WASM path 字符串或 load/save/read
行为;
- 未改变 staging path 模型、OPFS bridge behavior、file-service、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 test glue guard。优先扫描 remaining OPFS readback path groups、
machine text store path assertion groups 或 explicit session saved readback groups 是否还能
进一步局部常量化或复用 existing helpers只改测试胶水不改变输入、OPFS path、WASM
path 字符串或保存/读取行为。

View File

@@ -9881,18 +9881,20 @@
"\t",
iniNamedParameterReadbackValues,
);
const iniNamedSavedParameterTextPath = loadedIniFileSession.parameters.opfsPath;
await verifyOpfsReadback(
"opfs_saved_ini_named_parameter_text",
loadedIniFileSession.parameters.opfsPath,
iniNamedSavedParameterTextPath,
iniNamedSavedParameterTextLines,
);
const iniNamedSavedParameterBackupTextLines = opfsSavedParameterPlainTextLinesForValues(
" ",
iniNamedInitialParameterValues,
);
const iniNamedSavedParameterBackupPath = savedIniNamedParameters.backupOpfsPath;
await verifyOpfsReadback(
"opfs_saved_ini_named_parameter_backup_text",
savedIniNamedParameters.backupOpfsPath,
iniNamedSavedParameterBackupPath,
iniNamedSavedParameterBackupTextLines,
);
const iniNamedLoadToolTableResultLines = opfsToolTableResultLinesForTool(
@@ -9935,9 +9937,10 @@
iniNamedSaveToolTableResultLines,
);
const iniNamedSavedToolTableTextLines = opfsToolTableTextLinesForTool(iniNamedToolTable);
const iniNamedSavedToolTableTextPath = loadedIniFileSession.toolTable.opfsPath;
await verifyOpfsReadback(
"opfs_saved_ini_named_tool_table_text",
loadedIniFileSession.toolTable.opfsPath,
iniNamedSavedToolTableTextPath,
iniNamedSavedToolTableTextLines,
);