Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
tests: drop --single-process from the Chromium launch args (#8563)
Daniel Han9c46cc4a8201
diff --git a/tests/studio/_playwright_robust.py b/tests/studio/_playwright_robust.pyindex b2f6df751e4..356fd9b714f 100644--- a/tests/studio/_playwright_robust.py+++ b/tests/studio/_playwright_robust.py@@ -23,8 +23,14 @@ from typing import Any, Callable# headless window is backgrounded (run 25586583024 stalled inference + render).# TranslateUI strips a pointer-intercepting popup; ipc-flooding-protection off# lets rapid clicks through during the slider sweep.-# `--single-process` is darwin-only (fixes the pipeTransport.js JSON-RPC crash);-# on Win/Linux it destabilises the renderer.+# No `--single-process`. It was darwin-only, for a pipeTransport.js JSON-RPC crash,+# and it caps Chromium at exactly ONE BrowserContext: opening a second one kills the+# browser with SIGTRAP, and the next new_page() raises "Target page, context or+# browser has been closed". Closing a context does it too, even with another still+# open. That is what made "Update banner layout regression" red on every macos-14 run+# (it needs a context per viewport), and it is why playwright_chat_ui.py had to keep+# every step inside one context. Measured with chromium-headless-shell 151: with the+# flag, a second context dies immediately; without it, 12 open/close cycles pass._BASE_CHROMIUM_ARGS = ("--disable-dev-shm-usage","--no-sandbox",@@ -38,13 +44,10 @@ _BASE_CHROMIUM_ARGS = (def chromium_launch_args(platform: str | None = None) -> list[str]:- """Chromium launch args for `platform` (defaults to `sys.platform`; pass a- string to test the darwin branch on Linux)."""- p = sys.platform if platform is None else platform- args = list(_BASE_CHROMIUM_ARGS)- if p == "darwin":- args.append("--single-process")- return args+ """Chromium launch args. Same on every platform; `platform` is accepted so+ callers that pass one keep working."""+ del platform+ return list(_BASE_CHROMIUM_ARGS)# Init script injected into every Playwright context.@@ -234,8 +237,8 @@ BENIGN_PAGE_ERROR_PATTERNS: tuple[str, ...] = ()BENIGN_CONSOLE_ERROR_PATTERNS: tuple[str, ...] = (- # macos-14 buffer-exhaustion under --single-process; the test catches the- # underlying request failure via expect_response and retries.+ # macos-14 buffer exhaustion; the test catches the underlying request+ # failure via expect_response and retries."net::ERR_NO_BUFFER_SPACE",# Intentional fetch aborts (unmount, route change) log a console.error."AbortError",diff --git a/tests/studio/playwright_chat_ui.py b/tests/studio/playwright_chat_ui.pyindex 1c513a7f18e..46cbfb5b12d 100644--- a/tests/studio/playwright_chat_ui.py+++ b/tests/studio/playwright_chat_ui.py@@ -568,8 +568,8 @@ with sync_playwright() as p:),)page = ctx.new_page()- # 60s default (was 30s): macos-14 under --single-process Chromium is- # slow enough that renders/webfonts/lazy routes routinely crowd 30s.+ # 60s default (was 30s): the macos-14 runners are slow enough that+ # renders/webfonts/lazy routes routinely crowd 30s.page.set_default_timeout(60_000)page_errors = []page.on("pageerror", lambda e: page_errors.append(str(e)))@@ -2008,10 +2008,10 @@ with sync_playwright() as p:# ─────────────────────────────────────────────────────step("persisted monitor stays dormant on /login and resumes after auth")# Start fresh after the CLI rotation invalidates this browser session.- # Stay in the SAME context: macOS Chromium runs --single-process, where- # closing the last context kills the browser and a second context cannot- # be created. Open the new page before closing the old one; the context- # init script covers the new page.+ # Stay in the SAME context: it keeps the init script and costs nothing to+ # reuse. This used to be forced, because macOS ran --single-process Chromium,+ # which allows only one context; that flag is gone now. Open the new page+ # before closing the old one; the context init script covers the new page.try:ctx.clear_cookies()except Exception as exc:diff --git a/tests/studio/playwright_extra_ui.py b/tests/studio/playwright_extra_ui.pyindex 74b663b7bc1..fa709310134 100644--- a/tests/studio/playwright_extra_ui.py+++ b/tests/studio/playwright_extra_ui.py@@ -105,7 +105,7 @@ with sync_playwright() as p:)install_view_transition_killer(ctx)page = ctx.new_page()- # 60s default for slow macos-14 --single-process Chromium (second Unsloth boot of the job).+ # 60s default for the slow macos-14 runner (second Unsloth boot of the job).page.set_default_timeout(60_000)page_errors = []