Skip to content

Studio tests: check family picker labels in backend CI, where families are added - #16856

Merged
danielhanchen merged 1 commit into
mainfrom
ci-family-labels-backend-guard
Nov 6, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-family-labels-backend-guard

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T00:55:49.671771Z 17a6339 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: Didn't find any major issues. Breezy!

Reviewed commit: 17a6339a23

ℹ️ 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 4037c03 into main Nov 6, 2026
@danielhanchen
danielhanchen deleted the ci-family-labels-backend-guard branch November 6, 2026 01:25
danielhanchen added a commit that referenced this pull request Nov 6, 2026
…t navigate (#16858)

## Summary

`Chat UI Tests` on Windows fails now and then in
`tests/studio/playwright_browser_bookmarks.py`, on the step that follows
a link inside the browser panel's page. In the last day it hit main
itself (run 42143788184, after #16856) and #16835 and #16758, none of
which touch the browser panel:

```
FAIL Save, followed=True: Locator expected to have Value 'https://bookmark.test/followed'
Actual value: https://bookmark.test/first
```

The failure screenshot from the main run shows the typed page still
loaded with "Follow link" on it. The click never produced a navigation,
so the address bar stayed on the first page for the whole 5 s wait. The
same Save and Enter cases pass in the same run and on the next run. All
three failures were on the Windows lane. It looks like a click lost on a
loaded Windows runner, not a regression: the page's link handler is
installed before the page's own content, and the panel accepts the first
same-tab navigation a page reports.

## Change

`tests/studio/playwright_browser_bookmarks.py` only. A small
`follow_link` helper clicks "Follow link" and waits 5 s for the address
to change, as before. If it has not, and the address is still the typed
page and the tab still says "Typed page", it clicks again, up to three
clicks in total, and prints a line when it retries.

It does not retry if the address moved anywhere else, so a wrong
navigation still fails at once. A second click cannot double a slow
navigation either: once a page has reported a same-tab navigation the
panel ignores any further one from it (`left` in `page-frame.tsx`).
Every later assertion (bookmark contents, Back to the first page,
Forward to the followed one) is unchanged, so a link that really stops
navigating still fails after the third click.

## Testing

- A fake page and address bar drive `follow_link` through five cases:
navigates on the first, second or third click (passes, 1/2/3 clicks),
never navigates (fails after 3 clicks), lands on another page (fails
after 1 click).
- `tests/studio/test_playwright_suites_run_in_ci.py`: 9 passed.
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