Skip to content

Point the Images rail contract at the in-flow footer padding - #8446

Merged
danielhanchen merged 1 commit into
mainfrom
studio/images-rail-contract-pb6
Aug 11, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio/images-rail-contract-pb6

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

tests/studio/test_desktop_reliability_frontend_contract.py is red on main right now.

#8411 moved the Images Create action into an in-flow footer and dropped the rail from pb-20 to pb-6, but the contract that pins those utilities still names the old string:

assert "gap-4 px-10 pt-9 pb-20 @[50rem]:overflow-y-auto" in section
AssertionError

Reproduced on a clean worktree of main, no other changes: 1 failed, 34 passed.

The change

The assertion now names pb-6, and asserts panel-scroll-fade-action next to it. The two belong together: the small padding is only correct while the 48px mask is there to dissolve the last control into the footer, so a later change that drops the fade but keeps pb-6 should fail here rather than pass quietly.

Checks

  • With the fix: 35 passed.
  • The assertion is not vacuous: reverting the page back to pb-20 with the new contract in place turns the test red again.
  • tests/studio/ as a whole is unchanged by this beyond the one test going green.

Not fixed here

Three other contracts are also red on main and are unrelated to this area, so they are left for whoever owns them rather than bundled in:

  • test_model_picker_contracts.py::test_a_lost_generate_post_must_prove_it_reached_the_backend (expects knownIds)
  • test_remote_connection_models_contract.py::test_frontend_sync_backfills_local_models_to_backend (expects Promise.allSettled(backfillTasks))
  • test_remote_connection_models_contract.py::test_chat_page_hydrates_connections_on_startup (expects syncExternalProvidersFromBackend)

Each fails identically on a clean main worktree.

#8411 moved the Create action into an in-flow footer and dropped the rail
from pb-20 to pb-6, but left this contract asserting the old utility
string, so tests/studio/test_desktop_reliability_frontend_contract.py has
been red on main since it merged:

  assert "gap-4 px-10 pt-9 pb-20 @[50rem]:overflow-y-auto" in section
  AssertionError

Reproduced on a clean main worktree: 1 failed, 34 passed.

The assertion now names pb-6 and, alongside it, panel-scroll-fade-action.
The two belong together: the small padding is only correct while the 48px
mask is there to dissolve the last control into the footer, so a change
that drops the fade but keeps pb-6 should fail here.

Checked the assertion still bites by reverting the page back to pb-20
with the new contract in place: the test fails, so this is not a vacuous
match.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 3281efc3ff

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

Copy link
Copy Markdown
Member Author

Validated on a staging repo, because the org Actions queue is saturated: the last 30 runs across unslothai/unsloth are 18 queued and 12 pending with none completed, and every run on this branch has been cancelled while queued rather than executed. Re-running them twice produced the same result, so the red checks here are queue infrastructure, not this change.

Staging run: danielhanchen#911, this branch merged onto fresh main.

Repo tests (CPU), which is the job that runs tests/studio/:

3 failed, 5938 passed, 163 skipped, 23 deselected in 1196.28s

test_image_page_structural_panes_share_the_container_breakpoint is no longer among the failures. The three that remain are the unrelated ones listed in the description:

  • test_model_picker_contracts.py::test_a_lost_generate_post_must_prove_it_reached_the_backend
  • test_remote_connection_models_contract.py::test_frontend_sync_backfills_local_models_to_backend
  • test_remote_connection_models_contract.py::test_chat_page_hydrates_connections_on_startup

So this removes exactly one failure and introduces none.

Two other jobs are red on that staging run and neither is reachable from this diff, which is one file, +6/-1, under tests/studio/:

  • Backend tests, 23 failed / 22025 passed, all in tests/test_diffusion_convrot.py and tests/test_diffusion_prequant.py. The identical set failed on an earlier staging run taken before this commit existed.
  • Chat UI, API and Update Tests, the Update banner layout regression Playwright step, where the browser exits with SIGTRAP and the run dies on TargetClosedError: Target page, context or browser has been closed. A runner-side browser crash.

@danielhanchen
danielhanchen merged commit 0b4d909 into main Aug 11, 2026
4 of 52 checks passed
@danielhanchen
danielhanchen deleted the studio/images-rail-contract-pb6 branch August 11, 2026 17:02
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.

2 participants