merge(main): resolve PR19 review conflicts and run intervention regressions in CI
Core regression / Python core, intervention UI and release configuration (push) Failing after 2m42s
Core regression / JavaScript syntax (push) Successful in 6s
Core regression / Python core, intervention UI and release configuration (pull_request) Canceled after 1m17s
Core regression / JavaScript syntax (pull_request) Canceled after 0s

This commit is contained in:
阿白叔 committed 2026-11-09 11:35:29 +08:00
commit f8f07d30d2
127 files changed
+9390 -386

No files matched your search

+16
View File
@@ -13,6 +13,12 @@ from dx_productivity.trial_task_center.quick_run import QuickRunPreparer
from dx_productivity.trial_task_center.ui.main_window import TrialTaskCenterWindow
@pytest.fixture(autouse=True)
def controlled_error_dialogs(monkeypatch):
from PySide6.QtWidgets import QMessageBox
monkeypatch.setattr(QMessageBox, 'warning', lambda *args, **kwargs: QMessageBox.StandardButton.Ok)
@pytest.fixture
def ai_ready(monkeypatch):
"""AI flow tests supply readiness explicitly; normal fixtures remain unconfigured."""
@@ -43,6 +49,8 @@ def ui(qtbot, tmp_path):
window=TrialTaskCenterWindow(service)
qtbot.addWidget(window);window.show()
def settle():
if not isValid(window) or window._closed:
return
qtbot.waitUntil(lambda:not window._workers and not window._task_query.busy
and not window._context_query.busy and not window._feedback_query.busy
and not window._log_presenter.query.busy and not window._resource_status.busy
@@ -59,4 +67,12 @@ def ui(qtbot, tmp_path):
if isValid(window):
window.plan_panel.discard_all()
window.close()
qtbot.waitUntil(lambda: not isValid(window) or window._closed, timeout=5000)
from PySide6.QtCore import QThreadPool
QThreadPool.globalInstance().waitForDone(5000)
for name in ('_dsh_status', '_dsh_operations', '_dsh_lifecycle', '_dsh_automation'):
controller = getattr(window, name, None)
pool = getattr(controller, '_read_pool', None) or getattr(controller, '_pool', None)
if pool is not None:
assert pool.waitForDone(5000), 'Controlled AI reads must finish before closing the fixture store'
store.close()