pa-08 — Verification
One command
cd pa-08-gitops-progressive-delivery && bash scripts/verify.sh
What the tests prove
| Test | Invariant |
|---|---|
TestSyncCreates | git resources are created in the cluster |
TestSyncUpdatesOnGitChange | a git spec change updates live |
TestSelfHealRevertsManualDrift | a manual cluster edit is reverted to git |
TestPruneDeletesRemoved | a resource removed from git is pruned (when enabled) |
TestNoPrunePreservesExtra | prune disabled keeps extra live resources |
TestSyncWaveOrdering | resources apply in ascending sync-wave order |
TestReconcileIsIdempotent | a converged reconcile is a no-op; Diff is empty |
TestProgressiveDeliveryGate | healthy → promote; unhealthy → rollback to current |
All under -race.
What "green" does NOT guarantee
- No real git/cluster controllers. Production = ArgoCD/Flux with health assessment, RBAC, app-of-apps, break-glass.
- Promotion is a boolean gate. The full shadow→canary→ramp ladder with SLO analysis is gw-12 + pa-09.
- Self-heal has no off switch here. Production needs break-glass; auto- reverting an emergency fix is a real hazard (GUIDE §4).