Skip to content

Tests: fix four studio-shard failures on main (picker full-list setting, MLX batch sizes, QAT CUDA skip) - #18471

Merged
danielhanchen merged 1 commit into
mainfrom
ci/main-red-picker-batch-qat
Nov 19, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/main-red-picker-batch-qat

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Four tests fail on main in the "Repo tests (CPU, studio)" shard, so every PR that runs it is red (seen on the staging runs of #18353 and others). Reproduced on main at 415cdcf1be:

FAILED tests/python/test_accelerator_skip_guards.py::test_no_skip_guard_reads_a_spoofable_accelerator_probe
FAILED tests/studio/test_model_picker_contracts.py::test_batch_sizes_setting_wired_end_to_end
FAILED tests/studio/test_model_picker_contracts.py::test_batch_sizes_reach_an_api_load_through_the_server_mirror
FAILED tests/studio/test_chat_ui_picker_collapsed_row.py::test_a_loaded_model_still_opens_the_picker_collapsed

Each was attributed to the PR that changed the code it reads, and each was checked for whether the PR or the test is wrong.

Root causes and changes

Picker collapsed after a load (#18445): test was wrong

#18445 added the "Show full model list" setting, so the load effect now calls setExpanded(useChatRuntimeStore.getState().pickerExpandLoaded) instead of a literal ?? false. The setting defaults to off, so a fresh browser (every CI driver) still opens the picker collapsed, which is what this test protects: the drivers' expand click is still needed.

test_a_loaded_model_still_opens_the_picker_collapsed now accepts either form, and when the setting drives it, also asserts the store default is loadBool(PICKER_EXPAND_LOADED_KEY, false). Flipping that default to true fails the test, which the old literal check could not see.

Batch sizes sent on a load (#18426): test was wrong

#18426 brought MLX up to GGUF parity, so n_batch / n_ubatch are now sent for (target.isGguf || mlx) and copied for MLX overrides too. GGUF behaviour is unchanged; the tests pinned the old GGUF-only literal.

  • test_batch_sizes_setting_wired_end_to_end: matches the gate with a regex that allows widening to MLX but still requires target.isGguf and "only when set". Dropping the gate (sending the fields to every engine) fails it.
  • test_batch_sizes_reach_an_api_load_through_the_server_mirror: replaces the source-text check on the GGUF block with a behavioural check through _override_load_kwargs, which the test already imports. Dropping n_ubatch from the copied keys fails it.

QAT stream test skip guard (#18434): PR was wrong

tests/test_qat_weight_memo_guards.py gated test_cached_weight_not_served_to_another_stream on torch.cuda.is_available(), which tests/_zoo_aggressive_cuda_spoof.py patches to True process-wide, so on a CPU runner the test un-skips and calls .cuda() when it shares a session with the spoofing suites. The existing guard caught this. The skip now gates on has_real_cuda() first, as the other CUDA-only tests do.

Testing

  • The four tests plus their files: 241 passed, 1 skipped on this branch; the same four fail on main.
  • Sabotage, each against this branch:
    • store default pickerExpandLoaded set to true: the picker test fails;
    • n_batch sent without the GGUF/MLX gate: the end-to-end batch test fails;
    • n_ubatch dropped from the backend override copy: the server-mirror test fails;
    • QAT skip guard reverted: the skip-guard test fails.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T13:20:52.862078Z f05f4d7 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. Bravo.

Reviewed commit: f05f4d7e29

ℹ️ 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 3ee3907 into main Nov 19, 2026
@danielhanchen
danielhanchen deleted the ci/main-red-picker-batch-qat branch November 19, 2026 13:21
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