filesystem: bounded-walk 100000-entry test times out on slow Windows runners (vitest's 5 s default)
维护者通常 1 天内回复
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 88/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- testing
调研方向
阅读src/filesystem/__tests__/bounded-walk.test.ts,找到名为“stops with an error after visiting 100000 entries.”的search_files测试。为该测试设置显式超时,并添加注释说明有意遍历 100,001 个条目。运行这个指定测试,并确认它在更长的超时时间下通过。
由索引模型根据 Issue 内容生成。
描述
src/filesystem/__tests__/bounded-walk.test.ts › search_files › "stops with an error after visiting 100000 entries" (added by #5326 for #4162) runs on vitest's default 5000 ms test timeout, but it walks MAX_WALK_ENTRIES + 1 mocked entries through the real search_files path, so its cost scales with the runner's speed.
Observed on the Windows runner (Test filesystem (Windows)):
| Run | Duration |
|---|---|
| v2/main 858cfff5 | 2638 ms (pass) |
| PR #5317 | 2845 ms (pass) |
| PR #5322 head 7b9cac11 (job) | 5047 ms → Test timed out in 5000ms |
The failure has nothing to do with the PR it failed on. The test passes about 2× under the limit on a normal run, so a slow runner pushes it over.
Expected: the test passes whatever the runner load, since its cost comes from the bound it checks and not from a bug.
Fix: give that one test an explicit timeout (for example it(name, fn, 30_000)) with a comment saying why: it walks 100,001 entries on purpose. Don't add a retry, which AGENTS.md forbids, and don't lower MAX_WALK_ENTRIES for the test, which would stop it testing the real bound. This is the same pattern as #5314, which covers the HFS+ disk-image test.
- 主要语言
- TypeScript
- 星标
- 91.6k
- 派生
- 11.9k
- 平均合并
- 4 小时 31 分钟
- 30 天内合并 PR
- 236
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/servers 的其他 Issue
-
enhancement server-everything v2
难度 2/5 1-3 小时 新手友好度 72/100
modelcontextprotocol/servers#5371 · 1 条评论 ·
维护者通常 1 天内回复
-
chore server-filesystem server-memory server-sequentialthinking v2
难度 2/5 1-3 小时 新手友好度 78/100
modelcontextprotocol/servers#5345 ·
维护者通常 1 天内回复
-
docs(git): clarify unconfined default scope and repository confinement options in README and CLI未关闭documentation server-git v2
难度 1/5 1 小时以内 新手友好度 74/100
modelcontextprotocol/servers#5230 · 1 条评论 ·
维护者通常 1 天内回复
-
bug server-filesystem v2
难度 2/5 1-3 小时 新手友好度 72/100
modelcontextprotocol/servers#5216 · 3 条评论 ·
维护者通常 1 天内回复
-
documentation server-git server-time v2
难度 2/5 1-3 小时 新手友好度 72/100
modelcontextprotocol/servers#5213 · 2 条评论 ·
维护者通常 1 天内回复
查看 modelcontextprotocol/servers 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
area:desktop area:ui bug platform:macos
难度 2/5 1-3 小时 新手友好度 67/100
anthropics/claude-code#106183 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 1/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
core: OpenRouter BYOK sessions record cost = 0 since v2.2.0 (ignores cost_details.upstream_inference_cost)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭reproduced
难度 2/5 1-3 小时 新手友好度 72/100
anomalyco/opencode#60558 · 1 条评论 ·
维护者通常 1 天内回复