Skip to content

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.

Studio CI: long-chat gate measures the dialog lock again before failing (#16985)

Daniel Han1b0733070abd
diff --git a/tests/studio/playwright_long_thread_gate.py b/tests/studio/playwright_long_thread_gate.py
index 20d933d4195..0f16bd048c0 100644
--- a/tests/studio/playwright_long_thread_gate.py
+++ b/tests/studio/playwright_long_thread_gate.py
@@ -596,6 +596,17 @@ def main() -> int:
details += top_selectors(large, only_has = True)
details += pin_down(browser, base)
details.append(" " + HINT)
+ if not failures and large.get("lock_ms", 0.0) > MAX_LOCK_MS:
+ # One reading on a shared runner can catch the page mid-settle (a Windows leg read 125 ms
+ # where the same build reads 14 ms on every other leg); a real regression reads high twice.
+ again = measure(browser, base, LARGE)
+ print(
+ f" dialog/menu lock {large['lock_ms']:.0f} ms is over budget; measured again on a fresh "
+ f"page: {again.get('lock_ms', float('nan')):.0f} ms",
+ flush = True,
+ )
+ if again.get("lock_ms") is not None:
+ large["lock_ms"] = min(large["lock_ms"], again["lock_ms"])
if not failures and large.get("lock_ms", 0.0) > MAX_LOCK_MS:
failures.append(
f"opening or closing a dialog or menu costs {large['lock_ms']:.0f} ms of style recalc at "