Repository navigation
Tests: catch up with four product changes that landed red on main - #13445
Merged
Merged
Conversation
test_return_logits_survives_for_training lifts for_training into a stub namespace that predates #13374's switch_training_mode, so the missing name came back as None. Stub it and the three-argument resolve, and make that namespace raise NameError on any unstubbed name. test_windows_torch_flavor_invariant: count #13396's causal-conv1d + mamba-ssm slot in the torch totals and its call in step 13. test_token_count_prompt_parity: stub #13372's browser agent store with its defaults; the count and the request both call browserAgentToolsForTurn. test_diffusion_mlx_engine_router (from #13379): read install_python_stack.py as UTF-8 for test_source_read_encoding.
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. 👍 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". |
danielhanchen
added a commit
that referenced
this pull request
Oct 12, 2026
…read (#13457) codex_auth.asyncio is the asyncio module, so patching its sleep replaced asyncio.sleep for every event loop in the worker. A loop left running by an earlier test then spun on the instant fake and flooded the recorded sleeps, and the assert's repr of that list ran past the 330 s pytest-timeout (seen on #13445). Route other threads to the real sleep.
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.
Problem
Four product PRs merged on Oct 12 without the test changes they needed, so main fails 13 tests in four files. It shows on unrelated PRs such as #13425. All four are the test lagging the product; none of the product changes is wrong.
tests/test_return_logits_survives_for_training.py(4)FastLlamaModel.for_traininginto a stub namespace. #13374 madefor_trainingcallswitch_training_mode(model, True, defer = True)and passcheckpointingtoresolve_training_gradient_checkpointing. #13392's branch predated that, and its namespace returnsNonefor unknown names, so it failed asTypeError: 'NoneType' object is not callable.tests/studio/install/test_windows_torch_flavor_invariant.py(3)base_total += 1, same gate as flash-attn) and_ensure_ssm_kernels()after_ensure_flash_attn()in step 13. The test pins both:assert 19 == 18, plus the step-13 call list.tests/studio/test_token_count_prompt_parity.py(5)buildLocalTokenCountExtrasnow callsbrowserAgentToolsForTurn(), which readsuseBrowserAgentStore. The harness defines no such store, so node fails withReferenceError: useBrowserAgentStore is not defined.tests/test_source_read_encoding.py[12]test_diffusion_mlx_engine_router.py:412readsinstall_python_stack.pywith a bareread_text().I checked each product change before touching its test:
_progress("mamba kernels")runs under, so progress still sums to 100%.browserAgentToolsForTurn()(chat-adapter.ts2296 and 4964), so their parity holds.Fix
switch_training_mode(returns([], apply)) and the three-argumentresolve_training_gradient_checkpointing/arm_gradient_checkpointing.for_training's namespace is now a_StrictNamespacethat raisesNameErrornaming any unstubbed global. The next drift will say what is missing instead of'NoneType' object is not callable. The other lifted functions keep the lenient namespace, because they rely on optional names reading asNone._ensure_ssm_kernelsafter_ensure_flash_attnin step 13. The no-torch and macOS totals are unchanged, as the gate excludes them.useBrowserAgentStorestub backed bystate.browserAgent, seeded with the store's defaults (enabled: false,historyAccess: "ask").read_text(encoding = "utf-8").Verification
studio/backend/tests/test_diffusion_mlx_engine_router.pytests/test_formatter_fixed_point.pywith the pinned ruffSabotage, product changed, this PR's tests:
for_trainingno longer restoresUNSLOTH_RETURN_LOGITS: 2 failed.causal-conv1d + mamba-ssmslot is removed frombase_total: 2 failed.thread_id: 1 failed.The other reds on #13425's run are already gone on main and are not touched here:
test_pypi_version_sync(zoo main is at 2026.10.4 again).