fix(agent99): verify transport and relay health
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m25s
CD Pipeline / build-and-deploy (push) Successful in 4m39s
CD Pipeline / post-deploy-checks (push) Successful in 4m20s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m25s
CD Pipeline / build-and-deploy (push) Successful in 4m39s
CD Pipeline / post-deploy-checks (push) Successful in 4m20s
This commit is contained in:
@@ -136,3 +136,20 @@ def test_agent99_serializes_ssh_across_scheduled_task_processes() -> None:
|
||||
"lockTimeoutSeconds": 90,
|
||||
"lockPollMilliseconds": 200,
|
||||
}
|
||||
|
||||
|
||||
def test_agent99_emits_transport_wait_and_keeps_running_relay_healthy() -> None:
|
||||
source = CONTROL.read_text(encoding="utf-8")
|
||||
config = json.loads((ROOT / "agent99.config.99.example.json").read_text())
|
||||
relay = next(
|
||||
item
|
||||
for item in config["selfHealth"]["evidenceFreshness"]
|
||||
if item["name"] == "sre_alert_relay"
|
||||
)
|
||||
|
||||
assert "transportLockWaitMs = if" in source
|
||||
assert "transportSerialized = if" in source
|
||||
assert "running_task_supersedes_stale_start_evidence" in source
|
||||
assert "freshnessSupersededByRunningTask" in source
|
||||
assert "Test-AgentEvidenceFreshness $selfConfig.evidenceFreshness $tasks" in source
|
||||
assert relay["runningTaskName"] == "Wooo-Agent99-SRE-Alert-Relay"
|
||||
|
||||
Reference in New Issue
Block a user