Skip to content

[Bug]: Two server tests assume Linux and fail on macOS (Bash 3.2, case-insensitive disk) #42139

Backlog

Description

@yaacovcorcos

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

Two server tests assume a Linux machine and fail on a stock Mac (system Bash 3.2, case-insensitive APFS):

apps/server/src/project/ProjectSetupScriptRunner.test.ts › "reports a nonzero completion for a syntax error" expects exit status 2 for if then. The fixture invokes /bin/bash, and macOS Bash 3.2 returns 1:

$ /bin/bash -c 'eval "if then"'; echo $?
/bin/bash: eval: line 0: syntax error near unexpected token `then'
/bin/bash: eval: line 0: `if then'
1

apps/server/src/provider/Drivers/ClaudeSkills.test.ts › "gives a synced namespace to an installed plugin, then the first synced row" creates both pstack and PSTACK. On a case-insensitive filesystem (macOS and Windows defaults) these resolve to the same directory, so the uppercase fixture overwrites the first fixture's plugin manifest and adds its skill to that directory.

Expected behavior

Both tests pass on macOS.

Actual behavior

Both fail on every run on macOS.

Impact

Minor bug or occasional failure

Version or commit

main @ 43a0e74

Environment

macOS 26.7.3 (Apple Silicon), Node 26.13.1, /bin/bash 3.2.57, APFS case-insensitive.

Workaround

Test-only fixes we use downstream:

  • Setup script: assert that the syntax-error row reports a numeric, nonzero exit status; keep the exact status 7 assertion for exit 7.
  • Claude skills: skip creating the uppercase fixture if its directory already exists, so the row still runs on case-sensitive volumes.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions