fix: preserve native calls on stop and keep status reads observational
This commit is contained in:
1 parent
97a3de20c9
commit
8d3eab1164
19 files changed
+631
-290
No files matched your search
@@ -499,8 +499,7 @@ def test_parallelism_rejected_for_shared_library(tmp_path):
|
||||
run_batch([], max_workers=2)
|
||||
|
||||
|
||||
def test_timeout_stops_automation_and_allows_retry_when_no_native_owner_remains(tmp_path, monkeypatch):
|
||||
"""A timed-out item must not leave a Mentor process holding the library."""
|
||||
def test_timeout_without_release_evidence_preserves_native_caller(tmp_path, monkeypatch):
|
||||
fixture(tmp_path)
|
||||
killed = []
|
||||
|
||||
@@ -520,11 +519,11 @@ def test_timeout_stops_automation_and_allows_retry_when_no_native_owner_remains(
|
||||
port_check=PORTS_OK)
|
||||
|
||||
assert result.status == 'TIMEOUT'
|
||||
assert killed == [True]
|
||||
assert result.safe_to_continue
|
||||
assert killed == []
|
||||
assert result.safe_to_continue is False
|
||||
|
||||
|
||||
def test_fatal_dialog_terminates_current_worker_and_cannot_become_pass(tmp_path, monkeypatch):
|
||||
def test_fatal_dialog_preserves_current_worker_and_cannot_become_pass(tmp_path, monkeypatch):
|
||||
fixture(tmp_path)
|
||||
killed = []
|
||||
|
||||
@@ -557,7 +556,7 @@ def test_fatal_dialog_terminates_current_worker_and_cannot_become_pass(tmp_path,
|
||||
|
||||
assert result.status == 'FAIL'
|
||||
assert result.stderr.startswith('SAVE_REUSABLE_BLOCK_FAILED')
|
||||
assert killed == [True]
|
||||
assert killed == []
|
||||
|
||||
|
||||
def test_worker_events_advance_dialog_phase():
|
||||
@@ -631,7 +630,7 @@ def test_unknown_dialog_writes_snapshot_before_current_item_fails(tmp_path, monk
|
||||
assert '"error_code": "UNKNOWN_DIALOG"' in dialog_records
|
||||
assert 'Unknown recovery prompt' in dialog_records
|
||||
assert (evidence/'process_tree.json').is_file()
|
||||
assert killed == [True]
|
||||
assert killed == []
|
||||
|
||||
|
||||
def test_library_flag_is_reported_verbatim_and_never_fabricated(tmp_path, monkeypatch):
|
||||
|
||||
Reference in new issue
Block a user