Skip to content

[codex] Fix windows CI worktree path assertion#8

Merged
Telli merged 1 commit intomainfrom
codex/fix-ci-windows-path-flake
Apr 23, 2026
Merged

[codex] Fix windows CI worktree path assertion#8
Telli merged 1 commit intomainfrom
codex/fix-ci-windows-path-flake

Conversation

@Telli
Copy link
Copy Markdown
Contributor

@Telli Telli commented Apr 22, 2026

What changed

This PR fixes the current windows-latest CI failure by making the linked-worktree path assertion compare canonical paths instead of a Unix-shaped literal.

Why

The test used "/repo" as the expected string. On Windows, the same rooted path normalizes differently, so the test failed even though the underlying worktree resolution logic was correct.

Validation

  • dotnet test tests/SharpClaw.Code.UnitTests/SharpClaw.Code.UnitTests.csproj --no-restore --filter "FullyQualifiedName~GitWorkspaceService_should_detect_linked_worktree_main_path"
  • dotnet test SharpClawCode.sln --no-restore

@Telli Telli marked this pull request as ready for review April 23, 2026 04:58
Copilot AI review requested due to automatic review settings April 23, 2026 04:58
Copy link
Copy Markdown

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 a Windows CI failure in windows-latest by updating a unit test to compare normalized (canonical) paths rather than a Unix-style literal string, ensuring cross-platform path assertions remain stable.

Changes:

  • Normalize MainWorktreePath and expected path using Path.GetFullPath(...) in the linked-worktree snapshot test.

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

@Telli Telli merged commit 18de19f into main Apr 23, 2026
7 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.

2 participants