Skip to content

Fix three main CI failures from the Mac adapter export and seq2seq PRs - #12354

Merged
danielhanchen merged 1 commit into
mainfrom
fix/main-ci-7539-4226
Sep 30, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/main-ci-7539-4226

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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.

Check Failing test Introduced by What was wrong
(Python 3.13, rest) test_text_io_encoding.py::test_text_io_names_its_encoding[export.py1] #7539 product
Repo tests (CPU, studio) test_tauri_branding_contract.py::test_desktop_surfaces_do_not_restore_studio_branding #7539 product copy
Repo tests (CPU, rest) test_fa2_fast_generate_bypass.py (2 tests) #4226 test

1. Export subprocesses decoded with the locale codec

core/export/export.py gained two subprocess.run(..., text = True) calls: the llama.cpp git clone and the convert_lora_to_gguf.py run. Without encoding, 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 raises UnicodeDecodeError while reading output, and the real error is lost. Both calls now pass encoding = "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.ts says 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.py rebuilds unsloth_base_fast_generate from vision.py source 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 with NameError. Both namespaces now seed it. Both tests use Qwen3-VL, which is multimodal, so lambda config: False is 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.
  • The export suites (tests/test_export_*.py, tests/test_hub_write_ambient_token.py): no change from main. The one failure is a missing fastmcp in my local environment, and it fails the same way on main.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 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-09-30T13:26:53.924409Z 561a533 Manual request
🔒 Security Review ⚠️ Failed 2026-09-30T13:23:48.863736Z 561a533 PR opened
ℹ️ 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

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 561a533018

ℹ️ 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 37489dd into main Sep 30, 2026
43 of 48 checks passed
@danielhanchen
danielhanchen deleted the fix/main-ci-7539-4226 branch September 30, 2026 13:59
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