Repository navigation
Tests: fix four studio-shard failures on main (picker full-list setting, MLX batch sizes, QAT CUDA skip) - #18471
Merged
Merged
Conversation
… gate the QAT stream test on real CUDA
Codex Review Summary: ✅ CompletedThis 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. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. 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 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
Four tests fail on
mainin the "Repo tests (CPU, studio)" shard, so every PR that runs it is red (seen on the staging runs of #18353 and others). Reproduced onmainat415cdcf1be: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_collapsednow accepts either form, and when the setting drives it, also asserts the store default isloadBool(PICKER_EXPAND_LOADED_KEY, false). Flipping that default totruefails 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_ubatchare 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 requirestarget.isGgufand "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. Droppingn_ubatchfrom the copied keys fails it.QAT stream test skip guard (#18434): PR was wrong
tests/test_qat_weight_memo_guards.pygatedtest_cached_weight_not_served_to_another_streamontorch.cuda.is_available(), whichtests/_zoo_aggressive_cuda_spoof.pypatches toTrueprocess-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 onhas_real_cuda()first, as the other CUDA-only tests do.Testing
241 passed, 1 skippedon this branch; the same four fail onmain.pickerExpandLoadedset totrue: the picker test fails;n_batchsent without the GGUF/MLX gate: the end-to-end batch test fails;n_ubatchdropped from the backend override copy: the server-mirror test fails;