Skip to content

Studio image defaults tests: follow the filled-in defaults table and route effect from #18420 - #18534

Merged
danielhanchen merged 1 commit into
mainfrom
ci/image-defaults-tests-follow-18420
Nov 19, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/image-defaults-tests-follow-18420

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Two tests in studio/frontend/tests/image-generation-defaults.test.ts fail on main (seen in Frontend unit tests (Windows) on #18504, which only touches engine installs; they fail the same way on Linux):

not ok - routed image picks apply and transactionally roll back model defaults
    assert.ok(routeStart >= 0 && routeEnd > routeStart)
not ok - a base file in a Turbo / Flash folder or repo keeps the backend's recipe, not the distilled one
    /models/chroma1-flash Chroma1-HD.safetensors
    + { guidance: 3.5, steps: 26 }   - { guidance: 0, steps: 9 }

Root cause

Both come from #18420, and in both the product change is intended:

Changes

  • Route test: the block ends at the effect's own dependency list (]);), so it no longer depends on a comment. The four assertions inside it are unchanged.
  • Base-file test: each case now asserts the key resolves to the base file's own recipe (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 on main).
  • Sabotage, each against this branch:
    • defaultsKeyFor returning 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).
    • Dropping the route effect's revertPick(revert): the route test fails.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T21:44:36.204914Z b277401 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. 👍

Reviewed commit: b277401b6d

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