You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
filesystem: bounded-walk's search_files cap test takes 13–30 s since #5817 (stubs realpath, entries no longer resolve through it) #5824
choreMaintenance: deps, build tooling, CI, cleanup — no user-facing behavior changeserver-filesystemReference implementation for the Filesystem MCP server - src/filesystemv2
The search_files case of __tests__/bounded-walk.test.ts ("stops with an error after visiting 100000 entries") has slowed from about 2 s to 13–30 s since #5817, and timed out at its 30 s WALK_CAP timeout on the Windows leg of the v2.7.0 CalVer PR's dispatched CI (run 47497514740). It passed on re-run. The directory_tree case beside it still takes about 0.5 s.
Why. The test lists 100,001 names that do not exist on disk and stubs fs.realpath so that "each entry costs a string check rather than a real lookup". Since #5817, search_files no longer resolves an entry through realpath, so the stub no longer short-circuits it: each listed name now reaches the real filesystem and misses. The test pays for 100,001 real misses, which entries that exist never would. Its cost now measures that, not the cap.
Expected. The test measures the 100,000-entry cap at about the cost it had (a few seconds), well inside WALK_CAP, on every leg. Restore the stub's intent so a listed name is cheap to resolve, rather than raising the timeout again (#5328 already did that once) or adding a retry, which AGENTS.md rules out.
The real-tree slowdown in search_files is a separate issue: #5825.
choreMaintenance: deps, build tooling, CI, cleanup — no user-facing behavior changeserver-filesystemReference implementation for the Filesystem MCP server - src/filesystemv2
Activity