继续推进浏览器 random tool-table 期望行 guard
This commit is contained in:
53
text9.txt
53
text9.txt
@@ -2084,3 +2084,56 @@ host_wasm_opfs_browser_smokes=ok
|
||||
继续小批量 browser test glue guard。优先扫描 browser-random/direct-random saved
|
||||
tool-table expected line groups 是否也能局部常量化或复用 existing helpers;只改测试胶水,
|
||||
不改变输入、OPFS path、WASM path 字符串或保存/读取行为。
|
||||
|
||||
四十一、2026-06-14 继续执行记录:browser random saved tool-table expected lines guard
|
||||
|
||||
本轮按上一条下一步建议继续收敛 browser-random/direct-random saved tool-table expected
|
||||
line groups,范围仍只触及 `wasm-port/tests/browser/interp_smoke.html` 的
|
||||
browser/OPFS test glue。
|
||||
|
||||
完成内容:
|
||||
|
||||
- 新增 `browserDirectRandomSavedToolTableTextLines` 局部常量,承载 direct-random saved
|
||||
tool-table expected lines;
|
||||
- 新增 `browserRandomSavedToolTableTextLines` 局部常量,承载 browser-random saved
|
||||
tool-table expected lines;
|
||||
- direct-random 与 browser-random saved tool-table readback 调用改为复用上述 line
|
||||
groups;
|
||||
- 保持 direct-random/browser-random 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-random/direct-random tool-table
|
||||
load/save result line groups 是否也能局部常量化或复用 existing helpers;只改测试胶水,
|
||||
不改变输入、OPFS path、WASM path 字符串或保存/读取行为。
|
||||
|
||||
@@ -9486,10 +9486,13 @@
|
||||
{ resultLines: ["tool_pocket_9.toolno=5"] },
|
||||
]).join("\n"),
|
||||
);
|
||||
const browserDirectRandomSavedToolTableTextLines = opfsRandomToolTableTextLines(
|
||||
browserDirectRandomTools,
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"saved_tool_table_direct_random_text",
|
||||
interp.readTextFile(browserRandomToolTablePath),
|
||||
opfsRandomToolTableTextLines(browserDirectRandomTools).join("\n"),
|
||||
browserDirectRandomSavedToolTableTextLines.join("\n"),
|
||||
);
|
||||
|
||||
const browserInterpMachineId = "browser-interp";
|
||||
@@ -9702,11 +9705,12 @@
|
||||
{ resultLines: ["tool_pocket_9.toolno=5"] },
|
||||
]),
|
||||
);
|
||||
const browserRandomSavedToolTableTextLines = opfsRandomToolTableTextLines(browserRandomTools);
|
||||
await verifyOpfsMachineFileReadback(
|
||||
"opfs_saved_random_tool_table_text",
|
||||
browserRandomMachineId,
|
||||
"toolTable",
|
||||
opfsRandomToolTableTextLines(browserRandomTools),
|
||||
browserRandomSavedToolTableTextLines,
|
||||
);
|
||||
|
||||
const iniFileMachineId = "browser-ini-file-session";
|
||||
|
||||
Reference in New Issue
Block a user