Guard interp regression staging helper

This commit is contained in:
2026-06-13 08:35:35 +08:00
parent 035cd8fa68
commit 7afa7a60b9
3 changed files with 75 additions and 34 deletions

View File

@@ -887,3 +887,48 @@ remap file-list guard 的当前显性剩余项已基本收束。下一批建议
fixture若没有合适小批次转向补齐 staging guard 的文档索引或生成一个
machine-readable fixture coverage manifest。继续避免 blocked runtime promotion、
browser full inventory 扩面和 JS CNC 语义实现。
二十二、2026-06-13 继续执行记录interp fixture staging helper guard
本批回到 `writeInterpRegressionFiles(...)` helper先整理已有 Node/browser coverage
里的两个固定 `.ngc/.tbl` fixture
- `interp/cam-nisley`
- `interp/g76`
完成内容:
- Node 侧新增 `assertInterpRegressionStaging(...)`
- Node 侧对 upstream vendored `.ini/.ngc/.tbl` 文件清单与 fixed manifest 精确对账;
- Node 侧检查 staged path 与 `/work/interp/<name>/...` fixed manifest 一致;
- browser 侧新增同名 `assertInterpRegressionStaging(...)`
- browser 侧检查 fixed manifest duplicate-free并检查 staged path 去掉
`/work/browser-interp/<name>/` 前缀后与 fixed manifest 一致;
- `cam-nisley` 与 `g76` 改用该 helper去掉内联重复 guard
- 仅整理 host/filesystem staging guard不改变 G-code、tool table 或 threading 语义。
已运行验证:
```bash
git diff --check
SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_interp_wasm.sh
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_sim_configs_inventory_wasm.sh
wasm-port/tests/host/verify_host_smokes.sh
```
结果:全部通过。
下一步建议:
继续复用 `assertInterpRegressionStaging(...)` 处理已有 `writeInterpRegressionFiles(...)`
调用里的小批次。优先候选:
- `m98m99/09-disable-fanuc-subs`
- `m98m99/11-main-program-oword`
这两个已有固定 file list 和 Node/browser coverage适合把现有 m98m99 aggregate
slice guard 拆出更直接的 per-directory staged path guard。仍不推进 blocked runtime
promotion、browser full inventory 扩面或 JS CNC 语义实现。