Repository navigation
Run the chat width presets in CI, and two guards main is currently red on - #11001
Conversation
…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).
|
@codex review |
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. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? 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". |
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.
|
@codex review |
|
@codex security review |
|
You have reached your Codex usage limits for security reviews. Please try again later. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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". |
…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>
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
ae295db16before any change here: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.pyarrived with no workflow naming it, which is the exact statetest_every_playwright_driver_is_invoked_by_ciexists 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 toNOT_IN_CIwould have made that permanent.It now seeds its own conversation through
/api/chat/threads, the wayplaywright_thread_scoped_settings.pyalready does.CHAT_THREAD_IDis 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-rootthat every assertion here measures. Verified against a live Studio before writing the change: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-passwordor/loginshape as its siblings.Wired into
studio-ui-smoke.yml'sextrashard, beside the font-scale and per-chat-settings drivers, which is where a still-running server is. Thechatshard ends by clicking Shutdown.One assertion in it could not fail
The preset ordering is all
>=: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.tscaps Standard at 48rem and Wide at 72rem, while Full ismax(72rem, 100% - 6rem)- so that separation is now required.Mutation, run in a real browser by pinning
--custom-chat-max-widthso every preset collapses to Standard:mainat 2560px Wide gives message 744px, no more than Standard's 744px, so the preset is doing nothingUnmutated, 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.pydid not trigger the matrix that uses it (#10985)It is imported by both
install_llama_prebuilt.pyandinstall_python_stack.py, whichstudio-mac-install-matrix.ymllists 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.pyreads a workflow file but was missing fromworkflow-trigger-lint's guard step, the only job with nopathsfilter. A PR editing only workflow files - the change it exists to reject - never collected it. Added.Verification
tests/studio: 9687 passed, 100 skipped. The one failure and one error left are present onmainunchanged (anmlximport this host lacks, and a PR-scoped install guard).