继续推进浏览器 explicit readback path 组 guard
This commit is contained in:
53
text10.txt
53
text10.txt
@@ -229,3 +229,56 @@ groups,重点检查 `saveMachineTextFiles(...)` 相关输入是否已有可复
|
||||
- 新增抽象过度包装;
|
||||
- 把 save API 输入对象提成无用常量;
|
||||
- 触碰 runtime、SDK、OPFS bridge 或 LinuxCNC-owned semantics。
|
||||
|
||||
一、2026-06-14 继续执行记录:browser explicit readback path groups guard
|
||||
|
||||
本轮按 `text10.txt` 第一候选批次继续收敛 explicit session saved readback path groups,
|
||||
范围仍只触及 `wasm-port/tests/browser/interp_smoke.html` 的 browser/OPFS test glue。
|
||||
|
||||
完成内容:
|
||||
|
||||
- 新增 `explicitSavedParameterTextPath` 局部常量,承载 explicit parameter saved text
|
||||
readback path;
|
||||
- 新增 `explicitSavedParameterBackupPath` 局部常量,承载 explicit parameter backup
|
||||
text readback path;
|
||||
- 新增 `explicitSavedToolTableTextPath` 局部常量,承载 explicit tool-table saved text
|
||||
readback path;
|
||||
- explicit parameter/tool-table saved readback 断言改为复用上述 path groups;
|
||||
- 保持 explicit 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
|
||||
SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_interp_browser.sh
|
||||
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
|
||||
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。优先扫描 machine text store path assertion groups
|
||||
或剩余 OPFS readback path groups 是否还能进一步局部常量化或复用 existing helpers;
|
||||
只改测试胶水,不改变输入、OPFS path、WASM path 字符串或保存/读取行为。
|
||||
|
||||
@@ -10073,18 +10073,20 @@
|
||||
"\t",
|
||||
explicitParameterReadbackValues,
|
||||
);
|
||||
const explicitSavedParameterTextPath = loadedIniOverrideSession.parameters.opfsPath;
|
||||
await verifyOpfsReadback(
|
||||
"opfs_saved_explicit_parameter_text",
|
||||
loadedIniOverrideSession.parameters.opfsPath,
|
||||
explicitSavedParameterTextPath,
|
||||
explicitSavedParameterTextLines,
|
||||
);
|
||||
const explicitSavedParameterBackupTextLines = opfsSavedParameterPlainTextLinesForValues(
|
||||
" ",
|
||||
explicitInitialParameterValues,
|
||||
);
|
||||
const explicitSavedParameterBackupPath = savedExplicitParameters.backupOpfsPath;
|
||||
await verifyOpfsReadback(
|
||||
"opfs_saved_explicit_parameter_backup_text",
|
||||
savedExplicitParameters.backupOpfsPath,
|
||||
explicitSavedParameterBackupPath,
|
||||
explicitSavedParameterBackupTextLines,
|
||||
);
|
||||
const savedExplicitToolTable = await saveMachineToolTableToOpfs(
|
||||
@@ -10113,9 +10115,10 @@
|
||||
explicitSaveToolTableResultLines,
|
||||
);
|
||||
const explicitSavedToolTableTextLines = opfsToolTableTextLinesForTool(explicitToolTable);
|
||||
const explicitSavedToolTableTextPath = loadedIniOverrideSession.toolTable.opfsPath;
|
||||
await verifyOpfsReadback(
|
||||
"opfs_saved_explicit_tool_table_text",
|
||||
loadedIniOverrideSession.toolTable.opfsPath,
|
||||
explicitSavedToolTableTextPath,
|
||||
explicitSavedToolTableTextLines,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user