Skip to content

Tests: skip the VAE canvas cases that build the MiniMax-H3 VAE when diffusers is missing - #17685

Merged
danielhanchen merged 1 commit into
mainfrom
fix/vae-canvas-tests-need-diffusers
Nov 13, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/vae-canvas-tests-need-diffusers

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

(Python 3.13, a-f) fails on main and on every PR based on it since #17595 (seen on the staging runs for #15275 and #16707): 25 tests in studio/backend/tests/test_diffusion_vae_canvas.py, for example

tests/test_diffusion_vae_canvas.py:126: in test_constant_grid_matches_the_overlap_add_and_stock_does_not
tests/test_diffusion_vae_canvas.py:25: in _image_vae_cls
core/inference/diffusion_minimax_h3_image.py:211: in vae_class
core/inference/diffusion_minimax_h3_image.py:178: in _load_vendored
E   ModuleNotFoundError: No module named 'diffusers'

vae_class() returns diffusers' AutoencoderKLMiniMaxH3Image or, failing that, the vendored copy in studio/backend/vendor/diffusers_minimax_h3_image/. The vendored file builds on diffusers' own base classes (from diffusers.configuration_utils import ConfigMixin, diffusers.models.attention, ...), so without diffusers both paths fail. The Studio backend CI shards do not install diffusers.

The product code is fine: Studio only reaches this VAE when diffusers is installed. Only the test assumed diffusers was there. One test in the file already guards on it (pytest.importorskip("diffusers") at line 439).

Reproduced on main with diffusers blocked: 25 failed, 3 passed, 2 skipped.

Change

_image_vae_cls(), the helper every VAE-building test goes through, calls pytest.importorskip("diffusers") first. The tests that do not build the VAE (the bad-output probe and the graph race bookkeeping) still run without diffusers. Test-only change.

Testing

  • diffusers blocked: 3 passed, 27 skipped. main: 25 failed.
  • With diffusers installed: 30 passed, same as main.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 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-13T16:04:30.410948Z e6a608b 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.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-13T16:03:39.796924Z
We couldn’t complete this review. Comment @codex review to try again.
e6a608b PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: e6a608bd50

ℹ️ 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 9b7261e into main Nov 13, 2026
@danielhanchen
danielhanchen deleted the fix/vae-canvas-tests-need-diffusers branch November 13, 2026 16:07
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