Guard browser OPFS custom session parameter seed
This commit is contained in:
51
text8.txt
51
text8.txt
@@ -1114,3 +1114,54 @@ host_wasm_opfs_browser_smokes=ok
|
||||
写入处是否还能用只读 expected-lines/helper 收敛,例如 parameter seed text 或
|
||||
tool-table seed text;只改测试胶水,保持精确文本校验,不改变 custom filename 输入、
|
||||
OPFS path、WASM path 字符串或保存/读取行为。
|
||||
|
||||
二十五、2026-06-14 继续执行记录:browser OPFS custom session parameter seed helper guard
|
||||
|
||||
本轮按上一条下一步建议继续收敛 custom session fixture input text 写入处,范围仍只
|
||||
触及 `wasm-port/tests/browser/interp_smoke.html` 的 browser/OPFS test glue。
|
||||
|
||||
完成内容:
|
||||
|
||||
- 新增 `opfsParameterSeedText(...)`,统一 custom session parameter seed text 中
|
||||
5161、5162、5220、5221、5399 的写入文本;
|
||||
- INI-named session 的 custom parameter seed 写入复用
|
||||
`opfsParameterSeedText(...)`;
|
||||
- explicit session 的 custom parameter seed 写入复用
|
||||
`opfsParameterSeedText(...)`;
|
||||
- seed text 仍保留 `5220 1` 和末尾空行,实际写入内容不变;
|
||||
- custom parameter/tool-table filename 输入、OPFS path、WASM path 字符串与
|
||||
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
|
||||
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
|
||||
```
|
||||
|
||||
下一步建议:
|
||||
|
||||
继续小批量 browser OPFS test glue guard。优先扫描 custom session fixture input text
|
||||
写入处的 tool-table seed text 是否还能用只读 helper 收敛;只改测试胶水,保持精确
|
||||
文本校验,不改变 custom filename 输入、OPFS path、WASM path 字符串或保存/读取行为。
|
||||
|
||||
@@ -4566,6 +4566,17 @@
|
||||
];
|
||||
}
|
||||
|
||||
function opfsParameterSeedText(parameter5161, parameter5162, parameter5221, parameter5399) {
|
||||
return [
|
||||
`5161 ${parameter5161}`,
|
||||
`5162 ${parameter5162}`,
|
||||
"5220 1",
|
||||
`5221 ${parameter5221}`,
|
||||
`5399 ${parameter5399}`,
|
||||
"",
|
||||
].join("\n");
|
||||
}
|
||||
|
||||
function opfsToolTableResultLines(operation, toolNo, pocketNo, extraLines = []) {
|
||||
return [
|
||||
`tooldata_${operation}=0`,
|
||||
@@ -9507,14 +9518,7 @@
|
||||
await writeOpfsMachineFile(
|
||||
iniFileMachineId,
|
||||
iniFileParameterFilename,
|
||||
[
|
||||
"5161 31.25",
|
||||
"5162 62.5",
|
||||
"5220 1",
|
||||
"5221 4.5",
|
||||
"5399 99",
|
||||
"",
|
||||
].join("\n"),
|
||||
opfsParameterSeedText("31.25", "62.5", "4.5", "99"),
|
||||
);
|
||||
await writeOpfsMachineFile(
|
||||
iniFileMachineId,
|
||||
@@ -9648,14 +9652,7 @@
|
||||
await writeOpfsMachineFile(
|
||||
iniOverrideMachineId,
|
||||
explicitParameterFilename,
|
||||
[
|
||||
"5161 41.25",
|
||||
"5162 82.5",
|
||||
"5220 1",
|
||||
"5221 6.5",
|
||||
"5399 101",
|
||||
"",
|
||||
].join("\n"),
|
||||
opfsParameterSeedText("41.25", "82.5", "6.5", "101"),
|
||||
);
|
||||
await writeOpfsMachineFile(
|
||||
iniOverrideMachineId,
|
||||
|
||||
Reference in New Issue
Block a user