Skip to content

Tests: check the mflux pin against the version the MLX engine expects, and read checked-in sources as UTF-8 (main reds) - #18952

Merged
danielhanchen merged 1 commit into
mainfrom
fix/mlx-pin-test-and-read-encodings
Nov 22, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/mlx-pin-test-and-read-encodings

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Two checks are red on main and fail on every PR that runs them, for example the staging run for #18941:

Failing check Introduced by Which side was wrong Fix
tests/studio/install/test_mlx_install.py::test_mlx_image_engine_pins_leave_the_mlx_stack_alone (studio-install shard): assert 'mflux==0.24.0'.startswith('mflux==0.22.') #18933 bumped mflux to 0.24.0 (0.22.0 kept for Python 3.10) Test. The bump is intended. The test pinned a version literal of its own, so every mflux bump breaks it. The test now checks the installer pin against the MLX engine itself: _MLX_DIFFUSION_PINS must be exactly mflux==<MFLUX_VERSION> for the running interpreter, and that version must be in MFLUX_COMPATIBLE_VERSIONS. Both are read from mlx_diffusion_convert.py's source, since importing it needs numpy and the installer tests do not have it. The check is stricter than before: an installer pin that drifts from what the engine accepts at runtime now fails.
tests/test_source_read_encoding.py::test_checked_in_file_reads_name_an_encoding (rest-2 shard): 3 reads with the platform default encoding #18923 (tests/test_adapter_unc_base_guard.py:30 and :91) and tests/test_inkling2_support.py:367 Tests. On Windows a bare read_text() uses the locale code page. encoding = "utf-8" on those three reads.

Only tests change.

Testing

  • tests/studio/install/test_mlx_install.py, tests/test_source_read_encoding.py, tests/test_adapter_unc_base_guard.py, tests/test_inkling2_support.py: 3 failed on main. With this change, 92 passed, 4 skipped.
  • Sabotage: with _MFLUX_PIN changed to mflux==0.23.0, a version the engine does not expect, the mflux test fails with assert 'mflux==0.23.0' == 'mflux==0.24.0'.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-22T22:47:54.285045Z
We couldn’t complete this review. Comment @codex review to try again.
810707b 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@danielhanchen
danielhanchen merged commit 1f35250 into main Nov 22, 2026
@danielhanchen
danielhanchen deleted the fix/mlx-pin-test-and-read-encodings branch November 22, 2026 23:10
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