Skip to content

studiobench: seed the browser with update notifications off - #15805

Merged
danielhanchen merged 1 commit into
mainfrom
studiobench-quiet-update-notifications
Oct 28, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studiobench-quiet-update-notifications

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

studiobench-ui-parity fails its Merge base vs itself, the null control on unrelated PRs (#15798 and #15799, both runs around 15:00): one of the four cells times out and the control refuses to print a verdict over the remaining pairs.

cell FAILED: TimeoutError: ElementHandle.click: Timeout 8000ms exceeded.
  15 x waiting for element to be visible, enabled and stable
     - <div class="mt-4 flex shrink-0 flex-wrap items-center justify-end gap-x-1 gap-y-2">...</div>
       from <div data-testid="overlay-rail" ...> subtree intercepts pointer events
1 of 4 planned cells left no usable reading

The element in the way is the button row of the llama.cpp update card (components/llama-update-banner.tsx), which floats in the bottom-right overlay-rail over the composer. It appears when the backend sees a newer llama.cpp prebuilt than the runner installed, so whether a cell gets it depends on release timing, not on the build under test. Neither side of a null control is wrong here; the run just has an out-of-band card in it.

Change

studiobench/runtime/lifecycle.seed_init_script now also writes unsloth_<channel>_notification_frequency = "off" for every notification channel (llama, whisper, audio, unsloth). With every channel muted, updateBannerAllowed finds no audible component and the card never renders; the update check itself still runs. Callers can still override any key through extra_local_storage.

runtime/selftest/test_studiobench_quiet_notifications.py keeps this honest against the frontend: the muted channels must equal NOTIFICATION_CHANNELS, the key must match frequencyKey in use-notification-frequency.ts, "off" must still be a NOTIFICATION_FREQUENCIES value, and the seed script must write them.

Testing

  • tests/studio/studiobench: 1509 passed, 145 skipped (the new selftest included).
  • Sabotage, one at a time: dropping the mute from the seed payload, dropping the unsloth channel, and renaming the frontend key to unsloth_${channel}_notify_frequency each fail exactly one of the three new tests.
  • Not reproduced end to end here: forcing a pending llama.cpp update on a local Studio needs a newer prebuilt than the one installed. The mute path itself is the frontend's own (updateBannerAllowed requires an audible, unmuted component), covered by notification-frequency*.test.ts and llama-job-lifecycle.test.ts.

The UI parity null control (merge base vs itself) fails on unrelated PRs:
one cell times out clicking because the llama.cpp update card in the overlay
rail covers its target. Update offers arrive on the network's schedule, so a
cell that happens to get one measures and clicks into it.

seed_init_script now writes unsloth_<channel>_notification_frequency=off for
every channel; with nothing audible updateBannerAllowed keeps the card down.
A selftest keeps the keys, channels and value in step with
use-notification-frequency.ts.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-10-28T15:43:24.945725Z 7e8d058 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. Nice work!

Reviewed commit: 7e8d058d47

ℹ️ 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 56278f5 into main Oct 28, 2026
0 of 19 checks passed
@danielhanchen
danielhanchen deleted the studiobench-quiet-update-notifications branch October 28, 2026 15:46
danielhanchen added a commit that referenced this pull request Oct 28, 2026
## Summary

UI jobs fail on unrelated PRs when a llama.cpp, whisper.cpp or audio.cpp
release is published mid-run. The prebuilt the job just installed
becomes one behind, and Studio shows its update card in the bottom-right
overlay rail, over the controls the scripts click:

- **Windows UI lane** (the `Chat UI Tests` staging run for #15796, on
current main `56278f5f65`): `FAIL in step "turn 3: 'Reply with exactly:
world'"`, `Locator.click` on `button[aria-label="Send message"]` times
out because the card's button row (`components/llama-update-banner.tsx`)
intercepts the click.
- **UI parity null control** (`Merge base vs itself, the null` on #15798
/ #15799): one cell times out the same way.

`UNSLOTH_DISABLE_UPDATE_CHECK=1` already keeps the card down: with it
set, `get_update_status` never reports an update
(`utils/update_status.update_checks_disabled`), and
`test_studiobench_ci_update_checks_off.py` already requires it, but only
for two named workflows (`studiobench-ci.yml`, `studio-ui-smoke.yml`).
The Windows and Mac UI smokes, the parity arms, inline images, composer
compatibility and the frontend browser jobs never set it.

#15805 muted the notifications in studiobench's browser seed; this
covers every browser lane at the backend, including the Playwright
scripts that seed nothing.

## Change

- `UNSLOTH_DISABLE_UPDATE_CHECK: '1'` at job level in every job that
installs Playwright's browsers or runs studiobench:
`studio-windows-ui-smoke` / `studio-mac-ui-smoke` `ui-smoke`,
`studio-ui-smoke` `ui-indicator`, `studiobench-ui-parity` `arms` /
`verdict`, `studiobench-ci` `selftests`, `studio-inline-images`
`images`, `studio-composer-compatibility` `composer`,
`studio-frontend-ci` `build` / `windows`. Jobs without a real Studio
backend are unaffected by it.
- `tests/studio/test_studiobench_ci_update_checks_off.py` now discovers
those jobs across all workflows (installs Playwright browsers, runs
studiobench, or boots Studio for Playwright) instead of checking two
named files, so a new UI lane cannot ship without the switch. A `KNOWN`
set of five lanes fails the guard if discovery stops recognising them.
The step-level override check and the backend-name check are unchanged.

No update-flow lane is touched: `studio-update-smoke` /
`studio-windows-update-smoke` do not drive a browser, and
`playwright_update_banner_layout.py` (Mac UI smoke) stubs
`/api/llama/update-status` and `/api/studio/update-status` with
`context.route`, so it does not depend on the backend's check.

## Testing

- The guard: 14 passed with this change; against main's workflows it
fails for all 10 uncovered jobs, the Windows UI lane and parity arms
included.
- All 124 test files that read `.github/workflows`: main and this branch
fail the same single test
(`test_cached_paths_hold_no_credentials.py::test_model_cache_variables_are_not_treated_as_credential_homes`,
pre-existing on this host); 6058 passed on main, 6069 here (the new
parametrized cases).
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