Skip to content

Compare two test paths with the separator they are built with - #2094

Merged
Mikola Lysenko (mikolalysenko) merged 1 commit into
mainfrom
fix/unit-test-path-on-windows
Nov 16, 2026
Merged

Mikola Lysenko (mikolalysenko) merged 1 commit into
mainfrom
fix/unit-test-path-on-windows

Conversation

@mikolalysenko

Copy link
Copy Markdown
Collaborator

Fixes #2080

A unit test compared paths built by Path::join with /-joined string literals. On Windows the joined path uses a backslash, so the test failed there and has kept the scheduled main run's test (windows-latest, 1) leg red.

The expected values are now built the same way as the ones under test, so the comparison stays an exact string comparison on every platform.

Test-only change. The test passes locally on macOS; the Windows leg is what confirms it.

Supersedes #2082, which makes the same fix by comparing with Path equality. That comparison also accepts paths that differ in repeated separators or . components.

🤖 Generated with Claude Code

A unit test compared paths built by `Path::join` with `/`-joined
literals. On Windows the joined path uses a backslash, so the test
failed there and has kept the scheduled run on main red. The expected
values are now built the same way as the ones under test.

Fixes #2080

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@cursor

cursor Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Test-only change with no production code impact.

Overview
Fixes a cross-platform unit test failure in hot_patch’s a_start_is_a_project_pass_then_a_global_pass test.

Expected manifest paths were hardcoded as /state/project/manifest.json and /state/global/manifest.json, while production code sets manifest_path via Path::join, which uses the OS path separator (backslashes on Windows). The test now builds expectations with the same join + to_string_lossy pattern via a small manifest helper, so string equality holds on every platform.

Test-only; addresses the red test (windows-latest, 1) CI leg (issue #2080).

Reviewed by Cursor Bugbot for commit 8954c24. Configure here.

Merged via the queue into main with commit 02f3979 Nov 16, 2026
50 checks passed
@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the fix/unit-test-path-on-windows branch November 16, 2026 18:14
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.

Windows: hot_patch test compares a Path::join result against a /-joined string (main CI red since #2068)

2 participants