Incident Mitigation Playbook - beyond-all-reason/Beyond-All-Reason GitHub Wiki

Note

This is a work-in-progress, currently compiling the few relevant bits of information for assisting resolution of major bugs introduced

After a fix is pushed (due to rollback of a PR or a new commit)

Find the fixed version commit SHA in BAR commits, for example for this fix the SHA is 54f30a4abc985495ff9f2b684577d2734ead6b55.

Find the number of commits until this SHA, examples:

  • Git (must have the fix pulled): git rev-list --count <sha>
  • Curling Github API: curl -I -k "https://api.github.com/repos/beyond-all-reason/beyond-all-reason/commits?per_page=1&sha=<THE_FIX_SHA>" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'

This number is displayed on chobby when the battle room is displayed in the format BAR-<number>-<sha>. Communicate to the playerbase according to the severity of the incident to either avoid or rehost rooms where <number> is lower than the number you got.

⚠️ **GitHub.com Fallback** ⚠️