Guard initial remap staging paths

This commit is contained in:
2026-06-13 08:11:55 +08:00
parent 0588cec429
commit 3b1e4129c4
3 changed files with 121 additions and 24 deletions

View File

@@ -706,3 +706,50 @@ wasm-port/tests/host/verify_host_smokes.sh
优先候选:继续扫描剩余 `write*RegressionFiles(...)` helper 输出,或挑选短小单文件
direct-file case。仍不要推进 blocked runtime promotion、browser full inventory
扩面或 JS CNC 语义实现。
十八、2026-06-13 继续执行记录initial remap file-list staging path guard
本批按“已有明确 file list 的 remap fixture staged path guard”推进完成现有
Node/browser remap coverage 的 6 个小目录:
- `remap/duplicate-o-word`
- `remap/fail/args.0`
- `remap/fail/args.1`
- `remap/fail/args.2`
- `remap/fail/body-ngc`
- `remap/m30-interaction`
完成内容:
- Node 侧新增 `assertRemapRegressionStaging(...)`
- Node 侧将上述 6 个 inline remap file list 提成 fixed manifest
- Node 侧用 upstream vendored `.ini/.ngc` 文件清单与 fixed manifest 精确对账;
- Node 侧检查 `writeRemapRegressionFiles(...)` 目标 staged path 与 fixed manifest
一致;
- browser 侧新增同名 staged path guard
- browser 侧检查 staged path 去掉 `/work/browser-remap/<name>/` 前缀后与 fixed
manifest 一致;
- 仅校验文件清单与 staging 路径,不改变 remap 执行语义;
- browser 仍不依赖目录枚举。
已运行验证:
```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
```
结果:全部通过。
下一步建议:
继续按小批量处理剩余 `writeRemapRegressionFiles(...)` file list例如
`nested-remaps-oword`、`posargs.0`、`sequencing`、`remap-io`。注意 `remap-io`
会额外生成 `simpockets.tbl`,如处理该项应明确区分 vendored file list 与运行时
生成文件。继续避免 blocked runtime promotion、browser full inventory 扩面和
JS CNC 语义实现。