CI is red on main after a merge. What is your policy?
IntermediateProductionRecovery and incident handling
Answer
Revert first. The author or release manager reverts within minutes if the fix is not trivially obvious, since an unprotected, broken main blocks everybody. Fix forward later in a PR that includes a regression test.
More on Recovery and incident handling
Someone force-pushed over main and 12 commits vanished. How do you recover?IntermediateAfter recovery, what do you change so a force-push to main cannot happen again?AdvancedA bad migration commit was deployed. Walk through your response in the first 15 minutes.IntermediateHow do you recover a deleted repository or branch on GitHub?IntermediateHow do you find who or what pushed a specific commit to a protected branch?AdvancedA teammate rebased a shared branch and now everyone has duplicate commits. How do you repair it?Advanced