This issue is to note that it is currently difficult and time-intensive to review changes to the maintner server. Changes to the server are risky and can cause crashes, or worse, incorrect data to be written. Many services depend on the maintner server being stable and correct.
It has some tests, but they're not enough to provide sufficient confidence. Manual testing is not easy. There isn't a staging instance that's actively used.
This issue is to track progress on making it easier and safer to make changes to maintner. It has known bugs that need to be resolved, and Gerrit and GitHub APIs may change, so not making any changes will not be viable indefinitely.
For an issue that does not exist, GitHub API returns the message
"Not Found", or when an issue is deleted, "This issue was deleted".
> If the issue was transferred to or deleted from a repository
> where the authenticated user lacks read access, the API
> returns a 404 Not Found status. If the issue was deleted
> from a repository where the authenticated user has read
> access, the API returns a 410 Gone status.
Start checking ge.Response.StatusCode for http.StatusNotFound
or http.StatusGone rather than using the Message field, because
it is more robust and a closer match to GitHub API documentation.
An example GitHub API request which returns 410 Gone status is
Reviewed-by: Dmitri Shuralyov <email@example.com>