Multiple "Failed to perform checkout on agent: Cannot find commit ..."
We are using TeamCity connected to github and triggering on VCS changes with the following trigger:
+:master
+:<default>
+:*/merge
The issues that we are experiencing is that when code is rebased or new commits merged into master, we see lots of errors like these:

Is there any way to get TeamCity to ignore these errors?
My guess is that it's a situation where TeamCity has seen a change on the merge head for a GitHub PR, but between when it puts the build in the queue and actually goes to checkout that build, that hash no longer exists. This creates a lot of noise in our system.
Please sign in to leave a comment.
Hello,
Could you please send us the teamcity-vcs.log with DEBUG enabled covering these issues? If you want to send logs privately, please use "Submit a request" button on the top.
@alina I've submitted the logs, let me know if there's anything else I can do to help get info.
(copied from email support ticket)
This is indeed a race condition between the time when revision for the build was computed and the time a build started. We have an issue for that https://youtrack.jetbrains.com/issue/TW-45151, but it is not fixed so far. As a workaround, please switch to the server-side checkout.