From 6c00245b33c6e3aa40ed57a88e8f8e9f8cf2466d Mon Sep 17 00:00:00 2001 From: wangdequan Date: Sun, 14 Jun 2026 09:26:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=8E=A8=E8=BF=9B=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=20custom=20tool-table=20=E6=9C=9F=E6=9C=9B?= =?UTF-8?q?=E8=A1=8C=20guard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- text9.txt | 51 +++++++++++++++++++++++ wasm-port/tests/browser/interp_smoke.html | 6 ++- 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/text9.txt b/text9.txt index f7050cc..ffbca76 100644 --- a/text9.txt +++ b/text9.txt @@ -1982,3 +1982,54 @@ host_wasm_opfs_browser_smokes=ok 继续小批量 browser test glue guard。优先扫描 custom session saved tool-table expected line groups 是否也能局部常量化或复用 existing helpers;只改测试胶水,不改变输入、OPFS 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 字符串或保存/读取行为。 diff --git a/wasm-port/tests/browser/interp_smoke.html b/wasm-port/tests/browser/interp_smoke.html index 0c9bfc2..769e647 100644 --- a/wasm-port/tests/browser/interp_smoke.html +++ b/wasm-port/tests/browser/interp_smoke.html @@ -9834,10 +9834,11 @@ savedIniNamedToolTable, opfsToolTableResultLinesForTool("save", iniNamedToolTable), ); + const iniNamedSavedToolTableTextLines = opfsToolTableTextLinesForTool(iniNamedToolTable); await verifyOpfsReadback( "opfs_saved_ini_named_tool_table_text", loadedIniFileSession.toolTable.opfsPath, - opfsToolTableTextLinesForTool(iniNamedToolTable), + iniNamedSavedToolTableTextLines, ); const iniOverrideMachineId = "browser-ini-override-session"; @@ -9974,10 +9975,11 @@ savedExplicitToolTable, opfsToolTableResultLinesForTool("save", explicitToolTable), ); + const explicitSavedToolTableTextLines = opfsToolTableTextLinesForTool(explicitToolTable); await verifyOpfsReadback( "opfs_saved_explicit_tool_table_text", loadedIniOverrideSession.toolTable.opfsPath, - opfsToolTableTextLinesForTool(explicitToolTable), + explicitSavedToolTableTextLines, ); await verifyOpfsInvalidIniSessionRejects(