Two pipelines commit tag bumps to the config repo at the same time and one fails with "rejected, non-fast-forward". How do you make it robust?
BeginnerScenarioCI Integration & Progressive Delivery
Answer
Situation read → Concurrent pushes to the same branch.
What I'd do →
- Loop:
git pull --rebase && git pushup to N times with a short sleep. - Keep each service's tag in its own file so rebases never conflict.
- Use a CI concurrency group per environment to serialize updates.
Why → Rebasing onto the latest head resolves non-conflicting concurrent commits.
Interview tip → File-per-service layout is what prevents real conflicts.
More on CI Integration & Progressive Delivery
Design a CI pipeline that deploys through GitOps without giving CI cluster access.BeginnerShould CI wait for Argo CD to finish deploying before marking the pipeline green?IntermediateYou want automatic rollback when error rates rise after a deploy. How do you build it?IntermediateYour canary uses replica-based weights with 3 replicas and `setWeight: 10`. What actually happens and what do you change?IntermediateProduct wants internal staff to test the new version in production before any customer sees it. How?AdvancedYou want a release to stop at 50% in prod until a human approves. How?Beginner