Two PRs merged a minute apart; both deploy jobs ran and the older commit finished last, so production now runs the older version.
AdvancedTroubleshootingPipeline outages
Answer
Likely causes → No concurrency control on the deploy workflow. The runs raced, and the one that took longer (cache miss, slower runner) applied last, silently rolling back the newer change.
Diagnose →
gh run list --workflow deploy.yml --limit 5 --json headSha,createdAt,updatedAt,conclusion
kubectl get deploy api -o jsonpath='{.spec.template.spec.containers[0].image}'
Fix → Redeploy the latest commit on main.
Prevent → Serialize deploys per environment:
concurrency:
group: deploy-prod
cancel-in-progress: false
Add a guard that refuses to deploy a commit older than what's running (compare against the deployed SHA), or move to GitOps where Git order decides what runs.
More on Pipeline outages
Every GitHub Actions job in the org sits at "Waiting for a runner to pick up this job..." for 30 minutes.BeginnerJenkins builds on one agent fail with "java.io.IOException: No space left on device" while checking out code.BeginnerA deploy workflow that worked yesterday fails at `aws-actions/configure-aws-credentials` with "Not authorized to perform sts:AssumeRoleWithWebIdentity".IntermediateEvery pipeline in the company fails at the dependency step with "npm ERR! 503 Service Unavailable" (or PyPI/Maven timeouts) because an upstream registry is having an outage.Intermediate`terraform apply` in CI fails with "Error acquiring the state lock: ConditionalCheckFailedException" and shows a lock from a pipeline run that was cancelled two hours ago.BeginnerArgo CD shows the `payments` app permanently `OutOfSync` and self-heal keeps fighting: replicas jump between 3 and 12 every few minutes.Intermediate