Repository navigation
新增 Node 按卷磁盘采样与不完整结果 - #78
Merged
Merged
Conversation
LPX-E5BD8
marked this pull request as ready for review
November 7, 2026 15:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Node 增加按卷磁盘采样基础,同时返回逻辑大小与文件系统报告的已分配空间,并按 inode 去重重叠目录和硬链接。路径变化、读取失败、跨卷或预算耗尽时保留明确的不完整结果,避免把部分观测当成零占用或完整统计。
这是 ST-59 的独立基础阶段,尚未接入运行时、历史记录、容量限制、种子或自动清理。采样不读取文件内容,不改变执行权限。采用固定提交
09cd2609,另补共享 descriptor 路径查询所需的两处 crate 内可见性。Linux 首轮 CI 暴露目录变更测试依赖刚创建目录的时间戳立即改变。修复将 fixture 的目录 mtime 预置为旧值,再执行真实文件创建,并验证 Stamp 改变后必须返回 Changed;不增加等待或重试,不改变扫描实现。时间戳量化能解释该现象,原失败日志没有记录具体文件系统 Stamp。
验证:
df90311feb86a3acb5195343b9a5f1b9f8bd3f6d的 Linux CI 通过:全 workspace nextest 3163/3163 首次通过、25 skipped,无 retry/flaky;修改后的目录变更用例实际通过。doctests 2 passed、11 ignored、0 failed。