Skip to content

Conversation

@friggeri
Copy link
Collaborator

All SDK test harnesses now generate lowercase snapshot filenames to avoid collisions when checking out on macOS/Windows (case-insensitive filesystems).

  • Node.js: Added .toLowerCase() to filename generation
  • Go: Added strings.ToLower() to filename generation
  • .NET: Simplified to single regex + ToLowerInvariant()
  • Python: Added .lower() to filename generation

Also renamed existing snapshot files to lowercase and removed duplicates that only differed by case.

All SDK test harnesses now generate lowercase snapshot filenames to avoid
collisions when checking out on macOS/Windows (case-insensitive filesystems).

- Node.js: Added .toLowerCase() to filename generation
- Go: Added strings.ToLower() to filename generation
- .NET: Simplified to single regex + ToLowerInvariant()
- Python: Added .lower() to filename generation

Also renamed existing snapshot files to lowercase and removed duplicates
that only differed by case.
@friggeri friggeri requested a review from a team as a code owner January 14, 2026 17:53
Copilot AI review requested due to automatic review settings January 14, 2026 17:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes snapshot filename collisions that occur on case-insensitive filesystems (macOS/Windows) by ensuring all SDK test harnesses generate lowercase snapshot filenames.

Changes:

  • Modified filename generation in all four SDK test harnesses (Node.js, Go, Python, .NET) to convert test names to lowercase
  • Renamed existing snapshot files from mixed-case to lowercase (e.g., accept_MCP_* → accept_mcp_*)
  • Removed duplicate snapshot files that only differed by case

Reviewed changes

Copilot reviewed 7 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
python/e2e/testharness/context.py Added .lower() to sanitized test name generation
nodejs/test/e2e/harness/sdkTestContext.ts Added .toLowerCase() to task name filename conversion
go/e2e/testharness/context.go Added strings.ToLower() to sanitized name generation
dotnet/test/Harness/E2ETestContext.cs Simplified regex logic and added .ToLowerInvariant()
test/snapshots/mcpservers/accept_mcp_server_config_on_create.yaml New lowercase snapshot file
test/snapshots/mcpservers/accept_mcp_server_config_on_resume.yaml New lowercase snapshot file
test/snapshots/mcpservers/accept_MCP_server_config_on_create.yaml Removed mixed-case duplicate
test/snapshots/mcpservers/accept_MCP_server_config_on_resume.yaml Removed mixed-case duplicate
test/snapshots/mcp-and-agents/should_accept_both_MCP_servers_and_custom_agents.yaml Removed mixed-case duplicate (moved to combinedconfiguration)
test/snapshots/combinedconfiguration/accept_mcp_servers_and_custom_agents.yaml New lowercase snapshot file
test/snapshots/session/should_create_a_session_with_replaced_systemmessage_config.yaml New lowercase snapshot file
test/snapshots/session/should_create_a_session_with_excludedtools.yaml New lowercase snapshot file
test/snapshots/session/should_create_a_session_with_availabletools.yaml New lowercase snapshot file
test/snapshots/session/should_create_a_session_with_appended_systemmessage_config.yaml New lowercase snapshot file
test/snapshots/permissions/should_receive_toolcallid_in_permission_requests.yaml New lowercase snapshot file
test/snapshots/ask/should_invoke_onevent_callback_for_each_event.yaml New lowercase snapshot file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@friggeri friggeri added this pull request to the merge queue Jan 14, 2026
Merged via the queue into main with commit 3087d8c Jan 14, 2026
43 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants