Repository navigation
Studio: label the Chroma and Anima families in the family picker - #16809
Merged
Merged
Conversation
#16710 added both families to the backend registry, so the family-override test that checks every backend family has a label fails on main for every Studio PR.
Codex Review SummaryThis 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. Nice work! 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 was referenced Nov 6, 2026
danielhanchen
added a commit
that referenced
this pull request
Nov 6, 2026
…s are added (#16856) ## Summary From 21:00 UTC yesterday until #16809 merged, `Frontend unit tests (Windows)` and `Frontend build + bundle sanity` failed on every frontend PR (#16826, #16829, #16831, #16839, #16854 and others) with the same test: ``` not ok 4712 - family options follow the backend registry, deduplicated, and every backend family has a label location: 'studio/frontend/tests/family-override.test.ts:54:1' + [ [ 'chroma', 'chroma' ], [ 'anima', 'anima' ] ] - [] ``` #16710 added the `chroma` and `anima` image families to the backend registry. That part is fine, and #16809 added the missing picker labels. The test caught it correctly, but on the wrong PR: it reads `diffusion_families.py` and `video_families.py`, yet only Frontend CI runs it, and Frontend CI only triggers on `studio/frontend/**`. So the backend-only PR that added the families never ran it and merged green, and the next frontend PR inherited the failure. ## Change `studio/backend/tests/test_family_override_labels.py`, a new test only. It takes every family name from `diffusion_families._FAMILIES` and `video_families._FAMILIES`, reads the keys of `LABELS` in `family-override.ts`, and fails if a family has no label, naming the missing ones. Backend CI triggers on `studio/**`, so the PR that adds a family now has to add its label too. A second small test pins the `LABELS` parser on quoted (`"flux.1":`) and bare (`sdxl:`) keys, so a reformatted table cannot quietly read as empty. Running Frontend CI on every family registry change would also work, but those files change many times a day and the frontend jobs include Windows and macOS legs. One backend test costs under a second. No product code changes, and the frontend test stays as it is. ## Testing - On main (with #16809): 2 passed. - Deleting `chroma: "Chroma"` from `LABELS` again: fails with `add these families to LABELS in family-override.ts: ['chroma']`. - The file sorts into the existing `a-f` backend shard by glob. `tests/test_ci_backend_pytest_shards.py`: 26 passed.
This was referenced Nov 6, 2026
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.
#16710 added the
chromaandanimafamilies to the backend registry without frontend labels, sotests/family-override.test.ts("every backend family has a label") fails onmain, which turns the Studio frontend unit test job red for every PR:This adds the two labels, so the family picker shows "Chroma" and "Anima" instead of the raw keys. No other change.
node --experimental-strip-types --test tests/family-override.test.ts: 7 of 7 pass (the failing case above passes).