Guard early direct-file staging

This commit is contained in:
2026-06-13 09:29:00 +08:00
parent 8f47c95bca
commit 6a64219533
3 changed files with 76 additions and 92 deletions

View File

@@ -1432,3 +1432,54 @@ wasm-port/tests/host/verify_host_smokes.sh
`assertInterpRegressionFileStaging(...)` 或小型 per-directory helper 替换内联 staged
path 对账。继续避免 blocked runtime promotion、browser full inventory 扩面和 JS CNC
语义实现。
三十四、2026-06-13 继续执行记录early direct-file staging guard
本批继续收敛 earlier direct-file guard处理 5 个已有 Node/browser coverage 的 fixture
- `do-while-break/bug.ngc`
- `do-while-break/test.ngc`
- `oword-bug315/test.ngc`
- `oword-bug315-p2/test.ngc`
- `exists/test.ngc`
- `return-value/test.ngc`
完成内容:
- Node 侧将 `do-while-break` 改为 `writeInterpRegressionFiles(...)` 加
`assertInterpRegressionStaging(...)`,对该目录 2 个 `.ngc` fixture 精确对账;
- Node 侧将 `oword-bug315`、`oword-bug315-p2`、`exists`、`return-value` 的内联
staged path 对账替换为 `assertInterpRegressionFileStaging(...)`
- browser 侧同步将 `do-while-break` 改为 fixed manifest 加 directory staging guard
- browser 侧同步将其余 4 个单文件 fixture 改为 single-file staging helper
- browser 侧仍不枚举目录;
- 仅整理 host/filesystem staging guard不改变 O-word control-flow、exists 或 return
value 语义。
已运行验证:
```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
```
结果:全部通过。
下一步建议:
继续收敛后续 earlier direct-file guard。优先候选
- `subs-follow-main`
- `fractional-linenumbers`
- `crazy-paths`
- `namedparam-bug424`
- `flowsnake`
这些已有 Node/browser coverage 和 fixed `.ngc` manifest可继续用
`assertInterpRegressionFileStaging(...)` 替换内联 staged path 对账。继续避免 blocked
runtime promotion、browser full inventory 扩面和 JS CNC 语义实现。