Guard browser direct random tool-table input
This commit is contained in:
57
text9.txt
57
text9.txt
@@ -1259,3 +1259,60 @@ host_wasm_opfs_browser_smokes=ok
|
|||||||
继续小批量 browser test glue guard。优先扫描 direct generated random tool-table fixture
|
继续小批量 browser test glue guard。优先扫描 direct generated random tool-table fixture
|
||||||
input lines 是否也能抽为局部常量;只改测试胶水,不改变输入、OPFS path、WASM path
|
input lines 是否也能抽为局部常量;只改测试胶水,不改变输入、OPFS path、WASM path
|
||||||
字符串或保存/读取行为。
|
字符串或保存/读取行为。
|
||||||
|
|
||||||
|
二十五、2026-06-14 继续执行记录:browser direct generated random tool-table input locals guard
|
||||||
|
|
||||||
|
本轮按上一条下一步建议继续收敛 direct generated random tool-table fixture input
|
||||||
|
locals,范围仍只触及
|
||||||
|
`wasm-port/tests/browser/interp_smoke.html` 的 browser test glue。
|
||||||
|
|
||||||
|
完成内容:
|
||||||
|
|
||||||
|
- 新增 `browserDirectRandomToolTableInputLines` 局部常量,承载 direct random
|
||||||
|
generated tool-table fixture input lines;
|
||||||
|
- `writeGeneratedToolTableFixture(...)` 调用改为复用
|
||||||
|
`browserDirectRandomToolTableInputLines.join("\n")`;
|
||||||
|
- 保持 `browserDirectRandomFinishTool`、`browserDirectRandomRoughTool` 与后续
|
||||||
|
load/save/readback expected lines 不变;
|
||||||
|
- 未改变任何 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
|
||||||
|
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
|
||||||
|
browser_interp_smoke=ok
|
||||||
|
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
|
||||||
|
host_wasm_opfs_browser_smokes=ok
|
||||||
|
```
|
||||||
|
|
||||||
|
备注:
|
||||||
|
|
||||||
|
- 当前 sandbox 会拦截本地 HTTP server socket bind;browser smoke 与
|
||||||
|
`verify_host_smokes.sh` 的 browser 阶段需授权运行;
|
||||||
|
- 本轮 browser smoke 与 host smoke 均已授权运行并通过。
|
||||||
|
|
||||||
|
下一步建议:
|
||||||
|
|
||||||
|
继续小批量 browser test glue guard。优先扫描 browser OPFS session tool-table seed
|
||||||
|
text 是否还能抽为局部 constants,或者转向 direct generated tool-table path constants;
|
||||||
|
只改测试胶水,不改变输入、OPFS path、WASM path 字符串或保存/读取行为。
|
||||||
|
|||||||
@@ -9417,14 +9417,15 @@
|
|||||||
directToolTableTextLines(browserDirectTools).join("\n"),
|
directToolTableTextLines(browserDirectTools).join("\n"),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const browserDirectRandomToolTableInputLines = [
|
||||||
|
"T2 P7 Z3.125 D1.5 I12 J34 Q4 ;browser direct random finish tool",
|
||||||
|
"T5 P9 X1 Y2 Z3 ;browser direct random rough tool",
|
||||||
|
"",
|
||||||
|
];
|
||||||
const browserRandomToolTablePath = writeGeneratedToolTableFixture(
|
const browserRandomToolTablePath = writeGeneratedToolTableFixture(
|
||||||
interp,
|
interp,
|
||||||
"/work/browser-direct-random-tool.tbl",
|
"/work/browser-direct-random-tool.tbl",
|
||||||
[
|
browserDirectRandomToolTableInputLines.join("\n"),
|
||||||
"T2 P7 Z3.125 D1.5 I12 J34 Q4 ;browser direct random finish tool",
|
|
||||||
"T5 P9 X1 Y2 Z3 ;browser direct random rough tool",
|
|
||||||
"",
|
|
||||||
].join("\n"),
|
|
||||||
);
|
);
|
||||||
const browserDirectRandomFinishTool = {
|
const browserDirectRandomFinishTool = {
|
||||||
toolNo: "2",
|
toolNo: "2",
|
||||||
|
|||||||
Reference in New Issue
Block a user