Repository navigation
Studio image defaults tests: follow the filled-in defaults table and route effect from #18420 - #18534
Merged
Merged
Conversation
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. 👍 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.
Summary
Two tests in
studio/frontend/tests/image-generation-defaults.test.tsfail onmain(seen inFrontend unit tests (Windows)on #18504, which only touches engine installs; they fail the same way on Linux):Root cause
Both come from #18420, and in both the product change is intended:
const pick = diffusionRoutePick(and the comment// Reload the current model with the current advanced options.. Studio Images: reload for new LoRAs on quantized loads, hold Generate during a model switch, show the loaded precision #18420 removed that comment, so the end anchor was not found. The route effect itself still applies defaults throughapplyImageModelDefaults(wanted, "auto", ...)and rolls back withrevertPick(revert)when the load does not start.flux1-*, MiniMax-H3-Image). The test pinned{ steps: 9, guidance: 0 }, which was the fallback a base Chroma1-HD file got while the table had no Chroma row. It now gets Chroma's own recipe (26 / 3.5), which is exactly what the test's name promises: the base file's recipe, not the Flash one (16 / 1).Changes
]);), so it no longer depends on a comment. The four assertions inside it are unchanged.defaultsFor(file)) and is not the distilled recipe (Anima-Turbo 10 / 1, Chroma1-Flash 16 / 1), instead of pinning whatever number the table held at the time.Test-only change.
Testing
node --test tests/image-generation-defaults.test.ts: 26 passed (2 fail onmain).defaultsKeyForreturning a Flash / Turbo folder's own key before the file's: the base-file test fails (along with two neighbours that guard the same rule).revertPick(revert): the route test fails.