Commit Graph
5 Commits
Author SHA1 Message Date
Menghuan1918 57fe6e657d test: 临时目录清理统一走 removeTree(修 Windows 上的 ENOTEMPTY 竞态)
CI 在 windows lane 上红在**清理**而不是断言:
`rmSync(scratch, { recursive: true, force: true })` 抛
`ENOTEMPTY: rmdir …archives-pvpAWR`——刚被 kill 的 zip/tar 子进程(以及刚关闭的
fs.watch / 刚结束的 git 子进程)还没被系统释放句柄,删除于是失败在一个**已经通过**
的用例的 afterEach 里(那一次 2466 个用例全过,只有清理挂掉,整个 lane 变红)。

`maxRetries` + `retryDelay` 正是 Node 为这种场景提供的对策,因此新增
`tests/temp-tree.ts` 的 `removeTree()`,把 30 份 spec(175 处 `{ recursive, force }`
写法)统一换过去,并清掉随之不再使用的 `rmSync` 导入。POSIX 上首次即成功、不触发
重试,行为不变。

本地:typecheck / lint 干净,全量 210 文件 / 2524 通过。
2026-10-16 00:51:11 +08:00
HuanLinOTO 14320952be fix(train): 清理 fs-write-relative-path.spec 的未用导入(lint) 2026-10-01 17:26:29 +08:00
HuanLinOTO 37fb9204b0 fix(paths): ~ 是主目录路径而不是会话相对路径,展开后再解析(Fixes #713,随 Phase 2 路径簇顺带修) 2026-10-01 17:20:06 +08:00
HuanLinOTO 002046cc47 Merge PR #655: fix(server): resolve session-relative paths in fs.write and fs.read
# Conflicts:
#	src/path-security.ts
2026-10-01 17:14:58 +08:00
eeeeeeaaaa12 42d6412cff test: pin the session-relative path resolution in fs.write (#646)
Covers relative-path resolution, absolute-path passthrough, and workspace fencing.
2026-09-13 13:15:45 +08:00