Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Chiusa Adatta ai principianti
#5,328 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@cliffhall ci sta già lavorando.

Dal 28/10/2026.

  • #5331 di @cliffhall — integrata

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
testing

Direzione di ricerca

Leggi src/filesystem/__tests__/bounded-walk.test.ts e individua il test search_files chiamato “stops with an error after visiting 100000 entries”. Assegna a quel test un timeout esplicito e aggiungi un commento che spieghi la visita intenzionale di 100,001 voci. Esegui il test mirato e conferma che passa con il timeout più lungo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
91.6k
Fork
11.9k
Merge medio
4h 38m
PR unite (30g)
241

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di modelcontextprotocol/servers

Tutte le issue di modelcontextprotocol/servers

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.