Skip to content

filesystem: HFS+ volume test times out under load (hdiutil exceeds vitest's 5 s default) #5314

Closed

Description

@cliffhall

Problem

The filesystem test pinned-directory.test.ts > createDirectoryInPlace > creates a directory with a precomposed name on a real HFS+ volume (darwin only) runs hdiutil create, hdiutil attach and hdiutil detach under vitest's default 5000 ms test timeout. On a loaded machine those calls take longer than that. The test then fails with Error: Test timed out in 5000ms, and npm run local:gate exits 1.

On 2026-10-27, while five agents worked in parallel worktrees on one machine, this happened in 3 of about 9 local:gate runs. Each of those runs was for a fetch-only change. Run on its own, the test passes in about 1.5 s.

Reproduce

On macOS under load (several other test suites running), run npm run local:gate, or loop npx vitest run __tests__/pinned-directory.test.ts -t HFS in src/filesystem. The hdiutil steps sometimes go past 5 s.

Expected

The test does not fail on timing alone. It should get an explicit timeout sized for hdiutil (say 30 s, passed as the it timeout argument), not a retry, which AGENTS.md forbids. Alternatively, it should create and attach the image once in a beforeAll with its own timeout.

Activity

  1. added this to the v2.3.0 milestone on Oct 27, 2026
  2. added
    bugSomething isn't working
    server-filesystemReference implementation for the Filesystem MCP server - src/filesystem
    on Oct 27, 2026
  3. self-assigned this
    on Oct 28, 2026
  4. cliffhall commented on Oct 29, 2026

    @cliffhall
    MemberAuthor

    Shipped in #5344, merged into v2/main; it releases with milestone v2.3.0. Tested together with the rest of the #5269 work in the rollup #5405.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingserver-filesystemReference implementation for the Filesystem MCP server - src/filesystemv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions