Skip to content

fix(test): use relative editable path so test.sh runs on Windows - #607

Open
Betterchildren wants to merge 1 commit into
Panniantong:mainfrom
Betterchildren:fix/test-sh-windows-editable-install
Open

fix(test): use relative editable path so test.sh runs on Windows#607
Betterchildren wants to merge 1 commit into
Panniantong:mainfrom
Betterchildren:fix/test-sh-windows-editable-install

Conversation

@Betterchildren

Copy link
Copy Markdown

test.sh built the editable install target as -e "$REPO_ROOT[dev]". On Windows with Git Bash + native Python, the trailing [dev] defeats MSYS path conversion: the argument no longer looks like an existing path, so the /d/... form is passed through unchanged and native pip rejects it as "not a valid editable requirement". The install step therefore aborted at [2/5] before any test could run.

Install from a subshell cd'd into the repo using a relative .[dev], matching what CI already does on windows-latest. The constraints path stays absolute ($REPO_ROOT/constraints.txt): the file exists, so MSYS converts it cleanly, and test_integration_script pins that exact spelling.

`test.sh` built the editable install target as `-e "$REPO_ROOT[dev]"`.
On Windows with Git Bash + native Python, the trailing `[dev]` defeats
MSYS path conversion: the argument no longer looks like an existing
path, so the `/d/...` form is passed through unchanged and native pip
rejects it as "not a valid editable requirement". The install step
therefore aborted at [2/5] before any test could run.

Install from a subshell cd'd into the repo using a relative `.[dev]`,
matching what CI already does on windows-latest. The constraints path
stays absolute (`$REPO_ROOT/constraints.txt`): the file exists, so MSYS
converts it cleanly, and `test_integration_script` pins that exact
spelling.

Co-Authored-By: Claude Opus 4.8 <noreply@owtffssent.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.

1 participant