Skip to content

批量修复 QC round 2 立案的 5 个 rust-tests 兼容问题 (#1607-#1611) - #1618

Merged
caomengxuan666 merged 5 commits into
mainfrom
fix/batch-compat-1607-1611
Nov 13, 2026
Merged

caomengxuan666 merged 5 commits into
mainfrom
fix/batch-compat-1607-1611

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

背景(重要)

五个 issue(#1607–#1611,QC round 2 由 rust-tests job 首跑报出)的行为修复已随 PR #1615(rust2/regex-fastpath,commits 2ad76397 + 305b056d)于 2026-11-13 合入 master;因该 PR 标题/正文只提了 #1602,五个 issue 一直无人引用、保持 OPEN。本 PR 做三件事:

  1. 在 5 个 owning 位置补 issue 号交叉引用(纯注释,零行为变更,一事一 commit);
  2. 对每项修复做独立复核(本地 + CI 双通道),复核证据如下;
  3. Fixes 五个 issue,合并即关单。

逐 issue 复核

issue 根因 修复(已在 master) 本单动作 验证
#1607 canon::dangling_tests 断言 !r.contains("dang"),而 scratch 目录自身名 canon-dang-*,symlink-capable 主机上任何绝对路径都自败 改为按 path component 断言 !r.split(['\\','/']).any(== "dang")(canon.rs:310) 注释补 (#1607) 本地绿;CI rust-tests 绿
#1608 chown::tests::from_filter 硬编码 --from Administrators 作"不匹配"用例;提权进程创建的文件 owner 就是 Administrators 组,于是匹配、-v 打印 按实际 owner 动态选对端账号(owner==Administrators 时选 Users,否则 Administrators;chown.rs:1053) 注释补 (#1608) 本地绿;CI rust-tests 绿
#1609 fs_win::create_symlink 把 TARGET 也过 api_path(ctx, target)(ctx.cwd.join),相对 target 被绝对化进 reparse point;GNU symlink(2) 存原文 TARGET 改走 normalize_operand(identity 于相对/已原生拼写 → 保原文;/c/x 盘符方言折叠 → C:\x,ctest ln_symlink_drive_dialect_lands_on_operand_drive)+ '/'→'\',LINK 侧保留 api_path(fs_win.rs:688;2ad76397+305b056d) 注释补 (#1609);-r 路径复核:ln.rs relative_target→create_symlink,相对结果为 identity,保原文,ln.rs:937 -rs -v 探针在 CI(有 symlink 特权)实测绿 本地绿(本机无特权 soft-skip);CI rust-tests 绿为 symlink 路径 oracle
#1610 nice::tests::no_command_prints_niceness 假设进程 NORMAL(印 0);GH runner 以 BELOW_NORMAL 拉起、子进程继承(runner-images#7663),产品如实印 10 测试内先 SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS) 再断言(nice.rs:408) 注释补 (#1610) 本地绿;CI rust-tests 绿
#1611 symlink 的 %s 报 0;GNU 报目标名字节长(#1310 契约);file_meta 的 CreateFileW 主路径缺 lstat 修正(find_first_meta fallback 已有) 主路径补齐:lstat && is_symlink 时 meta.size = read_link 目标名 len(fs_win.rs:455) 注释补 (#1611) 本地绿;CI rust-tests 绿(stat::tests::symlink_lstat 实建 reparse point)

验证

Fixes #1607, Fixes #1608, Fixes #1609, Fixes #1610, Fixes #1611

The behavioral fix (per-component link-name check instead of a
contains("dang") substring assert, which matched the canon-dang-*
scratch dir itself) already landed on master via 2ad7639
(PR #1615); the issue stayed open because nothing referenced it.
Pins the tracker link on the owning test. No behavior change.
The behavioral fix (pick the no-match --from account against the
actual file owner instead of hardcoding Administrators, which owns
the files on elevated CI runners) already landed via 2ad7639
(PR #1615); pins the tracker link on the owning test. No behavior
change.
The behavioral fix (TARGET keeps the operand text verbatim through
normalize_operand + the '/'->'\' reparse fold — identity for
relative spellings, drive-dialect fold for /c/x — while the LINK
operand keeps api_path) already landed via 2ad7639 + 305b056
(PR #1615); pins the tracker link on the owning function. No
behavior change. The -r path (ln.rs relative_target -> create_symlink)
is covered by the ln relative_requires_symbolic -rs probe, which
runs privileged on CI rust-tests (green on master).
The behavioral fix (SetPriorityClass(NORMAL) before asserting the
niceness, since hosted runners spawn BELOW_NORMAL and children
inherit the class) already landed via 2ad7639 (PR #1615); pins the
tracker link on the owning test. No behavior change.
…#1611

The behavioral fix (stat %s on a symlink = target-path byte length
on the CreateFileW main path; the find_first_meta fallback already
had it) already landed via 2ad7639 (PR #1615); pins the tracker
link on the owning function. No behavior change.
@caomengxuan666
caomengxuan666 merged commit ffcbe99 into main Nov 13, 2026
14 of 15 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/batch-compat-1607-1611 branch November 18, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant