加快门禁:删除测试窗口、释放桩线程并并行运行三个阶段

关闭后未删除的测试窗口让每次主题切换重排全部残留控件,ui_check 每次关窗还要等桩线程 5 秒。Linux 上结论不变,test_ui_smoke 75→64 s、ui_check 52→16 s;Windows 门禁结果见 .scratch/gate-speed/。
This commit is contained in:
ykcheungab
2026-10-19 09:34:29 +08:00
parent d89535236b
commit a0c13c1dc6
6 changed files with 160 additions and 44 deletions
+3 -1
View File
@@ -1048,7 +1048,9 @@ def test_the_domain_boundary_is_latched_for_the_session(make_window):
"the previous session's island survived into a new run"
)
window._run_timer.stop()
window._stop_run(reason="user_stop")
# Release the stand-in worker as well: the second run re-armed its hang, and a
# window closed on a hanging worker waits out its 5 s join in teardown.
_finish(window, stuck)
# ------------------------------------------------------------- experiment record