继续推进浏览器 custom tool-table 期望行 guard
This commit is contained in:
51
text9.txt
51
text9.txt
@@ -1982,3 +1982,54 @@ host_wasm_opfs_browser_smokes=ok
|
|||||||
继续小批量 browser test glue guard。优先扫描 custom session saved tool-table expected line
|
继续小批量 browser test glue guard。优先扫描 custom session saved tool-table expected line
|
||||||
groups 是否也能局部常量化或复用 existing helpers;只改测试胶水,不改变输入、OPFS
|
groups 是否也能局部常量化或复用 existing helpers;只改测试胶水,不改变输入、OPFS
|
||||||
path、WASM path 字符串或保存/读取行为。
|
path、WASM path 字符串或保存/读取行为。
|
||||||
|
|
||||||
|
三十九、2026-06-14 继续执行记录:browser custom saved tool-table expected lines guard
|
||||||
|
|
||||||
|
本轮按上一条下一步建议继续收敛 custom session saved tool-table expected line groups,范围
|
||||||
|
仍只触及 `wasm-port/tests/browser/interp_smoke.html` 的 browser/OPFS test glue。
|
||||||
|
|
||||||
|
完成内容:
|
||||||
|
|
||||||
|
- 新增 `iniNamedSavedToolTableTextLines` 局部常量,承载 ini-named session saved
|
||||||
|
tool-table expected lines;
|
||||||
|
- 新增 `explicitSavedToolTableTextLines` 局部常量,承载 explicit session saved
|
||||||
|
tool-table expected lines;
|
||||||
|
- ini-named/explicit saved tool-table readback 调用改为复用上述 line groups;
|
||||||
|
- 保持 ini-named/explicit session 的 saved tool-table expected 文本、OPFS path 与 WASM
|
||||||
|
path 不变;
|
||||||
|
- 未改变任何 expected 字符串、输入、OPFS path、WASM path 字符串或 save/read/load
|
||||||
|
行为;
|
||||||
|
- 未改变 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。优先扫描 browser-interp/direct saved tool-table
|
||||||
|
expected line groups 是否也能局部常量化或复用 existing helpers;只改测试胶水,不改变
|
||||||
|
输入、OPFS path、WASM path 字符串或保存/读取行为。
|
||||||
|
|||||||
@@ -9834,10 +9834,11 @@
|
|||||||
savedIniNamedToolTable,
|
savedIniNamedToolTable,
|
||||||
opfsToolTableResultLinesForTool("save", iniNamedToolTable),
|
opfsToolTableResultLinesForTool("save", iniNamedToolTable),
|
||||||
);
|
);
|
||||||
|
const iniNamedSavedToolTableTextLines = opfsToolTableTextLinesForTool(iniNamedToolTable);
|
||||||
await verifyOpfsReadback(
|
await verifyOpfsReadback(
|
||||||
"opfs_saved_ini_named_tool_table_text",
|
"opfs_saved_ini_named_tool_table_text",
|
||||||
loadedIniFileSession.toolTable.opfsPath,
|
loadedIniFileSession.toolTable.opfsPath,
|
||||||
opfsToolTableTextLinesForTool(iniNamedToolTable),
|
iniNamedSavedToolTableTextLines,
|
||||||
);
|
);
|
||||||
|
|
||||||
const iniOverrideMachineId = "browser-ini-override-session";
|
const iniOverrideMachineId = "browser-ini-override-session";
|
||||||
@@ -9974,10 +9975,11 @@
|
|||||||
savedExplicitToolTable,
|
savedExplicitToolTable,
|
||||||
opfsToolTableResultLinesForTool("save", explicitToolTable),
|
opfsToolTableResultLinesForTool("save", explicitToolTable),
|
||||||
);
|
);
|
||||||
|
const explicitSavedToolTableTextLines = opfsToolTableTextLinesForTool(explicitToolTable);
|
||||||
await verifyOpfsReadback(
|
await verifyOpfsReadback(
|
||||||
"opfs_saved_explicit_tool_table_text",
|
"opfs_saved_explicit_tool_table_text",
|
||||||
loadedIniOverrideSession.toolTable.opfsPath,
|
loadedIniOverrideSession.toolTable.opfsPath,
|
||||||
opfsToolTableTextLinesForTool(explicitToolTable),
|
explicitSavedToolTableTextLines,
|
||||||
);
|
);
|
||||||
|
|
||||||
await verifyOpfsInvalidIniSessionRejects(
|
await verifyOpfsInvalidIniSessionRejects(
|
||||||
|
|||||||
Reference in New Issue
Block a user