Skip to content

Tests: plant uv.exe on Windows in the MLX repair minimal-PATH lookup test - #15995

Merged
danielhanchen merged 1 commit into
mainfrom
tests-mlx-repair-uv-name
Oct 29, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
tests-mlx-repair-uv-name

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

studio/backend/tests/test_mlx_repair.py::test_uv_executable_finds_installer_location_when_path_is_minimal fails on Windows on main. It only shows when a PR touching the MLX repair code gets a Windows leg (the staging xplat run for #15861, whose change does not touch this lookup):

E   AssertionError: assert None == 'C:\\...\\test_uv_executable_finds_insta0\\.local\\bin\\uv'
E    +  where None = <function _uv_executable at 0x...>()

_uv_executable() looks for _UV_NAME, which is uv.exe on Windows, under ~/.local/bin; the test (from #6494) always plants a file named uv. The product is right (Windows' uv installer writes uv.exe there); the test planted the POSIX name.

What changed

The test plants mr._UV_NAME, so it checks the same lookup on every platform.

Verification

  • Linux: tests/test_mlx_repair.py 41 passed.
  • With the ~/.local/bin candidate removed from _uv_executable(), the test fails, so it still guards the minimal-PATH lookup.
  • Windows: the staging windows-latest leg for this PR runs the file.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T16:33:40.852062Z 05cffe4 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 05cffe4df2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 081c1c5 into main Oct 29, 2026
0 of 35 checks passed
@danielhanchen
danielhanchen deleted the tests-mlx-repair-uv-name branch October 29, 2026 16:45
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