Classify heartbeat lease failures
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a02b6f-7db1-7222-918b-e813a6bda38d
This commit is contained in:
parent
ad4074c20a
commit
84b4089f8a
6 changed files with 84 additions and 14 deletions
|
|
@ -137,6 +137,16 @@ def test_claim_http_error() -> None:
|
|||
client.claim()
|
||||
|
||||
|
||||
def test_ops_run_error_classifies_lease_rejection_without_message_details() -> None:
|
||||
rejected = OpsRunError("provider response included credentials", status_code=409)
|
||||
transient = OpsRunError("connection reset")
|
||||
|
||||
assert rejected.lease_rejected is True
|
||||
assert rejected.status_code == 409
|
||||
assert transient.lease_rejected is False
|
||||
assert transient.status_code is None
|
||||
|
||||
|
||||
def test_ops_run_to_taskspec(tmp_path: Path) -> None:
|
||||
import subprocess
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue