fix(agent99): align deploy contract with bounded runner
Some checks failed
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / workflow-shape (push) Failing after 37m52s
CD Pipeline / select-latest-carrier (push) Failing after 38m8s
AI 技術雷達監控 / ai-technology-watch (push) Failing after 20m48s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Failing after 23m43s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Failing after 23m59s
CD Pipeline / tests (push) Has been cancelled
CD Pipeline / revalidate-deploy-carrier (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / revalidate-post-deploy-carrier (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
Some checks failed
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / workflow-shape (push) Failing after 37m52s
CD Pipeline / select-latest-carrier (push) Failing after 38m8s
AI 技術雷達監控 / ai-technology-watch (push) Failing after 20m48s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Failing after 23m43s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Failing after 23m59s
CD Pipeline / tests (push) Has been cancelled
CD Pipeline / revalidate-deploy-carrier (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / revalidate-post-deploy-carrier (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
This commit is contained in:
@@ -118,6 +118,21 @@ def test_agent99_auto_recovery_is_single_flight_and_slo_measured() -> None:
|
||||
assert '$process = Start-Process -FilePath "powershell.exe"' not in consumer
|
||||
assert 'Add-Check "recovery:auto_trigger_controlled_identity"' in contract
|
||||
assert 'Add-Check "recovery:queue_identity_fail_closed"' in contract
|
||||
assert "$queueIdentityRejectionIndex = $control.IndexOf" in contract
|
||||
assert "$queueBoundedExecutorIndex = $control.IndexOf" in contract
|
||||
assert "'$execution = Invoke-AgentBoundedProcess'" in contract
|
||||
assert "$queueIdentityRejectionIndex -ge 0" in contract
|
||||
assert "$queueBoundedExecutorIndex -ge 0" in contract
|
||||
assert "$queueIdentityRejectionIndex -lt $queueBoundedExecutorIndex" in contract
|
||||
assert "-TimeoutSeconds $script:Agent99QueueOuterDeadlineSeconds" in contract
|
||||
assert (
|
||||
'-not $control.Contains(\'$process = Start-Process -FilePath "powershell.exe" '
|
||||
"-ArgumentList $args')"
|
||||
) in contract
|
||||
assert (
|
||||
'$control.IndexOf(\'$process = Start-Process -FilePath "powershell.exe" '
|
||||
"-ArgumentList $args')"
|
||||
) not in contract
|
||||
assert 'correlationKey = $dispatchIdentity.idempotencyKey' in contract
|
||||
assert 'canonicalDigest = $dispatchIdentity.canonicalDigest' in contract
|
||||
assert 'Record-AgentEvent "recovery_slo_result"' in source
|
||||
|
||||
Reference in New Issue
Block a user