Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

filesystem: bounded-walk 100000-entry test times out on slow Windows runners (vitest's 5 s default)

已关闭 适合新手
#5,328 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@cliffhall 已经在做这个了。

开始于 2026年10月28日。

  • #5331 来自 @cliffhall —— 已合并

评估

难度
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 内容生成。

描述

bug server-filesystem v2

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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

modelcontextprotocol/servers 的其他 Issue

查看 modelcontextprotocol/servers 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。