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
Let the macOS tab sampler ride out a navigation still in flight after login (#12053)
Daniel Hand294f7994838
diff --git a/tests/studio/playwright_mac_tab_capabilities.py b/tests/studio/playwright_mac_tab_capabilities.pyindex 1d53e6170f2..566a67d614b 100644--- a/tests/studio/playwright_mac_tab_capabilities.py+++ b/tests/studio/playwright_mac_tab_capabilities.py@@ -66,6 +66,7 @@ from _playwright_robust import ( # noqa: E402install_view_transition_killer,install_wall_clock_watchdog,is_benign_page_error,+ robust_evaluate,wait_for_health,)@@ -702,8 +703,14 @@ _ROW_STATE_JS = """(ids) => {def row_states(page, ids = INLINE_ROW_IDS) -> dict:- """DOM state of each nav row by test id; None for a row that is not rendered."""- return page.evaluate(_ROW_STATE_JS, list(ids)) or {}+ """DOM state of each nav row by test id; None for a row that is not rendered.++ Through robust_evaluate: the password rotation navigates the app on its own, which can+ abort the post-login goto and leave a navigation in flight when the first sample is read+ ("Execution context was destroyed"). That settles on its own and is not a page that+ cannot be read; a page that stays unreadable still raises.+ """+ return robust_evaluate(page, _ROW_STATE_JS, list(ids)) or {}def sample_natural_warm_window(page) -> None:diff --git a/tests/studio/test_mac_tab_capability_warm_window.py b/tests/studio/test_mac_tab_capability_warm_window.pyindex 913f235cfc4..be60f3e383a 100644--- a/tests/studio/test_mac_tab_capability_warm_window.py+++ b/tests/studio/test_mac_tab_capability_warm_window.py@@ -310,6 +310,30 @@ def test_sampler_that_cannot_read_the_page_at_all_fails(tmp_path, monkeypatch):assert any("could not read the sidebar" in m for m in mod._failed), mod._failed+def test_a_navigation_in_flight_on_the_first_read_is_not_a_failure(tmp_path, monkeypatch):+ """The forced password change navigates the app itself, which can abort the post-login+ goto and leave a navigation in flight: the first evaluate then loses its context. macOS+ job 108389456188 failed on exactly that; the next read would have worked."""+ mod = _load(tmp_path, monkeypatch)+ _health(mod, [UNMEASURED, SETTLED])+ page = FakePage({TRAIN: SPINNING})+ real_evaluate = page.evaluate+ lost = ["Page.evaluate: Execution context was destroyed, most likely because of a navigation"]++ def evaluate(script, arg = None):+ if lost:+ raise RuntimeError(lost.pop())+ return real_evaluate(script, arg)++ page.evaluate = evaluate+ page.wait_for_load_state = lambda *a, **k: None++ mod.sample_natural_warm_window(page)++ assert not lost, "the context loss was never hit, so this proves nothing"+ assert not any("could not read the sidebar" in m for m in mod._failed), mod._failed++def test_missed_warm_window_alone_is_not_a_failure(tmp_path, monkeypatch):"""Missing the real window is normal and must stay quiet, or the macOS job goes redon every run. The forced check above is what carries the guarantee instead."""