fix(dsh): recognize configured native models and pin diagnosis selection
Core regression / Python 3.12 core, intervention UI and release configuration (push) Failing after 20s
Core regression / JavaScript syntax (push) Successful in 4s
Core regression / Python 3.12 core, intervention UI and release configuration (pull_request) Failing after 20s
Core regression / JavaScript syntax (pull_request) Successful in 3s
Core regression / Python 3.12 core, intervention UI and release configuration (push) Failing after 20s
Core regression / JavaScript syntax (push) Successful in 4s
Core regression / Python 3.12 core, intervention UI and release configuration (pull_request) Failing after 20s
Core regression / JavaScript syntax (pull_request) Successful in 3s
This commit is contained in:
1 parent
eba935e710
commit
8837587ce9
9 files changed
+149
-36
No files matched your search
@@ -145,6 +145,17 @@ def test_model_budget_starts_when_harness_session_is_ready(slow_diagnosis, monke
|
||||
assert automation._analysis_deadline == 100.0 + automation._diagnosis_budget_seconds()
|
||||
|
||||
|
||||
def test_diagnosis_pins_the_same_route_as_readiness(slow_diagnosis):
|
||||
window, automation, _, _ = slow_diagnosis
|
||||
window._open_dsh()
|
||||
selection = {'provider': 'configured', 'model': 'saved-model'}
|
||||
automation._analysis_model_selection = selection
|
||||
request = {'request_id': 'controlled-model-route'}
|
||||
automation._request_model(request)
|
||||
assert window._dsh_view.requests[-1]['model_selection'] == selection
|
||||
assert 'model_selection' not in request
|
||||
|
||||
|
||||
def test_cold_session_wait_does_not_consume_shared_model_budget(slow_diagnosis, monkeypatch, ui):
|
||||
window, automation, _, _ = slow_diagnosis
|
||||
window._open_dsh()
|
||||
|
||||
Reference in new issue
Block a user