Skip to content

Fix the diffusion scheduler, parity, formatter and bundle reds on main - #13612

Merged
danielhanchen merged 1 commit into
mainfrom
ci-main-reds-oct13c
Oct 13, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-main-reds-oct13c

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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.py failures: '_FakePipe' object has no attribute 'scheduler'

#13569 (Images page sampler choice) added this line to the generate path:

swapped, resolved_schedule = build_scheduler(pipe.scheduler, sampler, schedule_type)

It reads pipe.scheduler on every request, before build_scheduler returns early for the default sampler. The status poll it pairs with already reads getattr(state.pipe, "scheduler", None), and sampler_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 by build_scheduler with its existing "not available for the loaded model" error.

2. test_diffusion_autoopt_parity.py: two fixture comparisons fail in CI

These 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.py

These files are not a fixed point of the ruff-format-with-kwargs hook:

diffusion.py (#13610) was reformatted along with the line edited above. Everything in this section is output of scripts/run_ruff_format.py only.

4. Startup bundle 0.1 KB over budget

over the startup budget: transfer 1975.3 KB > 1975.2 KB

Measured after each frontend merge since #13562 last set the budget:

commit raw KB transfer KB chunks
a062c04 (#13562) 6567.3 1974.5 98
fd30659 (#13456) 6568.2 1974.8 98
00b323c (#13515) 6568.6 1974.9 98
dd5ec48 (#13602) 6568.6 1975.0 98
8f9ea7a (#13558) 6569.3 1975.3 99
c35052e (#13573) 6569.4 1975.3 99

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 is zustand/middleware, pulled in by the new persisted useActivityChartStore. 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 above BUDGET as for the earlier raises.

Verification

main this PR
test_diffusion_backend.py + test_diffusion_sampler.py (-n 8) 173 failed in test_diffusion_backend.py 680 passed, 2 failed (pre-existing timing flakes, see above)
test_diffusion_autoopt_parity.py, diffusers hidden (CI condition) 2 failed 1 passed, 2 skipped
test_diffusion_autoopt_parity.py, diffusers installed 3 passed 3 passed
test_formatter_fixed_point.py 1 failed 16 passed
test_diffusion_component_sizes.py, test_h3_native_memory_fit.py 80 passed (h3); component sizes + sampler 91 passed, 9 skipped
npm run bundle:check 0.1 KB over within budget (0.8 KB transfer, 6.8 KB raw to spare)
bundle-budget-cli / bundle-budget-closure tests 43 passed

- 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.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T14:54:09.894526Z 89c13e6 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. Breezy!

Reviewed commit: 89c13e609d

ℹ️ 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".

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