ื“ืœื’ ืœืชื•ื›ืŸ ื”ืจืืฉื™

Hotfix Workflow

Emergency fix process for production issues.

When to Useโ€‹

  • Critical production bug affecting users
  • Security vulnerability discovered
  • Data integrity issue

Processโ€‹

Stepsโ€‹

1. Create Hotfix Branchโ€‹

git checkout main
git pull
git checkout -b hotfix/issue-description

2. Implement Fixโ€‹

  • Focus on the minimal fix only
  • No refactoring or feature additions
  • Add a regression test

3. Testโ€‹

yarn test
yarn test:e2e # if time permits

4. Deployโ€‹

# Fast-track PR review
# Merge to main
# CI/CD auto-deploys to production

5. Backportโ€‹

git checkout develop
git merge hotfix/issue-description
git push

6. Post-Mortemโ€‹

ItemDetail
Root causeWhy did this happen?
DetectionHow was it found?
ImpactHow many users affected?
FixWhat was changed?
PreventionHow to prevent recurrence?