Skip to content

Repo tests (CPU): drop the dead test_t[!p] gloo glob, utf-8 for the MiniMax LoRA sidecar read - #17913

Merged
danielhanchen merged 1 commit into
mainfrom
fix-gloo-glob-minimax-encoding
Nov 16, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix-gloo-glob-minimax-encoding

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Two checks are red on main right now:

  1. Repo tests (CPU, rest): tests/test_ci_repo_cpu_shards.py::TestEveryGlobRootMatchesAFile::test_no_shard_hands_pytest_an_unexpanded_pattern

    AssertionError: these shard globs match no test file: [('gloo', 'tests/test_t[!p]*gloo*.py')]
    

    Repo tests (CPU): one shard for each new gloo test file; explicit encoding in test_bind_local_cuda_device #17892 added tests/test_t[!p]*gloo*.py to the gloo shard so that tests/test_tokenizer_save_ddp_gloo.py (from Tokenizer save under DDP / FSDP2: private copy per rank, then move into place #17862) was collected by some shard. Fix main Backend CI: PP layer name on transformers 5.17, INT8 attention without Triton, kernel and test gates #17882 landed at the same time and renamed that file to tests/test_local_save_tokenizer_ddp_gloo.py, which the gloo shard's first glob (tests/test_[!dfimpstu]*gloo*.py) already covers. The test_t[!p] glob now matches nothing, and an unmatched glob reaches pytest as a literal path. Both PRs were right on their own; together they leave one dead glob.

  2. (Python 3.13, rest) and Repo tests (CPU, rest): the text I/O encoding gates

    test_text_io_names_its_encoding[diffusion_minimax_h3_image.py]
    assert not ['diffusion_minimax_h3_image.py:3422: read_text() without encoding']
    

    Studio: LoRA training for MiniMax-H3-Image, and loading the trained LoRA #17863 added json.loads(sidecar.read_text()) for the LoRA adapter_config.json sidecar. Without an encoding that read uses the locale codepage on Windows.

Change

  • .github/workflows/studio-backend-ci.yml: remove tests/test_t[!p]*gloo*.py from the gloo shard and restore the comment that a test_t[!p]* gloo file would be reported as dropped by tests/test_ci_repo_cpu_shards.py (with a note on why the glob is not kept for later: an unmatched glob is a missing file to pytest).
  • studio/backend/core/inference/diffusion_minimax_h3_image.py: sidecar.read_text(encoding = "utf-8"). JSON is UTF-8, so behaviour on Linux and macOS is unchanged.

Testing

  • tests/test_ci_repo_cpu_shards.py and test_text_io_encoding.py::test_text_io_names_its_encoding[diffusion_minimax_h3_image.py]: 16 passed on this branch, 2 failed on main.
  • tests/test_runtime_text_encoding.py and studio/backend/tests/test_diffusion_minimax_h3_image.py pass; studio/backend/tests/test_text_io_encoding.py passes for every tracked file.

…okenizer test rename; utf-8 for the MiniMax LoRA sidecar
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T05:47:27.654764Z b6f9528 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

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: b6f9528f68

ℹ️ 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 b0181c6 into main Nov 16, 2026
@danielhanchen
danielhanchen deleted the fix-gloo-glob-minimax-encoding branch November 16, 2026 05:49
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