Repository navigation
Fix three main CI failures from the Mac adapter export and seq2seq PRs - #12354
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This was referenced Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three checks have been red on main and every open PR since 2026-09-29. Two come from #7539 (Mac adapter-format option for LoRA export) and one from #4226 (seq2seq support). In the two #7539 cases the checks are right and the product changes. In the #4226 case the product is right and the test changes.
(Python 3.13, rest)test_text_io_encoding.py::test_text_io_names_its_encoding[export.py1]Repo tests (CPU, studio)test_tauri_branding_contract.py::test_desktop_surfaces_do_not_restore_studio_brandingRepo tests (CPU, rest)test_fa2_fast_generate_bypass.py(2 tests)1. Export subprocesses decoded with the locale codec
core/export/export.pygained twosubprocess.run(..., text = True)calls: the llama.cppgit cloneand theconvert_lora_to_gguf.pyrun. Withoutencoding, Python decodes their output with the locale codec, which is the ANSI code page on Windows and ASCII under a C locale. A model name, path or converter message with non-ASCII text then raisesUnicodeDecodeErrorwhile reading output, and the real error is lost. Both calls now passencoding = "utf-8", errors = "replace", as the lint asks and as the rest of the backend already does.2. "Unsloth Studio" in export copy
features/export/constants.tssays the plain adapter format "loads in transformers, vLLM, and Unsloth Studio on GPU machines". The desktop app calls itself "Unsloth", and the branding contract sweeps every frontend source for the old name. The sentence now reads "loads in transformers, vLLM, and Unsloth on GPU machines", which is also accurate for the library. This is a one-word change to help text, and no test pins the old wording.3. FA2 generate test missing a new global
test_fa2_fast_generate_bypass.pyrebuildsunsloth_base_fast_generatefromvision.pysource and runs it in a hand-built namespace, to avoid importing bitsandbytes and CUDA. #4226 made the function call the module-level_is_text_seq2seq_config, which the namespace did not provide, so both tests fail withNameError. Both namespaces now seed it. Both tests use Qwen3-VL, which is multimodal, solambda config: Falseis what the real helper returns for them.Testing
On main, each of the three failing tests fails. On this branch:
tests/test_text_io_encoding.py: 617 passed.tests/studio/test_tauri_branding_contract.py: 10 passed.tests/test_fa2_fast_generate_bypass.py tests/test_seq2seq_auto_class.py: 29 passed.tests/test_export_*.py,tests/test_hub_write_ambient_token.py): no change from main. The one failure is a missingfastmcpin my local environment, and it fails the same way on main.