Skip to content

Fix Windows CI spawn test path comparison - #5

Open
XYAIStudio wants to merge 1 commit into
mainfrom
cursor/fix-windows-spawn-path-73ec
Open

XYAIStudio wants to merge 1 commit into
mainfrom
cursor/fix-windows-spawn-path-73ec

Conversation

@XYAIStudio

Copy link
Copy Markdown
Owner

Summary

Windows CI on #4 failed one test: test_spawn_writes_registry_and_agent_row compared Path.as_posix() (C:/...) against JSON that stores native Windows paths (C:\\...).

The agent row was created. The assertion was platform-incorrect.

Fix: parse config_json and compare Path(workspace_dir) == compiled.workspace.

Target branch

  • Base is main

Type of change

  • Bug fix

Test plan

uv run pytest tests/unit/test_colleague_spawn.py
  • Test updated and passing locally
Open in Web Open in Cursor 

Compare workspace_dir as Path objects so native Windows backslashes in
config_json match the compiled workspace.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
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