sg checks hang when oh-my-zsh auto-updates
Created by: mrnugget
Reports of this in Slack:
- https://sourcegraph.slack.com/archives/C01N83PS4TU/p1649161693922299
- https://sourcegraph.slack.com/archives/C07KZF47K/p1646652743167269
- https://sourcegraph.slack.com/archives/C01N83PS4TU/p1644820526352379
- https://sourcegraph.slack.com/archives/C07KZF47K/p1648086400283479
My suspicion is that reloading the shell-env when running the checks commands triggers the auto-update of oh-my-zsh and that in turn waits for user input, or a TTY.
We should try to recreate and then fix the issue.