Repository navigation
Studio tests: refresh the diffusion family freeze for FastWan and stop dunders spreading the decode-rewrap scan - #18815
Merged
Conversation
…p dunders spreading the decode-rewrap scan
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. Another round soon, please! 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.
Problem
(Python 3.13, diffusion)fails onmainand on every PR based on it (for example #18806) with two failures:Both reproduce locally on
main(d8ff4de6a1). Running both tests on each Studio inference commit since the last greenmainattributes them:8d41610c50(#18800)d66aa77cee(#18779)6f4c2a7bd9(#18780)Causes
Family data freeze (#18779). #18779 adds the dense FastWan students as trusted video repos. The frozen table was not regenerated, so the only difference is two new
trusted_video_reposentries,fastvideo/fastwan2.1-t2v-1.3b-diffusersandfastvideo/fastwan2.2-ti2v-5b-fullattn-diffusers. The PR is right; the fixture is behind.Decode-rewrap scan (#18780). The test seeds every function that assigns
.decode, then marks any function that calls one of those by bare name as a rewrap helper too, to a fixpoint. #18780's opt-in draft decode is a context manager,TinyVaeDraftDecode, which swapsvae.decodein__enter__and restores it in__exit__. That made__enter__and__exit__seeds, and a bare-name match on__exit__/__enter__reaches every function that drives any context manager by hand, so the fixpoint spread to 510 functions. The draft swap itself is scoped and restores the previousdecodeon exit, and its fallback calls the decode it replaced, so the OOM scope is intact. The PR is right; the scan's name matching is too loose for dunders.Fix
Test-only:
tests/fixtures/diffusion_family_data_freeze.json: regenerated withUNSLOTH_FREEZE_UPDATE=1. The diff is exactly the two FastWan repos (2 lines added).test_every_decode_rewrap_site_restores_the_oom_scope: dunder method names are not propagated by name. A dunder is reached throughwithor an object protocol, never by a call to that name, so matching it by name cannot identify a caller. Named helpers such asinstall_untiled_decodestill propagate as before.Verification
test_diffusion_family_data_freeze.py,test_diffusion_vae_oom.py,test_video_tiny_vae.py,test_video_tiny_vae_wiring.py: 134 passed, 5 skipped.def _sabotage_leak(vae): install_untiled_decode(vae)tovideo.pyfails the rewrap test with[('video.py', '_sabotage_leak')], so a real unguarded rewrap is still caught. Restored afterwards.mainwithout the regenerated fixture, as on CI.