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

+7 -3
View File
@@ -84,7 +84,7 @@ def test_availability_check_cannot_starve_task_worker(
@pytest.mark.parametrize('kind', ['authorized_retry', 'resource_cleanup'])
def test_model_wait_never_owns_task_controls(slow_diagnosis, qtbot, kind):
def test_model_wait_never_owns_task_controls(slow_diagnosis, ui, qtbot, kind):
window, automation, _, start = slow_diagnosis
if kind == 'resource_cleanup':
start(read_only=False, cleanup=True)
@@ -101,6 +101,7 @@ def test_model_wait_never_owns_task_controls(slow_diagnosis, qtbot, kind):
finally:
automation.cancel()
qtbot.waitUntil(lambda: automation.worker is None, timeout=5000)
ui.settle()
def test_finishing_old_diagnosis_preserves_new_manual_run(slow_diagnosis, ui, qtbot):
@@ -123,6 +124,7 @@ def test_finishing_old_diagnosis_preserves_new_manual_run(slow_diagnosis, ui, qt
assert not manual_stop.is_set()
finally:
window._finish_run()
ui.settle()
def reply_to_model(view, action='none'):
@@ -216,10 +218,11 @@ def test_new_manual_run_denies_old_ai_mutation_without_touching_controls(
assert len(published) == 1
finally:
window._finish_run()
ui.settle()
def test_completed_taskless_observation_does_not_start_another_model_run(
slow_diagnosis, qtbot):
slow_diagnosis, ui, qtbot):
window, automation, published, start = slow_diagnosis
view = start()
reply_to_model(view)
@@ -241,6 +244,7 @@ def test_completed_taskless_observation_does_not_start_another_model_run(
qtbot.waitUntil(lambda: len(view.requests) == 3, timeout=5000)
automation.cancel()
qtbot.waitUntil(lambda: automation.worker is None, timeout=5000)
ui.settle()
def test_admission_timeout_releases_even_if_gui_just_admitted(ui, monkeypatch):
@@ -259,7 +263,7 @@ def test_admission_timeout_releases_even_if_gui_just_admitted(ui, monkeypatch):
class ExpiringEvent:
def set(self):
pass
def wait(self, _timeout):
def wait(self, _timeout=None):
return False
monkeypatch.setattr(module, 'Event', ExpiringEvent)