Skip to content

Run the chat width presets in CI, and two guards main is currently red on - #11001

Merged
danielhanchen merged 3 commits into
mainfrom
ci/wire-chat-width-playwright
Sep 15, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
ci/wire-chat-width-playwright

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Main is red, and every open PR shows it

Three merges left guards failing on main. Lint CI's Workflow guard suites step and Repo tests (CPU, studio) are red there now, and six open PRs are reporting the failure as their own.

Reproduced on ae295db16 before any change here:

FAILED tests/studio/test_playwright_suites_run_in_ci.py::test_every_playwright_driver_is_invoked_by_ci
FAILED tests/studio/test_macos_slots_per_commit.py::test_a_listed_python_input_brings_its_sibling_imports[studio-mac-install-matrix.yml]
FAILED tests/studio/test_workflow_guards_run_unfiltered.py::test_every_workflow_reading_guard_runs_in_the_unfiltered_job

Each guard is right and each merge was incomplete. Taken in turn.

1. The chat width driver ran nowhere (#10958)

tests/studio/playwright_chat_width.py arrived with no workflow naming it, which is the exact state test_every_playwright_driver_is_invoked_by_ci exists to reject.

It could not have been wired as written. It took CHAT_THREAD_ID, and no CI step can produce a thread id - it is the only driver in the tree that wanted one. So the presets shipped behind a driver that runs nowhere, and adding it to NOT_IN_CI would have made that permanent.

It now seeds its own conversation through /api/chat/threads, the way playwright_thread_scoped_settings.py already does. CHAT_THREAD_ID is still honoured when set, so the documented local usage is unchanged.

Seeding costs no model. The messages endpoint stores whatever roles it is given, and an assistant-role message renders the .aui-assistant-message-root that every assertion here measures. Verified against a live Studio before writing the change:

POST /api/chat/threads -> 200
PUT  /api/chat/threads/<id>/messages -> 200
RENDERED .aui-assistant-message-root: width=744
RENDERED .unsloth-composer-shell: width=736

Its sign-in was a second blocker: input[type=password] + Enter only handles an instance whose password is already rotated, so it would have failed on a fresh CI boot even with a thread id. Now the same two-branch /change-password or /login shape as its siblings.

Wired into studio-ui-smoke.yml's extra shard, beside the font-scale and per-chat-settings drivers, which is where a still-running server is. The chat shard ends by clicking Shutdown.

One assertion in it could not fail

The preset ordering is all >=:

assert full[surface] >= wide[surface] - 1
assert wide[surface] >= standard[surface] - 1

Three presets pinned to the same width satisfy every line. The setting could stop doing anything at all and this would pass.

At the widest viewport the three are separated by construction - appearance-custom-store.ts caps Standard at 48rem and Wide at 72rem, while Full is max(72rem, 100% - 6rem) - so that separation is now required.

Mutation, run in a real browser by pinning --custom-chat-max-width so every preset collapses to Standard:

verdict
the assertions on main passed with the setting dead
with this change at 2560px Wide gives message 744px, no more than Standard's 744px, so the preset is doing nothing

Unmutated, the driver passes end to end against a real Studio. Standard caps at 744px, Wide at 1128px, Full reaches 2100px at a 2560px viewport, and nothing overflows at any of the seven widths.

2. studio/nvidia_probe.py did not trigger the matrix that uses it (#10985)

It is imported by both install_llama_prebuilt.py and install_python_stack.py, which studio-mac-install-matrix.yml lists as inputs. Editing the probe did not run the matrix that depends on it. Added to both triggers.

3. A workflow-reading guard was not in the unfiltered job (#10988, mine)

tests/studio/test_core_setup_zoo_revision_notice.py reads a workflow file but was missing from workflow-trigger-lint's guard step, the only job with no paths filter. A PR editing only workflow files - the change it exists to reject - never collected it. Added.

Verification

  • The guard step's own list: 1054 passed, 30 skipped. All three failures above are gone.
  • tests/studio: 9687 passed, 100 skipped. The one failure and one error left are present on main unchanged (an mlx import this host lacks, and a PR-scoped install guard).
  • The driver, unmutated and mutated, against a real Studio, as above.

…d on

Three merges left main failing guards that every open PR then inherits. Lint CI's
"Workflow guard suites" step and Repo tests (CPU, studio) are red on main right
now, and six open PRs show the failure as their own.

1. #10958 added tests/studio/playwright_chat_width.py and no workflow that runs
   it. test_every_playwright_driver_is_invoked_by_ci exists for exactly that and
   says so. It could not be wired as written: it took CHAT_THREAD_ID and no CI
   step can produce a thread id, so the presets shipped with a driver that runs
   nowhere.

   The driver now seeds its own conversation through /api/chat/threads, the way
   playwright_thread_scoped_settings.py does, and CHAT_THREAD_ID stays honoured
   when set. Seeding needs no model: the messages endpoint stores whatever roles
   it is given, and an assistant-role message renders the
   .aui-assistant-message-root every assertion here measures. Verified against a
   real Studio: the seeded thread renders the bubble, and the sweep passes.

   Its sign-in also handled only the already-rotated case, so it could not have
   run against a fresh CI boot even with a thread id. Same two-branch shape as
   its siblings now.

   While making it run, one assertion that could not fail: the preset ordering is
   >=, so three presets pinned to the same width satisfy every line of it. The
   setting could stop working entirely and the driver would pass. At the widest
   viewport the three are separated by construction (48rem / 72rem /
   max(72rem, 100% - 6rem) in appearance-custom-store.ts), so that separation is
   now required. Pinning --custom-chat-max-width in a live browser: the old
   assertions pass, the new one fails with "at 2560px Wide gives message 744px,
   no more than Standard's 744px, so the preset is doing nothing".

2. #10985 added studio/nvidia_probe.py, imported by both install_llama_prebuilt.py
   and install_python_stack.py, which studio-mac-install-matrix.yml lists as
   inputs. Editing the probe did not run the matrix that depends on it. Added to
   both triggers.

3. #10988 (mine) added tests/studio/test_core_setup_zoo_revision_notice.py, which
   reads a workflow file but was not in workflow-trigger-lint's guard step, the
   only job with no paths filter. A PR editing only workflow files never
   collected it. Added.

The 1054 tests in the guard step pass, as does tests/studio (9687 passed; the two
failures there are on main already and untouched by this: an mlx import and a
PR-scoped guard).
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 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-09-15T10:56:26.478869Z 99f3dd1 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. What shall we delve into next?

Reviewed commit: b5788cb656

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

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 15, 2026
pre-commit-ci Bot and others added 2 commits September 15, 2026 10:50
Comment/docstring text only. comment_tools.py check --strict-ext
--allow-docstring-edits: 3/3 OK. The guard step's 1054 tests still pass, and the
driver still runs green end to end against a real Studio.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 99f3dd16e3

ℹ️ 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 9bdc7c9 into main Sep 15, 2026
27 checks passed
@danielhanchen
danielhanchen deleted the ci/wire-chat-width-playwright branch September 15, 2026 11:33
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…d on (unslothai#11001)

* Run the chat width presets in CI, and two guards main is currently red on

Three merges left main failing guards that every open PR then inherits. Lint CI's
"Workflow guard suites" step and Repo tests (CPU, studio) are red on main right
now, and six open PRs show the failure as their own.

1. unslothai#10958 added tests/studio/playwright_chat_width.py and no workflow that runs
   it. test_every_playwright_driver_is_invoked_by_ci exists for exactly that and
   says so. It could not be wired as written: it took CHAT_THREAD_ID and no CI
   step can produce a thread id, so the presets shipped with a driver that runs
   nowhere.

   The driver now seeds its own conversation through /api/chat/threads, the way
   playwright_thread_scoped_settings.py does, and CHAT_THREAD_ID stays honoured
   when set. Seeding needs no model: the messages endpoint stores whatever roles
   it is given, and an assistant-role message renders the
   .aui-assistant-message-root every assertion here measures. Verified against a
   real Studio: the seeded thread renders the bubble, and the sweep passes.

   Its sign-in also handled only the already-rotated case, so it could not have
   run against a fresh CI boot even with a thread id. Same two-branch shape as
   its siblings now.

   While making it run, one assertion that could not fail: the preset ordering is
   >=, so three presets pinned to the same width satisfy every line of it. The
   setting could stop working entirely and the driver would pass. At the widest
   viewport the three are separated by construction (48rem / 72rem /
   max(72rem, 100% - 6rem) in appearance-custom-store.ts), so that separation is
   now required. Pinning --custom-chat-max-width in a live browser: the old
   assertions pass, the new one fails with "at 2560px Wide gives message 744px,
   no more than Standard's 744px, so the preset is doing nothing".

2. unslothai#10985 added studio/nvidia_probe.py, imported by both install_llama_prebuilt.py
   and install_python_stack.py, which studio-mac-install-matrix.yml lists as
   inputs. Editing the probe did not run the matrix that depends on it. Added to
   both triggers.

3. unslothai#10988 (mine) added tests/studio/test_core_setup_zoo_revision_notice.py, which
   reads a workflow file but was not in workflow-trigger-lint's guard step, the
   only job with no paths filter. A PR editing only workflow files never
   collected it. Added.

The 1054 tests in the guard step pass, as does tests/studio (9687 passed; the two
failures there are on main already and untouched by this: an mlx import and a
PR-scoped guard).

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Tighten the comments this PR adds

Comment/docstring text only. comment_tools.py check --strict-ext
--allow-docstring-edits: 3/3 OK. The guard step's 1054 tests still pass, and the
driver still runs green end to end against a real Studio.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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