fix(agent): index failed apply retry selection
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m18s
CD Pipeline / build-and-deploy (push) Successful in 4m45s
CD Pipeline / post-deploy-checks (push) Successful in 2m56s

This commit is contained in:
ogt
2026-07-10 23:04:13 +08:00
parent 90483c5215
commit 394e7e4811
2 changed files with 7 additions and 1 deletions

View File

@@ -1935,6 +1935,8 @@ def test_failed_apply_retry_replay_is_no_write_and_idempotent() -> None:
assert "FOR UPDATE SKIP LOCKED" in source
assert "controlled_retry_check_mode_replay" in source
assert "build_ansible_check_mode_command" in source
assert "verifier.incident_id = coalesce(" in source
assert "apply.input ->> 'incident_id'" in source
assert "controlled_apply_allowed=True" in source
assert '"approval_required_before_apply": False' in source
assert '"owner_review_required": False' in source