Repository navigation
Fix the diffusion scheduler, parity, formatter and bundle reds on main - #13612
Merged
Merged
Conversation
- diffusion.py: read pipe.scheduler with getattr on the generate path, like the status poll. #13569 made every generate touch it, which broke 173 test_diffusion_backend tests whose fake pipelines have none. - test_diffusion_autoopt_parity: skip the two fixture comparisons when diffusers is not installed (Backend CI); without it nothing compiles and every case differs. - Format three files from #13610 and #13531. - Raise the startup budget by the 0.8 KB transfer five merges added.
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. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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 13, 2026
… formatting and the bundle budget
This was referenced Oct 13, 2026
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 gates are red on
main(reproduced at 8f9ea7a / c35052e). They show up in every PR's Backend CI and Frontend CI, for example on #13579, which only touches the frontend.1. 173
test_diffusion_backend.pyfailures:'_FakePipe' object has no attribute 'scheduler'#13569 (Images page sampler choice) added this line to the generate path:
It reads
pipe.scheduleron every request, beforebuild_schedulerreturns early for the default sampler. The status poll it pairs with already readsgetattr(state.pipe, "scheduler", None), andsampler_options(None)returns no samplers.The product is wrong here, not the test fakes. A pipeline without a scheduler attribute now fails every generation even when no sampler was picked. The generate path now uses the same
getattr. A default request then keeps the pipeline as is, and any other sampler is refused bybuild_schedulerwith its existing "not available for the loaded model" error.test_unload_cancels_pipeline_construction/ cancellation cases that already flake at Studio: pick the sampler on the Images page and load v-prediction SDXL checkpoints correctly #13569's parent. Which ones fail varies from run to run on a loaded host, so they are not touched here.2.
test_diffusion_autoopt_parity.py: two fixture comparisons fail in CIThese two tests have failed in Backend CI since #13520 added them; it already shows on that PR's own run. The fixture was captured with diffusers installed. Without diffusers, nothing compiles and the diffusers-source patches switch themselves off. That makes 436 of 624 cases differ, which says nothing about the auto-optimizer. Backend CI does not install diffusers.
Both tests now
pytest.importorskip("diffusers"), like the other diffusers-backed suites. With diffusers present they still run and pass. The family-registry test in the same file does not need diffusers and is unchanged.3.
test_formatter_fixed_point.pyThese files are not a fixed point of the
ruff-format-with-kwargshook:test_diffusion_component_sizes.py(Studio: trim comments in the video header sizes code #13610): only blank lines left behind by its comment trimming.test_h3_native_memory_fit.py(Studio: fit MiniMax-H3 GGUF to a Vulkan host's GTT pool before rendering #13531).diffusion.py(#13610) was reformatted along with the line edited above. Everything in this section is output ofscripts/run_ruff_format.pyonly.4. Startup bundle 0.1 KB over budget
Measured after each frontend merge since #13562 last set the budget:
The step that crossed is the token activity Chart view (#13558). Diffing the modulepreload lists before and after it shows a single new startup chunk,
middleware. That iszustand/middleware, pulled in by the new persisteduseActivityChartStore. It is real code the eager store uses. The budget is raised by the 0.8 KB transfer / 2.1 KB raw that these five merges added, with the measurement recorded aboveBUDGETas for the earlier raises.Verification
test_diffusion_backend.py+test_diffusion_sampler.py(-n 8)test_diffusion_backend.pytest_diffusion_autoopt_parity.py, diffusers hidden (CI condition)test_diffusion_autoopt_parity.py, diffusers installedtest_formatter_fixed_point.pytest_diffusion_component_sizes.py,test_h3_native_memory_fit.pynpm run bundle:checkbundle-budget-cli/bundle-budget-closuretests